Question: Given a computer with a byte-addressable main memory of 216 bytes and block size of eight bytes. Assume the computer has a one-level direct mapped

Given a computer with a byte-addressable main memory of 216 bytes and block size of eight bytes. Assume the computer has a one-level direct mapped cache of 32 block frames (or lines).

a. Show how the main memory address is formatted in tag, index, and byte-offset fields.

b. What cache block would each of the following addresses be mapped to?

0A1B

C23D

F4E5

6789

c. Assume each memory location is loaded with the 1s complement of its least significant address bits. Show whats stored in the cache for each of the above addresses.

d. How many total bytes of main memory can be stored in the cache?

e. How many bits of storage are needed to implement the cache assuming a valid bit is used?

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!