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 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
Get step-by-step solutions from verified subject matter experts
