please solve the problem fully! thank you! 1.6 [20] Consider two different imple
ID: 3745182 • Letter: P
Question
please solve the problem fully! thank you!
1.6 [20] 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 with a clock rate of 2.5 GHz and CPIs of 1, 2, 3, and 3, and P2 with a clock rate of 3 GHz and CPIs of 2, 2, 2, and 2. Given a program with a dynamic instruction count of 1.0E6 instructions divided into classes as follows: 10% class A, 20% class B, 50% class C, and 20% class D, which implementation is faster? What is the globalPfor ach implementationt b. Find the clock cycles required in both cases.Explanation / Answer
A)
Class A: 105 instr. Class B: 2 X 105 Instr. Class C: 5 X 105 instr. Class D: 2 X 105 instr.
Time = No. instr. X CPI/Clock Rate
Total time P1 = (105 + 2 X 105 X 2 + 5 X 105 X 3 + 2 X 105 X 3)/(2.5 X 109) = 10.4 X 10-4s
Total time P2 = ( 105 X 2 + 2 X 105 X 2 + 5 X 105 X 2 + 2 X 105 X 2)/ ( 3 X 109) = 6.66 X 10-4s
CPI(P1) = 10.4 X 10-4 X 2.5 X 109 / 106 = 2.6
CPI(P2) = 6.66 X 10-4 X 3 X 109 / 106 = 2.0
B)
Clock Cylces (P1) = 105 + 2 X 105 X 2 + 5 X 105 X 3 + 2 X 105 X 3 = 26 X 105
Clock Cylces (P2) = 105 X 2 + 2 X 105 X 2 + 5 X 105 X 2 + 2 X 105 X 2= 20 X 105
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.