Question

The following figure shows the address that is going from a certain processor to a direct-mapped cache. The address is divided into fields. The index of the first bit and the last bit of each field is written below it. Calculate the size of the data that is stored in the cache, in Kibytes, and the total number of bits within the cache, in Kibits.

TAG = 31 - 16

INDEX = 15 - 6

BLOCK OFFSET = 5 - 2

BYTE OFFSET = 1 - 0

Bit index 31 16 15 Size of the data stored in the cache = Kibytes Total number of bits within the cache = Kibits

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

ANSWER:--

GIVEN THAT:--

  • Block offset bits = 0 to 5 =>6 bits.

    Therefore block size = 2^6 = 64 B

    Index bits = 6 to 15 => 10 bits

    Therefore total # of block inside cache = 2^10= 1K blocks.

    Therefore size of data stored in cache = Total # of block inside cache * size of each block = 1k*64 = 64K Byte = 62.5Kibytes

    Tag bits = 16 to 31 = 16 bits.

    Therefore total # of bits for one block entry of cache = 16 tag bits + 1 valid bit + 512 data bits = 529 bits

    Therefore total # of bits within cache = 529 * 1K = 529Kbits = 529*1024 = 541696 bits = 529Kibits.

Add a comment
Know the answer?
Add Answer to:
The following figure shows the address that is going from a certain processor to a direct-mapped...
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