Question: The CPU design team is choosing between two implementations of the same instruction set each with three classes of instructions. Parameters for the two possibilities

The CPU design team is choosing between two implementations of the same instruction set each with three classes of instructions. Parameters for the two possibilities are given in the following table.

CPU-1 CPU-2
Clock Rate 2 GHz 3 GHz
CPI for ALU Inst. 3 2
CPI for Memory Inst. 4 2
CPI for Control Inst. 2 1

a) Consider a program with 60% ALU instructions, 30% memory instructions, and 10% control instructions. What is the average CPI for CPU-1? What is the average CPI for CPU-2? Which is faster in terms of overall execution time?

b) Consider a program with 70% ALU instructions, 20% memory instructions and 10% control instructions. What is the average CPI for CPU-1? What is the average CPI for CPU-2? Which is faster in terms of overall execution time?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!