Consider a 2-way set associative cache with block size of 2048 blocks where each block has 64 bytes. Compute the number
Posted: Mon May 02, 2022 12:22 pm
Consider a 2-way set associative cache with block size of 2048
blocks where each block has 64 bytes. Compute the number of sets
and the cache data size (ignore valid/modified bit). b. If the
memory address consists of 32 bits, find the number of tag bits,
index bits, and block offset bits. c. Given that the cache is a
write-back cache, compute the total number of bits required to
store the valid and tag bits in the cache. d. Starting with an
empty cache, show the tag, set index, and way (0 or 1) for each
address and indicate whether a hit or a miss. The replacement
policy is LRU.
Tag Set Index Way Hit/Miss Address oxo01F3A70 oxo02E3A74 oxo01F3A80 oxo01F3A78 oxO02E3A78 Ox007F3A80 oxo01F3A84 oxo01F3A74
blocks where each block has 64 bytes. Compute the number of sets
and the cache data size (ignore valid/modified bit). b. If the
memory address consists of 32 bits, find the number of tag bits,
index bits, and block offset bits. c. Given that the cache is a
write-back cache, compute the total number of bits required to
store the valid and tag bits in the cache. d. Starting with an
empty cache, show the tag, set index, and way (0 or 1) for each
address and indicate whether a hit or a miss. The replacement
policy is LRU.
Tag Set Index Way Hit/Miss Address oxo01F3A70 oxo02E3A74 oxo01F3A80 oxo01F3A78 oxO02E3A78 Ox007F3A80 oxo01F3A84 oxo01F3A74