Question: The formula shown on page 457 shows the typical method to index a direct-mapped cache, specifically (Block address) modulo (Number of blocks in the cache).
The formula shown on page 457 shows the typical method to index a direct-mapped cache, specifically (Block address) modulo (Number of blocks in the cache). Assuming a 32-bit address and 1024 blocks in the cache, consider a different indexing function, specifically (Block address[31:27] XOR Block address[26:22]). Is it possible to use this to index a direct-mapped cache? If
so, explain why and discuss any changes that might need to be made to the cache. If it is not possible, explain why.
There are many different design parameters that are important to a cache’s overall performance. The table below lists parameters for different direct-mapped cache designs.
a. b. Cache Data Size 32 KB 32 KB Cache Block Size 2 words 4 words Cache Access Time 1 cycle 2 cycle
Step by Step Solution
3.49 Rating (172 Votes )
There are 3 Steps involved in it
Yes it is possible to use the indexing function Block address31 27 Block address26 22 to index a dir... View full answer
Get step-by-step solutions from verified subject matter experts
