Page 1 of 1

Find all data dependencies (with forwarding) PLEASE USE THE CODE BELOW!!! Also be sure to list what register (if any) is

Posted: Fri May 20, 2022 6:46 pm
by answerhappygod
Find all data dependencies (with
forwarding)
PLEASE USE THE CODE BELOW!!!
Also be sure to list what register (if any) is involved
in the dependency.
loop:
slt $t0, $s1, $s2
beq $t0, $0, end
add $t0, $s3, $s4
lw $t0, 0($t0)
beq $t0, $0, afterif
sw $s0, 0($t0)
addi $s0, $s0, 1
afterif:
addi $s1, $s1, 1
addi $s4, $s4, 4
j loop
end: