Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that the following code is executed on a MIPS 5 - stage pipeline processor with all possible forwarding paths and branches predicted as always

Assume that the following code is executed on a MIPS 5-stage pipeline processor with all possible
forwarding paths and branches predicted as always taken:
i. Draw the pipeline execution diagram for this code, assuming that branch target address and
branch condition are evaluated in the EX-stage. You are allowed to rearrange the code and
move instructions to the delay slot to reduce stall cycles.
ii. As discussed in the class, moving the branch related computations to the ID-stage by using
a dedicated comparator reduces the number of stall cycles. However, this approach
potentially adds to the latency of the ID-stage, and requires additional forwarding logic and
hazard detection. Repeat part i) but now assume that branch related computations are done
in the ID stage. Once again you are allowed to rearrange the code and move instructions to
the delay slot to reduce stall cycles.
image text in transcribed

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

What are some things you could do to become a better listener?

Answered: 1 week ago

Question

What are the role of supervisors ?

Answered: 1 week ago