Question: Problem 4: Analyze the following code for data hazards. Use attached pipeline sheet and show hazards and indicate for each line what would need to

Problem 4: Analyze the following code for data hazards. Use attached pipeline sheet and show hazards and indicate for each line what would need to be done in terms of forwarding or bubbles. Use attached pipeline sheet and show hazards and indicate for each line what would need to be done in terms of forwarding or bubbles. On one sheet draw arrows showing the initial hazards. On another sheet show forwarding arrows, or where you would add stalls or nops. If you add a stall add boxes and show the stalled stage like in the lecture, showing effect on following instructions also. Try to make it readable please!!!! add S5, $2, S2 lw $7, 4(S5) sub $2, S7, S7 lw S8, 4(S1) lw $7, 0(S8) IM 000I0IO 00 00ID 00II0I0 00I0I0I0 D0IOI0I0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
