Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Organization and Design The Hardware Software Interface

Authors: David A. Patterson, John L. Hennessy

5th edition

124077269, 978-0124077263

More Books

Students also viewed these Programming questions

Question

=+7.2 Large-Sample Confidence Intervals for a Population Mean

Answered: 1 week ago