Consider three diff erent processors P1, P2, and P3 executing the same instruction set.
P1 has 3 GHz
clock rate and a CPI of 1.5. P2 has a 2.5 GHz clock rate and a CPI of 1.0. P3 has a 4.0 GHz clock rate and
has a CPI of 2.2. (APR/MAY 2018) a. Which processor has the highest performance expressed in
instructions per second? b. If the processors each execute a program in 10 seconds, find the number of
cycles and the number of instructions. c. We are trying to reduce the execution time by 30% but this
leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction? Ans:
1.P1: 3GHz / 1.5 = 2 * 10^9 instructions per second P2: 2.5GHz / 1.0 = 2.5 * 10^9 instructions per second
P3: 4GHz / 2.2 = 1.82 * 10^9 instructions per second So P2 has the highest performance among the
three.
2. Cycles: P1: 3GHz * 10 = 3 * 10^10 cycles P2: 2.5GHz * 10 = 2.5 * 10^10 cycles P3: 4GHz * 10 = 4 *
10^10 cycles [Link] of instructions: P1: 3GHz * 10 / 1.5 = 2 * 10^10 instructions P2: 2.5GHz * 10 / 1.0 =
2.5 * 10^10 instructions P3: 4GHz * 10 / 2.2 = 1.82 * 10^10 instructions [Link] time = (Num of
instructions * CPI) / (Clock rate) So if we want to reduce the execution time by 30%, and CPI increases by
20%, we have: Execution time * 0.7 = (Num of instructions * CPI * 1.2) / (New Clock rate) New Clock rate
= Clock rate * 1.2 / 0.7 = 1.71 * Clock rate New Clock rate for each processor: P1: 3GHz * 1.71 = 5.13 GHz
P2: 2.5GHz * 1.71 = 4.27 GHz P3: 4GHz * 1.71 = 6.84 GHz
Consider two different implementations of the same instruction set architecture. Th e instructions can
be divided into four classes according totheir 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 global CPI for each
implementation?Find the clock cycles required in both cases.
.Suppose we have two implementations of the same instruction set architecture. Computer A has a clock
cycle time of 250 ps and a CPI of 2.0 for some program, and computer B has a clock cycle time of 500 ps
and a CPI of 1.2 for the same program. Which computer is faster for this program and by how much? We
know that each computer executes the same number of instructions for the program; let’s call this
number I. First, find the number of processor clock cycles for each computer: