GATE CSE 2025 Session 1 Q36: Total tag storage for a direct-mapped 16 KB cache
- Computer Organization and Architecture
- 2 marks
- MCQ
- −2/3 if wrong
Question
Consider a memory system with 1M bytes of main memory and 16K bytes of cache memory. Assume that the processor generates 20-bit memory address, and the cache block size is 16 bytes. If the cache uses direct mapping, how many bits will be required to store all the tag values? [Assume memory is byte addressable, , .]
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: A (official GATE 2025 final answer key)
Concept used: Direct-mapped address split: tag = address bits − index bits − offset bits; one tag per cache line.
First step: Offset = 4 bits (16-byte blocks), lines = so index = 10 bits, leaving tag bits per line.
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 2025 Session 1 CS question paper and final answer key, organised by IIT Roorkee. 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