Question: 6. (10 pts) A direct-mapped cache has a 64-bit address and 8M words of data ((1 word = 4 bytes). Each cache block is

6. (10 pts) A direct-mapped cache has a 64-bit address and 8M words of data ((1 word = 4 bytes). Each cache block is 64 bytes. Answer the following questions. (a) How many blocks are there in the cache? (b) How is a 64-bit memory address divided into tag, block index, and byte offset? Calculate the number of bits for each field. (c) Calculate the total size of the cache. 7. (10pts) A 8-way set associative cache has the same data size and block size as the direct-mapped cache in Question #6. (a) How many sets are there in the cache? (b) How is a 64-bit memory address divided into tag, set index, and byte offset? Calculate the number of bits for each field. (c) Calculate the total size of the cache. Value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
