Question: Assume the main memory size is 3 2 bytes. One word has one byte. Main memory block size is 4 words. The cache memory has

Assume the main memory size is 32 bytes. One word has one byte. Main memory block size is 4 words.
The cache memory has 4 lines. The cache line size is 32 bits. Direct mapping is used. The tags of cache
lines are shown as follows:
Cache Line Id Tag
01
10
21
30
1. How many bits at least are needed for memory addresses? Why?
2. How many bits in the memory address are needed to identify words? Why?
3. How many bits in the memory address are needed to identify cache lines? Why?
4. If The CPU needs to access the information contained in memory address 2910. Will it be a miss
or hit? Explain your answer.

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 Programming Questions!