GateAI
Cache Memory and Hierarchy

GATE CSE 2011 · Q43

MCQ2 marksMedium

Time

An 8KB direct-mapped write-back cache is organized as multiple blocks, each of size 32-bytes. The processor generates 32-bit addresses. The cache controller maintains the tag information for each cache block comprising of the following. 1 Valid bit 1 Modified bit As many bits as the minimum needed to identify the memory block mapped in the cache. What is the total size of memory needed at the cache controller to store meta-data (tags) for the cache?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) 5376 bits

Cache Memory and Hierarchy
  1. Determine the number of blocks (lines) in the cache:

    Cache Size=8 KB=213 bytes\text{Cache Size} = 8\text{ KB} = 2^{13}\text{ bytes}
    Block Size=32 bytes=25 bytes\text{Block Size} = 32\text{ bytes} = 2^5\text{ bytes}
    Number of lines=213 bytes25 bytes=28=256 lines\text{Number of lines} = \frac{2^{13}\text{ bytes}}{2^5\text{ bytes}} = 2^8 = 256\text{ lines}
  2. Break down the 32-bit physical address:

    • Word/Block offset bits =log⁡2(32)=5 bits= \log_2(32) = 5\text{ bits}

    • Line/Index bits =log⁡2(256)=8 bits= \log_2(256) = 8\text{ bits}

    • Tag bits =32−8−5=19 bits= 32 - 8 - 5 = 19\text{ bits}

  3. Metadata per cache line:

    • Tag bits =19 bits= 19\text{ bits}

    • Valid bit =1 bit= 1\text{ bit}

    • Modified (dirty) bit =1 bit= 1\text{ bit}

    • Total metadata per block =19+1+1=21 bits= 19 + 1 + 1 = 21\text{ bits}

  4. Total metadata size for the entire cache:

    Total size=256 blocks×21 bits/block=5376 bits\text{Total size} = 256\text{ blocks} \times 21\text{ bits/block} = 5376\text{ bits}

Thus, the total memory required is 5376 bits, corresponding to option (D).

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 Q43 of the GATE CSE 2011 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 it is the only one in GATE CSE 2011.

How GATE tests Cache Memory and Hierarchy

More from GATE CSE 2011

Share this solution

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

GateAI solution cardGATE CSE 2011 · Q43 · MCQ

An 8KB direct-mapped write-back cache is organized as multiple blocks, each of size 32-bytes. The processor generates 32-bit addresses. The cache controller maintains the tag information for each cache block comprising of the following. 1 Valid bit 1 Modified bit As many bits as the minimum needed to identify the memory block mapped in the cache. What is the total size of memory needed at the cache controller to store meta-data (tags) for the cache?

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.