Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started