A fully associative cache of 16 KB uses 16-byte blocks with 32-bit addresses. How many tag bits are stored with each block?
Correct answer C. 28
Explanation
A fully associative cache has a single set, so there are no index bits. With 16-byte blocks the offset is 4 bits, and the tag is 32 - 4 = 28 bits. The answer 18 assumes a direct-mapped layout with a 10-bit index. Full associativity removes conflict misses but needs a comparator for every line, which is why it is reserved for small structures such as TLBs.
Answer checked How we write and check questions
Discussion