In: Computer Science
Consider two different implementations of the same ISA. There are four classes of instructions, Arithmetic, Store, Load, and Branch. The clock rate and CPI of each implementation are given in the following table.
Clock Rate CPI-Arithmetic CPI-Store CPI-Load CPI-Branch
P1 2.0 GHz 1 2 3 4
P2 2.5 GHz 2 2 2 2
Given a program with 10^6 instructions divided into classes as follows: 10% Arithmetic, 20% Store, 50% Load, and 20% Branch, which implementation is faster?