add $3, $1, $2 add $4, $3, $2 lw $5,-100($3) lw $6,-100($4) sub $6, $6, 32 add $
ID: 642957 • Letter: A
Question
add $3, $1, $2
add $4, $3, $2
lw $5,-100($3)
lw $6,-100($4)
sub $6, $6, 32
add $5, $5, $6
sw $5, -100($3)
sw $6, -200($3)
a. Assuming there is no forwarding hardware support, indicate the data hazards and insert nop instructions to eliminate them.
b. Assuming there is full forwarding hardware support, indicate the data hazards (if any) and add nop instructions to eliminate them. (Please clearly indicate data hazard in the instruction sequence using arrows. Please also specify what is the type of each hazard, e.g, RAW, WAW or WAR)
Explanation / Answer
http://www.cs.ucr.edu/~bhuyan/cs161/Chapter%204%20-%20solutions.pdf
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.