GateAI
Cache Memory and Hierarchy

GATE CSE 2014 Set 2 · Q44

MCQ2 marksMedium

Time

If the associativity of a processor cache is doubled while keeping the capacity and block size unchanged, which one of the following is guaranteed to be NOT affected?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) Width of processor to main memory data bus

Cache Memory and Hierarchy

Let:

  • C=C = Cache capacity (in bytes)

  • B=B = Block size (in bytes)

  • P=P = Associativity (PP-way set associative)

  • Number of lines N=CBN = \frac{C}{B}

  • Number of sets S=NP=CP×BS = \frac{N}{P} = \frac{C}{P \times B}

When associativity PP is doubled to 2P2P while keeping CC and BB unchanged:

  1. Number of sets SS is halved: The number of set index bits becomes log⁡2(S)−1\log_2(S) - 1, decreasing by 11 bit. Thus, the width of the set index decoder changes (is affected).

  2. Tag field width: Tag bits = Address bits−Set index bits−Block offset bits\text{Address bits} - \text{Set index bits} - \text{Block offset bits}. As set index bits decrease by 11, tag bits increase by 11. Hence, the width of the tag comparator increases by 11 bit (is affected).

  3. Way selection multiplexor: Since the number of ways is doubled, the multiplexor needs to select from 2P2P ways instead of PP ways, so its size/width is affected.

  4. Processor to main memory data bus width: The width of the system data bus between processor/cache and main memory is determined by the memory architecture and memory interface standards, and is completely independent of internal cache associativity.

Thus, the width of processor to main memory data bus is guaranteed to be NOT affected.

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 Q44 of the GATE CSE 2014 Set 2 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 2014 Set 2 has 4.

How GATE tests Cache Memory and Hierarchy

More from GATE CSE 2014 Set 2

Share this solution

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

GateAI solution cardGATE CSE 2014 Set 2 · Q44 · MCQ

If the associativity of a processor cache is doubled while keeping the capacity and block size unchanged, which one of the following is guaranteed to be NOT affected?

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.