Question: Show an execution timeline for the code executing on a 5 stage MIPS pipeline. Assume forwarding whenever possible. Assume the beq is predicted TAKEN but

Show an execution timeline for the code executing on a 5 stage MIPS pipeline. Assume forwarding whenever possible. Assume the beq is predicted TAKEN but is ACTUALLY NOT TAKEN. Assume branch outcome determined and PC updated in MEM stage. Assume all j instructions are correctly predicted TAKEN. Show forwarding whenever it occurs. Show the timeline to the end of the sequence.
LOOP:
addi $to, $to,1 add $t5, $s1, $t2 lw $t6,0($t5) add $t7, $t4, $t6 beq $t0, $t1, LOOP
j
DONE
HERE:
srl $t2, $t0,2 add $t3, $s0, lw $t4,0($t3) $t2
DONE:
add $t1, $t5, $zero addi $t7, $7,200

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!