GATE CSE 2021 Set 1 Q32: Tag bits for a 32 KB direct-mapped cache with 64-byte blocks
- Computer Organization and Architecture
- 1 mark
- NAT
- No negative marking
Question
Consider a computer system with a byte-addressable primary memory of size bytes. Assume the computer system has a direct-mapped cache of size 32 KB (1 KB bytes), and each cache block is of size 64 bytes.
The size of the tag field is ________ bits.
Try it: numerical answer: type the value
Show answer and explanation
Answer: 17 (official GATE 2021 final answer key)
Concept used: Address = tag + index + offset; in a direct-mapped cache, index + offset bits .
First step: A cache of bytes means index and offset together take 15 of the 32 address bits.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2021 Set 1 CS question paper and final answer key, organised by IIT Bombay. Question paper · Answer key
More Computer Organization and Architecture PYQs
- 2026 Session 1 · Q14Match addressing modes with high-level data elements
- 2026 Session 1 · Q15Instruction sequence for Z = X + Y on a load-store machine
- 2026 Session 1 · Q16Register dependency that causes a data hazard
- 2026 Session 1 · Q36IEEE 754 single-precision sum of 35C00000 and 34A00000
- 2026 Session 1 · Q38Tag length: direct-mapped vs K-way set-associative cache
- 2026 Session 1 · Q54Impossible TLB / page table / cache event sequences