Question:
Barcelona has an instruction count of 2.389E12, an execution time of 750 s, and a reference time of 9650 s.
Answer:
New CPI is 1.379
Explanation:
Given:
Clock Rate=4 GHz
Reduction in number of instructions=15%
Execution time=700 sec
Instruction Count=[tex]2.389*10^{12}[/tex]
Find:
New CPI=?
Solution:
Cycle Time=1/Clock Rate
[tex]Cycle\ Time= 0.25*10^{-9} sec[/tex]
Execution Time= Clock cycles * Cycle Time
Clock Cycles=Execution Time/Cycle Time
[tex]Clock Cycles=\frac{700}{0.25*10^{-9}}[/tex]
[tex]Clock\ Cycles= 2.8*10^{12}[/tex]
New Instruction Count=[tex]2.389*10^{12}[/tex]*0.85
New Instruction Count=[tex]2.03*10^{12}[/tex]
[tex]CPI=\frac{Clock\ Cycles}{New\ Instructions} \\CPI=\frac{2.8*10^{12}}{2.03*10^{12}} \\CPI= 1.379[/tex]
New CPI is 1.379