1. [4 points] Consider two different implementations, P1 and P2, of the same ins
ID: 3905262 • Letter: 1
Question
1. [4 points] Consider two different implementations, P1 and P2, of the same instruction set. There are five classes of instructions (A, B, C, D, and E) in the instruction set. The clock rate of each implementation and CPI of each class is given below: Implementation Clock rate CPI class A CPI class B CPI class C CPI class D CPI class E P1 P2 1.0 GHz 1.5 GHz 3 If the number of instructions executed in a certain program is divided equally among the classes of instructions except for class A, which occurs twice as often as each of the others, Which computer is faster? How much faster is it?Explanation / Answer
cycles of P1: (2 x 1) + 2 + 3 + 4 + 3 = 14
Hence required execution time on P1 = 14 / 1 Ghz = 14 nano second
cycles of P2: (2 x 2) + 2 + 2 + 4 + 4 = 16
Hence required execution time on P1 = 16 / 1.5 Ghz = 10.67 nano second
P1 / P2 = 1.3 , Hence P2 is approximately 1.3 times faster than P1.
Hope this helps!
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.