Question: 6. Suppose you have a word-addressable cache memory system with the following parameters: 8K blocks in main memory 512 block frames in cache memory 8
6. Suppose you have a word-addressable cache memory system with the following parameters: 8K blocks in main memory 512 block frames in cache memory 8 words in a block
(a) How many bits are there in a main memory address?
(b) Given the memory address 0xCA49 (hex), give the 3-bit offset of the word within the block that is being referenced.
(c) In a direct mapped cache, give the cache block frame number to which the above referenced address is mapped to. Give your answer in decimal. Give the number and width of hardware comparators that will be needed to determine if the reference is a hit.
(d) In a set associative cache with four block frames per set, give the set number to which the above referenced address is mapped to. Give your answer in decimal. Give the number and width of hardware comparators that are needed.
(e) In a fully associative cache, how many bits are in each cache tag? Give the number and width of hardware comparators that are needed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
