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:
Find all data dependencies (with forwarding) PLEASE USE THE CODE BELOW!!! Also be sure to list what register (if any) is
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Find all data dependencies (with forwarding) PLEASE USE THE CODE BELOW!!! Also be sure to list what register (if any) is
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!