Question: Consider this MIPS code segment. loop: sub $t 3 , $t 3 , $t 0 add $t 0 , $t 0 , $t 0 addi
Consider this MIPS code segment.
loop:
sub $t $t $t
add $t $t $t
addi $t $t
lw $t$t
add $t $t
sw $t$t
bgt $t $zero, loop
outside
Show the timing of this instruction sequence for a stage pipeline to execute up to the start of one iteration of the loop with forwarding. Use an S where a stall is required to resolve a hazard. Assume that data can be written to registers and read from registers in the same cycle and that the processor's only receiving end of the forwarding logic is just after we read registers in the decode stage late in the second half of the cycle
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
