Question: 5. In a computer system, the memory has 32 blocks and the cache has 8 blocks. Assume there is only one word per block with

 5. In a computer system, the memory has 32 blocks and

5. In a computer system, the memory has 32 blocks and the cache has 8 blocks. Assume there is only one word per block with 4 bytes in one word. The reference sequence in terms of word location is: 0, 2, 5, 10, 4, 13, 18, 8, 12. (a) [6%) If the cache is a direct-mapped cache, how many misses do we have if the cache is initially empty? Give the hit or miss for each reference. (b) [6%] If the cache is a fully associative cache, how many misses do we have if the cache is initially empty? Give the hit or miss for each reference. (c) [6%] If the cache is a 2-way set associative cache, how many misses do we have if the cache is initially empty? Give the hit or miss for each reference

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!