Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In the pipeline processor example, the instruction frequency is: Branch is 20% a

ID: 3798099 • Letter: I

Question

In the pipeline processor example, the instruction frequency is: Branch is 20% and 70% of all branches are taken Load is 15% Store is 10% ALU/Shift is 50% Assuming: When the processor detects the branch instruction it will assume taken immediately instead of waiting until write stage. the branch target address can be calculated at the same time as the branch is detected. All other instruction type has the perfect CPI = 1 Question: what is the expected CPI of this processor due to branch execution?

Explanation / Answer

Answer

CPI is given by

CPI = (number of instructions for a given instruction type * clock cyle for the given instruction type) / Total instruction count

In the given problem, instruction type is branch.

Therefore,

number of instructions for a given instruction type = 1

clock cyle for the given instruction type = 1 * .70 * .20 = 0.14

Total instruction count = 1

therefore,

CPI = (1 * 0.14) / 1 = 0.14

Therefore, the expected CPI of this processor due to branch execution is 0.14.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote