-
Consider a direct mapped cache of size 32 kbyte with block size 32 byte. The CPU generates 32 bit address. The number of bits needed for cache indexing and the number of tag bits are respectively
-
- 10, 17
- 10, 22
- 15, 17
- 5, 17
- 10, 17
Correct Option: A
As given
Cache size = 32 kbyte = 32 × 210 byte
= 215 byte = 15 bit
Therefore, size of tag = 32 – 15 = 17 bit
Since, 32 byte of block is used by cache, so there actually 1 k blocks and for indexing that we need 10 bit.