Question

Question 33 10 pts For a direct mapped cache of 4 blocks with a cache block size of 1 byte, in which cache block will each me

10. Assume a 16-bit address space. Show all work (calculations) and clearly indicate how you calculate the index and tag. Mem

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

Please give thumbs up if you like it.I have completed the problem

Step 1 :-

Data given is

Direct mapped cache

=>Cache Block Size is 1Byte

So,Block offset will be = log 1 = 0 bits

=> Number of Blocks are = 4

Sp,Index bits will be = log 4 = 2 bits

=> Total bits of References is 12 bits

So,Tag bits will be = (12 - 2)= 10bits

Step 2 :-

We will check all references whether it is hit or miss by checking tag bit of particular index if its matches then it is hit otherwise there is miss

Every Memory references shown below and showed about hit/miss,tag and index

OPERATION MEMORY LOCATION BINARY NUMBER HIT/MISS CACHE INDEX TAG
1 0x0012 0000000000010010 MISS 10(2ND INDEX) 00000000000100
2 0x0022 0000000000100010 MISS 10(2ND INDEX) 00000000001000
3 0xFF12 1111111100010010 MISS 10(2ND INDEX) 11111111000100
4 0x0012 0000000000010010 MISS 10(2ND INDEX) 00000000000100
5 0x0012 0000000000010010 HIT 10(2ND INDEX) 00000000000100
6 0xEDFE 1110101111111110 MISS 10(2ND INDEX) 11101011111111
7 0x0012 0000000000010010 MISS 10(2ND INDEX) 00000000000100
Add a comment
Know the answer?
Add Answer to:
Question 33 10 pts For a direct mapped cache of 4 blocks with a cache block...
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