Question

(10pts) (A) Identify hazards (including type of the hazard) in the following code. Write hazards next to each instruction. Wr
0 0
Add a comment Improve this question Transcribed image text
Answer #1

actually a data harard arises if one instruction needs data that is not ready yet.

LABEL : lw $s2, 0($s0) it is not hazardous because it is ready to perform operation.

add $t1,$s0,$s2 it is data hazardous because it not ready to perform due to insufficient data

and $t1, $t1, $s3 it is also data hazardous because it is not ready to perform due to insufficient data

sw $t1, 0($s0) it is also data hazardous

beq $t1,$t7, Label it is also data hazardous

add $s1, $s6, $s1 it is of none it is not hazardous

forwarding is performed only via the register file. Branch outcomes and targets are not known until the end of the end of the execute stage. all instructions are introduced to the pipeline prior to the point are flushed.

Add a comment
Know the answer?
Add Answer to:
(10pts) (A) Identify hazards (including type of the hazard) in the following code. Write hazards next to each instruction. Write none if there is no hazard. Assume that each instruction could hav...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT