Question: A memory has 3 2 - bit addresses. It also has a 2 5 6 K B cache. Blocks are 6 4 bytes in size.

A memory has 32-bit addresses. It also has a 256KB cache. Blocks are 64 bytes in size. Note 1K=210,1M
=220
a. How many blocks are there in the cache if the cache is a direct-mapped cache?
b. How many sets are there in the cache if the cache is a 2-way set-associative cache?
c. Show the partitioning of a memory address into the appropriate fields, if the cache is a direct-mapped
cache, and 2-way set associative, respectively. That is to find how many bits needed for tag, block/set
index and byte offset, respectively.
d. What is the total size of the cache if the cache is a direct-mapped cache?
e. What is the total size of the cache if the cache is a 2-way set associative cache?
 A memory has 32-bit addresses. It also has a 256KB cache.

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!