2,036 views
0 0 votes

What is the difference between Effective CPI and Average CPI  ?

A program is run on 40 MHZ with instruction mix and corresponding clock cycle count.

Determine :   * Effective CPI    * Average CPI     

Instruction Clock Cycle Instruction Count
        Arithmetic            1                45000
        Floating Point            2                32000
        Data Transfer            2                15000
        Control Transfer            2                 8000

 

1 Answer

0 0 votes
Execution time = #f instructions/program * Average clock cycle/ instruction.

Average Clock cycle/instruction = [(45000*1+ 32000*2 + 15000*2 + 8000*2)/45000 +32000+15000 +8000]

                                                         =155000/100000 = 1.5cyles.

Cycle Time = 1/frequency , frequency = 1/40MHz = 0.025*micro second.

Effectice CPI = 4*1.5cycles= 6 cycles.
Position:
Show:

Related questions

8 8 votes
4 4 answers
7.5k
7.5k views
Parshu gate asked Dec 25, 2017
7,519 views
Suppose that in $500$ memory references there are $50$ misses in the first level cache and $20$ misses in second level cache. Assume miss penalty from the $L_{2}$ cache t...
5 5 votes
3 answers 3 answers
5.1k
5.1k views
Prajwal Bhat asked Jan 7, 2017
5,071 views
Suppose that in 500 memory references there are 50 misses in the first level cache and 20 misses in the second level cache.Assume miss penalty from the L2 cache to memory...
1 1 vote
1 1 answer
3.3k
3.3k views
Shashank Chandekar asked Oct 26, 2016
3,341 views
anyone elaborate the reason for each stall cycles.
0 0 votes
1 1 answer
1.1k
1.1k views
rahul sharma 5 asked Nov 6, 2017
1,120 views
What will be L1 miss rate? I think it is 80/3600 ,but then answer did not match. But if i take 80/2000,then it matches with the given answer