Question: Question 3 : Suppose data forwarding is NOT implemented in a pipelined MIPS processor, for each of the following code sequence, please identify all the
Question 3 : Suppose data forwarding is NOT implemented in a pipelined MIPS processor, for each of the following code sequence, please identify all the data hazards and resolve these hazards by reordering the instructions (Nops can be added only if they are necessary!).
A) add $t0, $s0, $s1
sub $t1, $t0, $s2
lw $s0, -12($a0)
sub $s5, $s0, $s1
B) lw $t0, 0($s5)
addi $s5, $s5, 4
add $t0, $s3, $t0
sw $t0, 0($s5)
add $t3, $t2, $s5
add $t2, $t3, $t2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
