Question: Suppose a computer has 2^32 bytes of byte-addressable main memory and a cache size of 2^15 bytes, and each cache block contains 32 bytes. A)
Suppose a computer has 2^32 bytes of byte-addressable main memory and a cache size of 2^15 bytes, and each cache block contains 32 bytes.
A) How many blocks of main memory are there?
B) How many blocks of cache memory are there?
C) If this cache is direct-mapped, what is the format of a memory address as seen by the cache; that is, the size of the tag field ____, the size of block field ____, and the size of the offset field ____.
D) If this cache is fully associative, what is the format of a memory address as seen by the cache; that is, the size of the tag field ____, and the size of the offset field ____.
E) If this cache is 4-way set associative, what is the format of a memory address as seen by the cache; that is, the size of the tag field ____, the size of set field ____, and the size of the offset field ____.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
