Answer the following questions about the cache above. i. What is the block size
ID: 1372594 • Letter: A
Question
Answer the following questions about the cache above.
i. What is the block size of the cache in bytes? (1 points)
ii. What is the number of blocks in this cache? (1 points)
iii. What is the total data capacity of the cache in bytes? (1 points)
iv. What is the total number of valid bits in the cache? (1 points)
v. What is the total number of tag bits in the cache? (1 points)
D. You are given the sketch of a cache design below: (5 points) 31 1110 543210 Tag Index 32-bit byte address from processor V Tag 32 Bytes V Tag32 Bytes V Tag32 Bytes V Tag32 Bytes VI Tag | 32 Bytes V Tag 32 Bytes 32 bytes 32 bytes hito hit DO DZ 32X 4:1 Selector 32 bytes 0 4 x 8:1 Mux Data to processor 4 bytes Hit Note: a 4:1 Selector has four control inputs labeled 0, 1, 2, 3 and four data inputs DO, DI, D2, D3. It connectsExplanation / Answer
Block size=2^(offset)=2^5 bytes= 32 bytes
No. Of blocks= 2^(index)=2^6=64
Total size of cache= 32*64=2048 bytes
Valid bits=32
Tag bits=32-6-5=21