Question: ( cache ) Consider the following code: ( 2 0 points ) ( 1 ) Assume that the system has a 8 1 9 2
cache Consider the following code: points
Assume that the system has a byte, directmapped data cache with byte blocks.
Assuming that the cache starts from initial state ie initially empty what is the series of data
cache hits and misses for the above code ie number of misses and number of hits Assume
that the ints are bits.
Assume that an iteration of a loop in which the load hits takes cycles but that an iteration of
a loop in which the load misses takes cycles. What is the execution time cycles of this
code with the aforementioned cache?
Repeat part except assume that the cache is way set associative with an LRU replacement
policy and byte sets byte blocks
Repeat part using the cache described in part Is the directmapped or the setassociative
cache better?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
