Skip to content
GATEiit

GATE CSE 2018 Q44: Tag field length for a K-way set-associative cache

Syllabus topic: Memory interfacing and hierarchy: performance and cache memory mapping

Question

The size of the physical address space of a processor is 2P bytes. The word length is 2W bytes. The capacity of cache memory is 2N bytes. The size of each cache block is 2M words. For a K-way set-associative cache memory, the length (in number of bits) of the tag field is

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
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).

Concept notes

Loading notes…

First step: Write the block offset as M+W bits and the number of sets as 2N/(2M+W⋅K), then subtract both index and offset bits from P.

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

WhatsAppDownload image

Source: official GATE 2018 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key