GateAI
Cache Memory and Hierarchy

GATE CSE 2012 · Q55

MCQ2 marksMedium

Time

Statement for Linked Answer Questions 54 and 55

A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1 replacement bit. The size of the cache tag directory is

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) 160 Kbits

Cache Memory and Hierarchy

From the cache specifications:

  • Total number of cache lines =256 KB32 B=8192=213= \frac{256\text{ KB}}{32\text{ B}} = 8192 = 2^{13} lines.

  • Tag bits per entry =16 bits= 16\text{ bits}.

Each entry in the cache tag directory contains:

  • Tag: 16 bits16\text{ bits}

  • Valid bits: 2 bits2\text{ bits}

  • Modified bit: 1 bit1\text{ bit}

  • Replacement bit: 1 bit1\text{ bit}

Total bits per entry=16+2+1+1=20 bits\text{Total bits per entry} = 16 + 2 + 1 + 1 = 20\text{ bits}

There is one directory entry per cache block (line):

Total size of the tag directory=8192×20 bits=163840 bits\text{Total size of the tag directory} = 8192 \times 20\text{ bits} = 163840\text{ bits}
Size in Kbits=1638401024=160 Kbits\text{Size in Kbits} = \frac{163840}{1024} = 160\text{ Kbits}

Thus, the correct answer is 160 Kbits (Option A).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Cache Memory and Hierarchy previous year question is Q55 of the GATE CSE 2012 paper. Find more GATE CSE PYQs on Cache Memory and Hierarchy in Computer Organization and Architecture, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Cache Memory and Hierarchy in GATE CSE

Cache Memory and Hierarchy has 47 GATE CSE PYQs across 23 papers from 2011 to 2026. 16 of them are 2-mark MCQs like this one, and GATE CSE 2012 has 2.

How GATE tests Cache Memory and Hierarchy

More from GATE CSE 2012

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2012 · Q55 · MCQ

Statement for Linked Answer Questions 54 and 55: A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1 replacement bit. The size of the cache tag directory is

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.