Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 3 : Suppose data forwarding is NOT implemented in a pipelined MIPS processor, for each of the following code sequence, please identify all the
Question 3 : Suppose data forwarding is NOT implemented in a pipelined MIPS processor, for each of the following code sequence, please identify all the data hazards and resolve these hazards by reordering the instructions (Nops can be added only if they are necessary!).
A) add $t0, $s0, $s1
sub $t1, $t0, $s2
lw $s0, -12($a0)
sub $s5, $s0, $s1
B) lw $t0, 0($s5)
addi $s5, $s5, 4
add $t0, $s3, $t0
sw $t0, 0($s5)
add $t3, $t2, $s5
add $t2, $t3, $t2
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