Answer the following
This question is for a Homework problem in myComputerArchitecture class.
Consider two different implementations of the same ISA. The four classes of instructions are A, B, C, and D. Refer to the following table for the data required.
|
Clock Rate |
CPI A |
CPI B |
CPI C |
CPI D |
P1 |
3 Ghz |
1 |
3 |
4 |
2 |
P2 |
4 Ghz |
4 |
5 |
6 |
2 |
Given a program with 10% of A instructions, 20% of B instructions, 30% or C instructions, and 40% of D instructions:
a.) Which implementation of P1 and P2 is faster?
b.) What is the global CPI of each implementation?
c.) If the program has 104 instructions, find the execution time on each implementation.