Page 1 of 1

1. Suppose a byte-addressable computer using a cache has 2^21 bytes of main memory and a cache of 64 blocks, where each

Posted: Sun May 15, 2022 10:08 am
by answerhappygod
1. Suppose a byte-addressable computer using a cache has
2^21 bytes of main memory and a cache of 64 blocks,
where each cache block contains 4 bytes.
a. If this cache is Direct Mapped, what is the format of a
memory address as seen
by the cache, that is, what are the sizes of the tag, set, and
offset fields?
b. If this cache is fully associative, what is the format
of a memory address as seen by the cache?