GateAI
Cache Memory and Hierarchy

GATE CSE 2014 Set 3 · Q44

NAT2 marksMedium

Time

The memory access time is 1 nanosecond for a read operation with a hit in cache, 5 nanoseconds for a read operation with a miss in cache, 2 nanoseconds for a write operation with a hit in cache and 10 nanoseconds for a write operation with a miss in cache. Execution of a sequence of instructions involves 100 instruction fetch operations, 60 memory operand read operations and 40 memory operand write operations. The cache hit-ratio is 0.9. The average memory access time (in nanoseconds) in executing the sequence of instructions is ___________.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 1.68

Cache Memory and Hierarchy
  1. Categorize the operations:

    • Instruction fetch is a read operation: 100100 operations.

    • Memory operand read is a read operation: 6060 operations.

    • Total read operations =100+60=160= 100 + 60 = 160.

    • Memory operand write is a write operation: 4040 operations.

    • Total memory operations =160+40=200= 160 + 40 = 200.

  2. Calculate average access time for each type of operation:

    • Cache hit-ratio h=0.9h = 0.9, miss-ratio m=1−0.9=0.1m = 1 - 0.9 = 0.1.

    • Average time for a read operation:

      Tread=(0.9×1 ns)+(0.1×5 ns)=0.9+0.5=1.4 nsT_{\text{read}} = (0.9 \times 1\text{ ns}) + (0.1 \times 5\text{ ns}) = 0.9 + 0.5 = 1.4\text{ ns}
    • Average time for a write operation:

      Twrite=(0.9×2 ns)+(0.1×10 ns)=1.8+1.0=2.8 nsT_{\text{write}} = (0.9 \times 2\text{ ns}) + (0.1 \times 10\text{ ns}) = 1.8 + 1.0 = 2.8\text{ ns}
  3. Calculate total memory access time:

    Ttotal=(160×1.4)+(40×2.8)=224+112=336 nsT_{\text{total}} = (160 \times 1.4) + (40 \times 2.8) = 224 + 112 = 336\text{ ns}
  4. Calculate average memory access time per operation:

    AMAT=TtotalTotal Operations=336200=1.68 ns\text{AMAT} = \frac{T_{\text{total}}}{\text{Total Operations}} = \frac{336}{200} = 1.68\text{ ns}

Hence, the average memory access time is 1.68 ns.

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 3 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 NAT questions like this one, and it is the only one in GATE CSE 2014 Set 3.

How GATE tests Cache Memory and Hierarchy

More from GATE CSE 2014 Set 3

Share this solution

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

GateAI solution cardGATE CSE 2014 Set 3 · Q44 · NAT

The memory access time is 1 nanosecond for a read operation with a hit in cache, 5 nanoseconds for a read operation with a miss in cache, 2 nanoseconds for a write operation with a hit in cache and 10 nanoseconds for a write operation with a miss in cache. Execution of a sequence of instructions involves 100 instruction fetch operations, 60 memory operand read operations and 40 memory operand write operations. The cache hit-ratio is 0.9. The average memory access time (in nanoseconds) in executing the sequence of instructions 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.