(6 pts) Consider two different implementations of the same instruction set archi
ID: 3740966 • Letter: #
Question
(6 pts) Consider two different implementations of the same instruction set architecture. The instructions can be divided into four classes according to their CPI (class A, B, C, and D). P1 has a clock rate of 2.5 GHz and P2 of 3 GHz. For a program with (dynamic) instruction count of 1012 instructions divided into classes as 10% class A, 20% class B, 50% class C, and 20% class D 3. Class CPI on P1 (a2.5 GHz) CPI on P2 (a3GHz)Instruction Frequencv 10% 20% 50% 2 4 4 (a) What is the average CPI for each of the implementations? b) What is the execution time of the program for each of implementations?Explanation / Answer
Solution:
a)
For P1:
CPI= ((1*0.1) + (3*0.2)+ (3*0.5)+ (4*0.2))= 3
For P2:
CPI= ((2*0.1) + (2*0.2)+ (2*0.5)+ (4*0.2))= 2.4
b)
For P1:
Execution time= Instruction count * CPI/clock rate= ((10^12)*3)/(2.5*10^9)= 1200 seconds
For P2:
Execution time= Instruction count * CPI/clock rate= ((10^12)*2.4)/(3*10^9)= 800 seconds
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.