GateAI
Cache Memory and Hierarchy

GATE CSE 2014 Set 1 · Q55

NAT2 marksMedium

Time

Consider two processors P1P_1 and P2P_2 executing the same instruction set. Assume that under identical conditions, for the same input, a program running on P2P_2 takes 25% less time but incurs 20% more CPI (clock cycles per instruction) as compared to the program running on P1P_1. If the clock frequency of P1P_1 is 1GHz, then the clock frequency of P2P_2 (in GHz) is _______.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 1.6

Cache Memory and Hierarchy

The CPU execution time formula is:

T=I×CPIfT = \frac{I \times \text{CPI}}{f}

where:

  • II is the instruction count,

  • CPI\text{CPI} is the average cycles per instruction,

  • ff is the clock frequency.

Since both processors run the same program with the same instruction set and input, the instruction count is the same for both:

I1=I2=II_1 = I_2 = I

From the problem statement:

  • T2=(1−0.25)T1=0.75 T1T_2 = (1 - 0.25) T_1 = 0.75 \, T_1

  • CPI2=(1+0.20)CPI1=1.20 CPI1\text{CPI}_2 = (1 + 0.20) \text{CPI}_1 = 1.20 \, \text{CPI}_1

  • f1=1 GHzf_1 = 1\text{ GHz}

Expressing the ratio of execution times:

T2T1=I×CPI2f2I×CPI1f1=(CPI2CPI1)×(f1f2)\frac{T_2}{T_1} = \frac{\frac{I \times \text{CPI}_2}{f_2}}{\frac{I \times \text{CPI}_1}{f_1}} = \left(\frac{\text{CPI}_2}{\text{CPI}_1}\right) \times \left(\frac{f_1}{f_2}\right)

Substitute the given values:

0.75=1.20×1f20.75 = 1.20 \times \frac{1}{f_2}
f2=1.200.75=1.6 GHzf_2 = \frac{1.20}{0.75} = 1.6\text{ GHz}

Thus, the clock frequency of P2P_2 is 1.6 GHz.

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 2014 Set 1 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 GATE CSE 2014 Set 1 has 2.

How GATE tests Cache Memory and Hierarchy

More from GATE CSE 2014 Set 1

Share this solution

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

GateAI solution cardGATE CSE 2014 Set 1 · Q55 · NAT

Consider two processors P1 and P2 executing the same instruction set. Assume that under identical conditions, for the same input, a program running on P2 takes 25% less time but incurs 20% more CPI (clock cycles per instruction) as compared to the program running on P1. If the clock frequency of P1 is 1GHz, then the clock frequency of P2 (in GHz) 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.