Question

For a direct-mapped cache with a 32-bit address and 32-bit words, the following address bits are...

For a direct-mapped cache with a 32-bit address and 32-bit
words, the following address bits are used to access the cache.

TAG INDEX OFFSET
31-15 14-8 7-0


a. What is the cache block size (in words)? [13 points]
b. How many blocks does the cache have? [12 points]

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

a)

offset bits = 0-7 which are 8 (0,1,2,3,4,5,6,7)

Cache line size (or) cache block size = 2offset bits = 28 bytes = 26 words = 64 words

Therefore the cache block size is 64 words.

b)

index bits = 14-8 which are 7 (8,9,10,11,12,13,14)

blocks = 2index bits = 27 lines

Add a comment
Know the answer?
Add Answer to:
For a direct-mapped cache with a 32-bit address and 32-bit words, the following address bits are...
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