Question: Two processors, P1 and P2, support the same instruction set. The instructions in the instruction set can be divided into four classes, i.e., Classes A,
Two processors, P1 and P2, support the same instruction set. The instructions in the instruction set can be divided into four classes, i.e., Classes A, B, C, and D. The specifications of these two processors are listed as follows:
| Processor | Frequency (GHz) | CPI | of each | Instruction | Class |
| Class A | Class B | Class C | Class D | ||
| P1 | 2 | 1 | 2 | 3 | 4 |
| P2 | 3 | 2 | 2 | 4 | 3 |
For a given program, it contains 30% Class A instructions, 20% Class B instructions, 20% Class C instructions, 30% Class D instructions.
(A) What is the overall CPI for execution this program on each processor?
(B) If this program contains 3 10^9 instructions, how many seconds does each processor need to take to execute this program?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
