1,420 views
0 votes
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 votes
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.

Related questions

1 votes
1 votes
1 answer
3
Shashank Chandekar asked Oct 26, 2016
2,011 views
anyone elaborate the reason for each stall cycles.
0 votes
0 votes
1 answer
4
rahul sharma 5 asked Nov 6, 2017
842 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