Question

KINDLY DO IT IN PROPER WAY TOMMOROW IS MY FINAL Q#1: Identify the Hazards in the code given below and remove them using Only Forwarding                      (Show Forwarding using Graphical represent...

KINDLY DO IT IN PROPER WAY TOMMOROW IS MY FINAL

Q#1: Identify the Hazards in the code given below and remove them using

  1. Only Forwarding                      (Show Forwarding using Graphical representation of pipeline)
  2. Only Stalling                           (Show stalling using Graphical representation of pipe line )

                     

add $t0, $t1, $t2

add $t3, $t4, $t0

add $t5, $t6, $t0

Also write the forwarding equations which you used to remove hazards.

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

a) Only forwarding :-
No Hazards

Instruction 1 2 3 4 5 6 7
add $t0,$t1,$t2 IF ID EX MEM Wb
add $t3,$t4,$t0 IF ID EX MEM Wb
add $t5,$t6,$t0 IF ID EX MEM WB

b) Only stalling :-
Hazards raw :-
Instructions 0 and 1 . Register $t0
Instructions 0 and 2 . Register $t0

Instruction 1 2 3 4 5 6 7 8 9
add $t0,$t1,$t2 IF ID EX MEM Wb
add $t3,$t4,$t0 IF ID NOP NOP EX MEM WB
add $t5,$t6,$t0 IF NOP NOP ID EX MEM WB
Add a comment
Know the answer?
Add Answer to:
KINDLY DO IT IN PROPER WAY TOMMOROW IS MY FINAL Q#1: Identify the Hazards in the code given below and remove them using Only Forwarding                      (Show Forwarding using Graphical represent...
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