Find all data dependencies using the code below (with
forwarding)
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:
Find all data dependencies using the code below (with forwarding) loop: slt $t0, $s1, $s2 beq $t0, $0, end add $t0, $s3,
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am