Question: This is MIPS assembly code. I need help with the 3 following questions please. There are Data and Control hazards, but I am having trouble
This is MIPS assembly code. I need help with the 3 following questions please. There are Data and Control hazards, but I am having trouble identifying them.

apple: slt $to, $s1, $s2 beq ?t0, $0, end add $tO, ?s3, $S4 lw $to, 0 (StO) beq ?t0, ?o, orange sw, $s0, 0 (?t0) addi $s0, $s0, 1 orange: addi $s1, ?s1, 1 addi $s4, $s4, 4 j apple end: add $vO, ?s0, $0 1. 2. 3. Please identify all the data hazards and control hazards Please design the pipeline using forwarding only Please design the pipeline using bypassing and forwarding (if needed) apple: slt $to, $s1, $s2 beq ?t0, $0, end add $tO, ?s3, $S4 lw $to, 0 (StO) beq ?t0, ?o, orange sw, $s0, 0 (?t0) addi $s0, $s0, 1 orange: addi $s1, ?s1, 1 addi $s4, $s4, 4 j apple end: add $vO, ?s0, $0 1. 2. 3. Please identify all the data hazards and control hazards Please design the pipeline using forwarding only Please design the pipeline using bypassing and forwarding (if needed)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
