The figure below shows a direct-mapped cache. There are eight blocks in the cache and each block holds four words of mem
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
The figure below shows a direct-mapped cache. There are eight blocks in the cache and each block holds four words of mem
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!