Each of two processors support four classes of instructions, and each class of i
ID: 3590017 • Letter: E
Question
Each of two processors support four classes of instructions, and each class of instruction has the CPI shown below on each of the processors:
The dynamic instruction count for a program (the number of instructions actually executed) includes 40% arithmetic/logical instructions, 25% load/store instructions, 25% conditional branch instructions, and 10% unconditional branch instructions. Assume that when the program is executed, those same percentages of instructions will be executed.
a) What would be the average CPI if this executable is run on each of the two processors described above? Justify your conclusions precisely.
b) Given that the clock rate for processor P1 is 3.2GHz, and the clock rate for processor P2 is 3.4GHz, what do your answers to part a) tell you about the relative performance of P1 and P2, when executing this particular program? Explain.
Instruction class arithmetic/logical load/store conditional branch unconditional branch P1 5 50 P2 7 40 5 7Explanation / Answer
a)
For P1, AvgCPI = 0.40*5 + 0.25*50 + 0.25*6 + 0.10*5
= 2+12.5+1.5+0.5
= 16.50 cycles/instruction
For P2, AvgCPI = 0.40*7 + 0.25*40 + 0.25*9 + 0.10*7
= 2.8 + 10 +2.25+0.7
= 15.75 cycles/instruction
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.