Using the same code sequence provided decide which of the co


Using the same code sequence provided, decide which of the comparisons (if any) listed below is the forwarding unit doing during the fifth cycle of execution? Circle either True or False for each and explain why. Code Sequence: add $2. $1.33 sub $4, $3, $5 add $5, $3, $7 add $7. $1. $6 add $8. $2.36 $3 == $4 True False $3 == $2 True False $7 == $4 True False $7 == 32 True False None True False

Solution

e )None

because at the time of fifth instruction cycle it needs register $2 and by this time $2 was computed and redy to take the value and complete fifth instruction execution.

And for all the other instructions there is no data dependency but while $3 is using by CPU instruction 2 requres that . In this case only one cycle gets delayed.

 Using the same code sequence provided, decide which of the comparisons (if any) listed below is the forwarding unit doing during the fifth cycle of execution?

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site