Question

the following address is requested from a cache: 0x12AC using a direct mapped cache with 32...

the following address is requested from a cache: 0x12AC

using a direct mapped cache with 32 rows and a block size of 8 words, what is the row? What is the tag?

after this, a new address is requested from the cache: 0x12AD

is this a hit or miss? also, if this was a write operation, what other considerations would there be?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

0x12AC is requested hence he main memory size is 216 or it can be represented by 16 bits

total memory size is 32 bits, and according to question 32 rows, hence 5 bits are needed for block and 3 bits for words.

Tag size = 16 - 5 - 3 = 8 bits

Tag Block Words
8 bits 32 rows = 5 bits 8 words = 3 bits

Row is the number of block and it is 32 rows and 5 bits are needed to show it.

Tag = 8 bits

Now 0x12AC is requested, it is miss

and then 0x 12AD is requested, it also misses as, i is no available in the cache.

If there is write operations, as is miss, hence is needed to write into the cache. There are two policies to write into cache

1. Write back: Using the write-through policy, data is written to the cache and the backing store location at the same time.

2. write through: Using the write-through policy, data is written to the cache and the backing store location at the same time.

Add a comment
Know the answer?
Add Answer to:
the following address is requested from a cache: 0x12AC using a direct mapped cache with 32...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT