GATE CSE 2026 Session 1 Q38: Tag length: direct-mapped vs K-way set-associative cache
- Computer Organization and Architecture
- 2 marks
- MCQ
- −2/3 if wrong
Question
The size of the physical address space of a processor is bytes. The capacity of a cache memory unit is bytes. The cache block size is 128 bytes. The cache memory unit can be built as a direct mapped cache or as a -way set-associative cache, where and . Let the length of the TAG field be bits for the direct mapped cache, and bits for the set-associative cache.
Which one of the following options is true?
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: A (official GATE 2026 final answer key)
Concept used: Making the cache -way divides the number of sets by , moving bits from index to tag.
First step: Direct mapped: lines, so index 16 bits; with ways the set index has 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 2026 Session 1 CS question paper and final answer key, organised by IIT Guwahati. 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 · Q54Impossible TLB / page table / cache event sequences
- 2026 Session 1 · Q60Structural-hazard stall cycles from a multi-cycle EX stage