Hardware interview practice
Split a cache address
A 4 KiB cache is two-way set associative, has 32-byte lines, and uses 32-bit byte addresses. How many offset, index, and tag bits are used?
Choose one
Answer choices
- A. 5 offset bits, 7 index bits, and 20 tag bits.
- B. 5 offset bits, 6 index bits, and 21 tag bits.
- C. 5 offset bits, 6 index bits, and 32 tag bits.
- D. 6 offset bits, 5 index bits, and 21 tag bits.
