1. Consider two different implementation, P1 and P2, of the same instruction set
architecture. There are five classes of instructions (A, B, C, D and E) in the instruction
set. The clock rate and CPI of each implementation are given in the following table.
Clock Rate CPI Class A
CPI Class B
CPI Class C
CPI Class D
P1
2.0 GHz
1
2
3
4
P2 4.0 GHz
2
2
2
4
(i) Given a program with instructions only of class A, which implementation is
faster?
CPI Class E
3
4
(ii) If the number of instructions executed in a certain program is divided equally
among the classes of the instructions except for class A, which occurs twice as
often as each of the others, which computer is faster? How much faster is it?
(iii) If the number of instructions executed in a certain program is divided equally
among the classes of the instructions except for class E, which occurs twice as
often as each of the others, which computer is faster? How much faster is it?