Question: 2 . Data Dependencies ( 3 0 points ) Here is a short MIPS assembly language loop. ( This is a simpler version of a
Data Dependencies points
Here is a short MIPS assembly language loop. This is a simpler version of a very common
operation in scientific applications. Assume that we run this code on the stage pipelined
datapath.
Bilbo:
lw $t$a
add $t $t $a
lw $t$a
sub $t $t $t
sw $t$a
subi $a $a
addi $a $a
addi $a $a
bne $a $zero, Bilbo
Find all data dependencies and RAW hazards in the code. How many stalls do you need to
insert to solve RAW hazards? No forwarding or reordering!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
