GATE Computer ScienceModerateGATE CSE
A 32 KB direct-mapped cache has 64-byte blocks and the processor issues 32-bit byte addresses. How many tag bits does each cache line store?
- A. 17
- B. 15
- C. 19
- D. 21
Correct answer: A. 17
Offset = 6 bits, lines = 32 KB / 64 B = 512 so index = 9 bits, hence tag = 32 − 9 − 6 = 17 bits.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A program of 2×10⁹ instructions runs on a 1.5 GHz processor. The mix is 40% instructions of CPI 1, 30% of CPI 2, 20% of CPI 3 and 10% of…
- An unpipelined datapath needs 10 ns per instruction. A 5-stage pipelined version has a clock period of 2.5 ns (including latch overhead)…
- Sixty percent of a program's execution time can be sped up by a factor of 5 and the rest cannot. What is the overall speedup, to two…
- An 8-bit processor adds 0x7F and 0x01 as two's-complement numbers. Which flag setting results?
- A system has 32-bit virtual addresses, 4 KB pages and 4-byte page-table entries with a single-level page table. What is the size of one…
- What is the IEEE 754 single-precision hexadecimal representation of −6.5?