Question: (d) Consider two CPUS P1 and P2, each implementing the same ISA and executing a program P. Program P comprises four classes of instructions:

(d) Consider two CPUS P1 and P2, each implementing the same ISA 

(d) Consider two CPUS P1 and P2, each implementing the same ISA and executing a program P. Program P comprises four classes of instructions: A, B, C, and D. The clock frequency of each CPU and CPI for each instruction class for each CPU is given in the table. CPU Clock Frequency P1 2.0GHz P2 3.0GHz CPI per Instruction Class Class A Class B Class C Class D Class E 1.0 2.0 3.0 4.0 3.0 2.0 2.0 2.0 4.0 4.0 i. Assume peak performance is defined as the fastest rate a CPU can execute any program (or instruction sequence). What is the peak performance of CPUS P1 and P2 expressed in instructions per second? ii. If the number of instructions executed by CPUS P1 and P2 for program P is divided equally among the instruction classes except for class A, which occurs twice as often as each of the others, which CPU executes program P. What is the speedup and percent speedup? iii. If the number of instructions executed by CPUS P1 and P2 for program P is divided equally among the instruction classes except for class E, which occurs twice as often as each of the others, which CPU executes program P. What is the speedup and percent speedup?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

i Peak Performance To find the peak performance we need to consider the instruction with the highest CPI Cycles Per Instruction for each CPU This is b... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!