Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. Consider a version of our five stage pipeline that performs Branch Target Address (BTA) calculation in the ID stage and branch outcome determination
3. Consider a version of our five stage pipeline that performs Branch Target Address (BTA) calculation in the ID stage and branch outcome determination in the EX stage. This means that the BTA is available one cycle before the branch outcome is known. Suppose that 25% of all instructions are branch instructions and that 60% of branches are taken. a. If the pipeline stalls until both the BTA and branch outcome are known for a branch instruction, what is the per-instruction branch penalty for the processor (in cycles)? b. If the pipeline uses static, branch-not-taken prediction, what is the per- instruction branch-penalty for the processor? C. Now assume that the processor uses branch-not taken prediction during the first cycle following a branch, and then switches to branch-taken prediction for the second cycle, since the BTA is available at this point. What is the per-instruction branch penalty for the processor in this case? d. Which of these three strategies results in the lowest branch penalty?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started