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 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 add $t $s $t lw $t$t add $t $t $t beq $t $t LOOP
j
DONE
HERE:
srl $t $t add $t $s lw $t$t $t
DONE:
add $t $t $zero addi $t $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
