Question: 1. Suppose a computer using direct mapped cache has 224 words of main memory and a cache of 2048 blocks, where each cache block contains
1. Suppose a computer using direct mapped cache has 224 words of main memory and a cache of 2048 blocks, where each cache block contains 16 words.
a. How many blocks of main memory are there?
b. What is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, block, and word fields?
c. To which cache block will the memory reference 00A1B216 map?
2. Suppose a computer using fully associative cache has 232 words of main memory and a cache of 128 blocks, where each cache block contains 64 words.
a. How many blocks of main memory are there?
b. What is the format of a memory address as seen by the cache, that is, what are the sizes of the tag and word fields?
c. To which cache block will the memory reference 02C47216 map? 3.
Suppose a computer using set associative cache has 232 words of main memory and a cache of 64 blocks, and each cache block contains 16 words.
a. If this cache is 2-way set associative, what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, set, and word fields?
b. If this cache is 4-way set associative, what is the format of a memory address as seen by the cache?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
