Question

A direct-mapped cache has 4 blocks and each block holds four bytes of data. The memory system is byte-addressable. Determine
0 0
Add a comment Improve this question Transcribed image text
Answer #1

No of cache Blocks = 4 blocks = 22 // means 2 bits needed for index in cache block

Block size = 4 byte = 22 // means 2 bits needed for byte offset

6 bits...... Tagl 2 bits) Cache Block index (2 bits) Offset (2 bits) Cache Direct Mapping

Cache Block No Tag Match Miss/Hit Direct Mapp address (6 bits) Tag Index (2 bits) (2 bit) (cache block no) 00 11 Offset (2 bi

Note: In direct map cache First we go to particular cache block then we compare TAG bits if tag bits are match with already stored data in cache then it is called HIT, otherwise it is called MISS

No of hits = 05   

No of Miss =07

Total memory reference = 12

HIT Ratio = (5/12) =0.416

Miss Ratio = (7 /12) =0.583

Add a comment
Know the answer?
Add Answer to:
A direct-mapped cache has 4 blocks and each block holds four bytes of data. The memory...
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