Skip to content
GATEiit

GATE CSE 2017 Session 1 Q64: TAG bits when a direct-mapped cache (10-bit tag) becomes 16-way set-associative

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

Question

A cache memory unit with capacity of N words and block size of B words is to be designed. If it is designed as a direct mapped cache, the length of the TAG field is 10 bits. If the cache unit is now designed as a 16-way set-associative cache, the length of the TAG field is ______ bits.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 14 (official GATE 2017 final answer key)

Concept used: Making a cache k-way set-associative divides the number of sets by k, removing log⁡2k bits from the index and adding them to the tag.

Concept notes

Loading notes…

First step: 16-way set-associativity divides the number of sets by 16, so the index loses log⁡216=4 bits; add those to the 10-bit tag.

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 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key