An 8-way set associative cache of size 64 KB (1 KB = 1024 bytes) is used in a system with 32-bit address. The address is sub-divided into TAG, INDEX, and BLOCK OFFSET. The number of bits in the TAG is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2023 · Q64
Time
Your answerNumerical answer
Solution
Official answer: 19
Cache Memory and HierarchyTo determine the number of bits in the TAG, let:
Total address bits =
Cache size
Set associativity
Block size , which means the block offset requires bits.
The total number of cache lines is:
The number of sets in the cache is:
Thus, the number of index bits is:
In a 32-bit address architecture, the address is divided as:
Hence, the number of bits in the TAG is 19.
Try the question first, then check your work.
Examiner trap
Set the block size to bytes and write the number of sets in terms of . Notice how the block offset bits cancel out when computing the TAG bits.
This Cache Memory and Hierarchy previous year question is Q64 of the GATE CSE 2023 paper. Find more GATE CSE PYQs on Cache Memory and Hierarchy in Computer Organization and Architecture, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Cache Memory and Hierarchy PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Cache Memory and Hierarchy has 47 GATE CSE PYQs across 23 papers from 2011 to 2026. 16 of them are 2-mark NAT questions like this one, and GATE CSE 2023 has 2.
How GATE tests Cache Memory and HierarchyIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.