The figure below shows a direct-mapped cache. There are eight blocks in the cache and each block holds four words of mem
Posted: Sun May 15, 2022 8:33 am
The figure below shows a direct-mapped cache. There are eight blocks in the cache and each block holds four words of memory. 2-bit word offset in line 3-bit line index in cache 0-3 4-7 8-11 Main memory locations Tag Word address 32-35 36-39 40-43 64-67 68-71 72-75 Tags Valid bits Read tag and specified word 96-99 100-103 104-107 Data out 1. Tag 1 if equal Com- pare Cache miss The CPU reads from the following sequence of memory word locations: 4,5,32,33,6,7,8 Show whether each read is a hit or a miss in the cache. Assume that these reads are the first reads to occur after the CPU and memory are powered up.