Question: Assume the branch predictor is always predicting the branch will be taken. Draw the pipeline diagram for the execution of the following code lw r2,0(r1)

 Assume the branch predictor is always predicting the branch will be

Assume the branch predictor is always predicting the branch will be taken. Draw the pipeline diagram for the execution of the following code lw r2,0(r1) label1: beq r2,ro, label2 # not taken once, then taken lw r3,0(r2) beq r3,ro,label1 # taken add r1,13,11 label2: sw r1,0(r2) * Schedule the following code to avoid pipeline stalls (pipeline scheduling). Note: the problem may have more than one solution. LW R1, b LW R2, C Add R3, R1, R2 SW R3, a LW R4, f Sub R5, R3, R4 SW R5, d LW R6, 9 LW R7, h Sub R8, R6, R7 SW R8, e

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!