Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Split a cache address

Hardware interview practice

Split a cache address

EasyComputer ArchitectureSystemVerilog

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?

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Choose one

Answer choices

  1. A. 5 offset bits, 7 index bits, and 20 tag bits.
  2. B. 5 offset bits, 6 index bits, and 21 tag bits.
  3. C. 5 offset bits, 6 index bits, and 32 tag bits.
  4. D. 6 offset bits, 5 index bits, and 21 tag bits.
Continue practicing

Related questions

Computer ArchitectureRecognize write-back cache behavior→Computer ArchitecturePartition a cache address→Computer ArchitectureCalculate CPI with branch and cache penalties→
asic.fyi · Learn silicon end to end.info@asic.fyi