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 2GHz 3GHz CPI for ALU Inst. 1 2 CPI for Memory Inst. 4 2 CPI for Control Inst. 2 2 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
Get step-by-step solutions from verified subject matter experts
