Page 1 of 1

Is it possible to avoid stalls in the following code by rearranging the instructions? lw $t0,($s0) add $t0,$t0,$t1 sw $t

Posted: Fri May 20, 2022 4:59 pm
by answerhappygod
Is It Possible To Avoid Stalls In The Following Code By Rearranging The Instructions Lw T0 S0 Add T0 T0 T1 Sw T 1
Is It Possible To Avoid Stalls In The Following Code By Rearranging The Instructions Lw T0 S0 Add T0 T0 T1 Sw T 1 (41.22 KiB) Viewed 58 times
Is it possible to avoid stalls in the following code by rearranging the instructions? lw $t0,($s0) add $t0,$t0,$t1 sw $t0,($s0) sll $t1,$t0, 2 sub $t2, $t1,$t0 a-)(8 points) Show the initial code's pipeline stage. b-)(6 points) Show the rearranged code and its pipeline stage. If you don't need to rearrange the code, explain your reasoning.