Question

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

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

Tag

Index

Offset

31-10

9-4

3-0

How many entries does the cache have?

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

The index has 6 bits(9-4+1), and therefore the cache has 26= 64 entries.

Block size = 2Nwhere N = (number of offset bits-2) = 4-2 = 2. (Note that the “-2” is due to using 32-bit words and byte-addressed memory.) Block size = 22= 4 words

Alternately, block size = 2(number of offset bits)bytes.

Block size = 24= 16 bytes = 4 words

Add a comment
Know the answer?
Add Answer to:
For a direct-mapped cache design with a 32-bit address, the following bits of the address 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
  • 3- for a direct mapped cache design with a 32 bit address, the following bits of address are used...

    Please answer all parts correctly and show your work 3- for a direct mapped cache design with a 32 bit address, the following bits of address are used to access the cache Tag Index Offset 31-10 9-5 4-0 Starting from power on, the following byte addressed cache reference are recorded. Address 0 16 132 232 160 1024 30 140 3100180 2180 d. How many blocks are replaced e. What is the hit ratio f. List final state of the cache,...

  • 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]

  • Please show your work and answer all parts correctly 3- for a direct mapped cache design...

    Please show your work and answer all parts correctly 3- for a direct mapped cache design with a 32 bit address, the following bits of address are used to access the cache Tag Index Offset 31-10 9-5 4-0 a. What is cache block size (in word)? b. How many entries does the cache have? c. What is the ration between total bits required for such a cache implementation one the data storage bits?

  • *Need answer for 5.3.6, information is in 5.3* 5.3 For a direct-mapped cache design with a...

    *Need answer for 5.3.6, information is in 5.3* 5.3 For a direct-mapped cache design with a 32-bit address, the following bits of the address are used to access the cache. Tag Index Offset 31-10 9-5 4-0

  • Design a 256KB (note the B) direct‐mapped data cache that uses a 32‐bit address and 8...

    Design a 256KB (note the B) direct‐mapped data cache that uses a 32‐bit address and 8 words per block. Calculate the following: How many bits are used for the byte offset and why? How many bits are used for the set (index) field? How many bits are used for the tag? What’s the overhead for that cache?

  • a) Suppose we have a 64 KB, direct-mapped cache with 8-word blocks. Determine how many bits...

    a) Suppose we have a 64 KB, direct-mapped cache with 8-word blocks. Determine how many bits are required for the tag, index, and offset fields for a 32-bit memory address. b) If instead, we use a 64 KB, 4-way set-associative cache with 8-word blocks, how many bits will be required for the tag, index, and offset fields for a 32-bit address? c) What type of cache is shown in problem 2? How many bits are required for this cache’s tag,...

  • A direct-mapped cache holds 64KB of useful data (not including tag or control bits). Assuming that...

    A direct-mapped cache holds 64KB of useful data (not including tag or control bits). Assuming that the block size is 32-byte and the address is 32-bit, find the number of bits needed for tag, index, and byte select fields of the address. Number of bits for offset bits Number of bits for index bits Number of bits for tag bits

  • Question 17 A direct-mapped cache holds 128KB of useful data (not including tag or control bits)....

    Question 17 A direct-mapped cache holds 128KB of useful data (not including tag or control bits). Assuming that the block size is 32-byte and the address is 32-bit, find the number of bits needed for tag, index, and byte select fields of the address. Number of bits for offset bits Number of bits for index bits Number of bits for tag .. bits

  • Consider a 32 KiB (not KB) cache in a system where the processor uses 64-bit words....

    Consider a 32 KiB (not KB) cache in a system where the processor uses 64-bit words. The system use the byte address of 36-bits. Each cache line (block) stores 256 bits. a) How many bits are used as the byte offset (b)? How many bits are used as the block offset (m)? b) How many index bits are used? How many blocks (lines) are available in the cache? c) Consider the cache being organized as direct-mapped cache. How many bits...

  • The following figure shows the address that is going from a certain processor to a direct-mapped...

    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 -...

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