Consider two processors P1 and P2 with four types of instructions as listed in the table. Assume that a program with a dynamic instruction count of 106 instructions such that the instructions are divided into the classes as follows: 20% class A, 10% class B, 30% class C, and 40% class D.
P1 has a clock rate of 2 GHz
P2 has a clock rate of 2.5 GHz
a) What is the AVERAGE CPI of each processor?
Processor CPI for each Instruction Class P1(2GHz) P2(2.5GHz) 1 1