Question

We have a 4 KB direct-mapped data cache with 4-byte blocks. Consider this address trace: 0x48014554 0x48014548 0x48014754 0x48034760 0x48014554 0x48014560 0x48014760 0x48014554 For this cache, for eac...

We have a 4 KB direct-mapped data cache with 4-byte blocks.

Consider this address trace:
0x48014554
0x48014548
0x48014754
0x48034760
0x48014554
0x48014560
0x48014760
0x48014554

For this cache, for each address in the above trace, show the tag, index and offset in binary (or hex).
Indicate whether each reference is a hit or a miss. What is the miss rate?

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

1) 0x48014554 ----->01001000000000010100010101010100

tag=01001000000000010100

index=0101010101

offset=00----------------------------.MISS

2)0x48014548---->1001000000000010100010101001000

TAG=01001000000000010100

Index= 0101010010

offset=00--------------------------------------->MISS

3)0x48014754------------------->01001000000000010100011101010100

Tag=01001000000000010100

index=0111010101

offset=00--------------------------------->MISS

4)0x48034760 ------------------->01001000000000110100011101100000

TAG=01001000000000110100

index=0111011000

offset=00------------------------------->MISS

5)0x48014554--------------------->01001000000000010100010101010100

TAG=01001000000000010100

INDEX=0101010101

OFFSET=00------------------------------------>HIT

6)0x48014560 ------------------------>01001000000000010100010101100000

TAG=01001000000000010100

INDEX=0101011000

OFFSET=00--------------------------->MISS

7 ) 0x48014760 ----------------------------->01001000000000010100011101100000

TAG=01001000000000010100

INDEX=0111011000

OFFSET=00----------------------------------------------->HIT

8) 0x48014554----------------------------->01001000000000010100010101010100

TAG=01001000000000010100

INDEX=0101010101

OFFSET=00-------------------------------------->HIT

MISS RATE=no of misses/total =5/8=0.625---->62%

Add a comment
Know the answer?
Add Answer to:
We have a 4 KB direct-mapped data cache with 4-byte blocks. Consider this address trace: 0x48014554 0x48014548 0x48014754 0x48034760 0x48014554 0x48014560 0x48014760 0x48014554 For this cache, for eac...
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