Question

7 [24 marks] Consider the following MIPS code segment that is executed on a 5-stage pipeline architecture that does not imple

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Read after write hazards:

Instruction (2 ) depends on instruction ( 1) caused by register $4

Instruction (4 ) depends on instruction ( 3) caused by register $2

Instruction (6 ) depends on instruction (5 ) caused by register $8

write after read hazards:

Instruction ( 4) depends on instruction (3 ) caused by register $8

Instruction ( 5) depends on instruction (3 ) caused by register $8

Instruction ( 7) depends on instruction (3 ) caused by register $8

Instruction (8 ) depends on instruction (3 ) caused by register $8

Instruction (6 ) depends on instruction ( 4) caused by register $2

Instruction ( 6) depends on instruction ( 5) caused by register $2

Instruction ( 7) depends on instruction (6 ) caused by register $8

Instruction (8 ) depends on instruction ( 6) caused by register $8

write after write hazards:

Instruction ( 6) depends on instruction ( 3) caused by register $2

Instruction (5 ) depends on instruction (4 ) caused by register $8

Instruction ( 7) depends on instruction ( 4) caused by register $8

Instruction ( 8) depends on instruction (4 ) caused by register $8

Add a comment
Know the answer?
Add Answer to:
7 [24 marks] Consider the following MIPS code segment that is executed on a 5-stage pipeline architecture that does not implement forwarding or stalling in hardware. (1) add $4, $1, $1 (2) add $7,...
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