Exams › GATE › Technical
A certain processor uses a fully associative cache of size 16 kB. The cache block size is 16 bytes. Assume that the main memory is byte addressable and uses a 32-bit address. How many bits are required for the Tag and the Index fields respectively in the addresses generated by the processor?
- 24 bits and 0 bits
- 28 bits and 4 bits
- 24 bits and 4 bits
- 28 bits and 0 bits
Correct answer: 28 bits and 0 bits
Solution
Block size 16 bytes needs 4 offset bits; a fully associative cache has zero index bits since any block maps anywhere. Tag = 32 - 4 - 0 = 28 bits. So 28 bits tag and 0 bits index, which is the last option, not '24 and 0'.
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →