Question: The processor company has designed a new 1 0 stage pipeline ( shown below ) . The new pipeline is designed to perform better than

The processor company has designed a new 10
stage pipeline (shown below). The new pipeline is
designed to perform better than the standard 5-stage
pipeline. The useful results for the purpose of
forwarding are available at the last step in each stage
(F2, R1, X3, M3, W1). For example the ALU result
is not available until the end of the x2 stage.
F1 F2 R1 X1 X2 X3 M1 M2 M3 W1
10.1(5pt) Is it possible to eliminate data hazards
between R-type instructions in this pipeline by using
forwarding? Why or why not?
10.2(10pt) In the code fragments below, identify the
data hazards and describe the number of pipeline
stalls (or bubbles) required even with your full
bypassing.
(a)
mul $4,$5,$6
add $8,$9,$4
(b)
lw $1,8($2)
add $3,$1,$4
10.3(10pt) Suppose that branches are predicted as
not-taken until the actual branch decision is known.
Also, suppose that the branch target is known at the
end of the X1 stage. How many in-progress
instructions must be flushed (invalidated) when a
branch is taken? (Or how many bubbles are required
for branch mis-prediction?) Explain the reason.
 The processor company has designed a new 10 stage pipeline (shown

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!