14. For a direct-mapped cache with a 32-bit address and 32-bit words, the following address bits are used to access the cache.
Tag |
Index |
Offset |
31-16 |
15-5 |
4-0 |
Q-> 14. For a direct-mapped cache with a 32-bit address and 32-bit words, the following address bits are used to access the cache.
Tag |
Index |
Offset |
31-16 |
15-5 |
4-0 |
1) What is the cache block size (in words)?
as. offset field is from 0 to 4, ie 4 bits
=> block size of cache = 24 = 16 words
.
2) How many blocks does the cache have?
as index field is from 5 to 15,
=> no of bits for index = 10
=> no of blocks = 210 = 1024 blocks
Get Answers For Free
Most questions answered within 1 hours.