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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!