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

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




(b) 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. Clock CPU CPI per Instruction Class Frequency Class A Class B Class C Class D P1 2.5GHz 1.0 2.0 3.0 3.0 P2 3.0GHz 2.0 2.0 2.0 2.0 i. Suppose program P comprises 10M instructions with the following instruction frequencies: 10% class A, 20% class B, 50% class C, and 20% class D. Which CPU implementation is faster? ii. Compute is the overall average CPI for program P for each CPU implementation. iii. Compute the total clock cycles required to execute program P for each CPU implementation.

Step by Step Solution

3.38 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

i To determine which CPU implementation is faster we need to compare their execution times Execution ... 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!