words of main memory, and a cache of 128 blocks, where
each cache block contains 64 words.
1. How many blocks of main memory are there?
2. If this cache is a direct-mapped cache, what is the format of a memory address
as seen by the cache, i.e., what are the sizes of the tag and word fields?
3. To which cache block will the memory reference 0A745 map?
4. If this cache is fully associative, what is the format of a memory address as
seen by the cache, i.e., what are the sizes of the tag and word fields?
5. To which cache block will the memory reference 0A745 map?
6. If this cache is 2-way set associative, what is the format of a memory address
as seen by the cache, i.e., what are the sizes of the tag, set, and word fields?
7. To which cache set and block will the memory reference 0A745 map?