Awesome q2a theme
0 votes
17 views
Suppose that a machine A executes a program with an average CPI of 3. Consider another machine B (with the same instruction set and a better compiler) that executes the same program with 10% less instructions and with a CPI of 1.5 at 1.5 GHz. The clock rate of A so that the two machines have the same performance is _______ GHz.
in CO & Architecture by (20 points)
edited by | 17 views

1 Answer

+1 vote
Best answer
Let, $I_1$ be the instructions executed on machine $A$.

$I_2$ be the instructions executed on machine $B$ with a better compiler.

So, $I_2 = 0.9 I_1$ since it's given that better compiler produces lesser instructions.

Also, let $F_1$ and $F_2$ be clock rates of machine $A$ and machine $B$
Now, to have same performance, execution time must be same.

So,
$I_2 \times CPI_2 \times \frac{1}{F_2} = I_1 \times CPI_1 \times \frac{1}{F_1} $

$0.9 \times I_1 \times 1.5 \times \frac{1}{1.5 \times 10^9} = I_1 \times 3 \times \frac{1}{F_1} $

$0.9 \times 1.5 \times \frac{1}{3 \times 1.5 \times 10^9} =  \frac{1}{F_1} $

$F_1 = 3.33 GHz$
by (293 points)
selected by
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Apr 2020
  1. Ram Swaroop

    38 Points

  2. Kushagra गुप्ता

    36 Points

  3. !KARAN

    36 Points

  4. sushmitagoswami

    6 Points

  5. iot_ts

    6 Points

  6. TrenaGreeves

    5 Points

  7. Theda53E2483

    5 Points

  8. FrancescoG89

    5 Points

  9. PalmaMast586

    5 Points

  10. MarciaNaranj

    5 Points

3,527 questions
1,658 answers
10,469 comments
90,059 users