GATE CSE 2018 Q44: Tag field length for a K-way set-associative cache
- Computer Organization and Architecture
- 2 marks
- MCQ
- −2/3 if wrong
Syllabus topic: Memory interfacing and hierarchy: performance and cache memory mapping
Question
The size of the physical address space of a processor is bytes. The word length is bytes. The capacity of cache memory is bytes. The size of each cache block is words. For a -way set-associative cache memory, the length (in number of bits) of the tag field is
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: B (official GATE 2018 final answer key)
Concept used: Physical address = tag + set index + block offset; the number of sets is cache size divided by (block size associativity).
First step: Write the block offset as bits and the number of sets as , then subtract both index and offset bits from .
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Memory interfacing and hierarchy: performance and cache memory mapping
Every PYQ on this topic →Share this question
Source: official GATE 2018 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 · Q38Tag length: direct-mapped vs K-way set-associative cache
- 2026 Session 1 · Q54Impossible TLB / page table / cache event sequences