5. (10 points) For five-stage pipelined datapath, please explain each line of th
ID: 3706925 • Letter: 5
Question
5. (10 points) For five-stage pipelined datapath, please explain each line of the following code and fill
“_______”
If( EX/MEM.RegWrite==1 and
EX/MEM.RegisterRd != 0 and
EX/MEM.RegisterRd == ID/EX.RegisterRs )
Then, forward from ___________(which stage?) to __________(which
operand of which stage?)
Explanation / Answer
.“_______”
If( EX/MEM.RegWrite==1 and
EX/MEM.RegisterRd != 0 and
EX/MEM.RegisterRd == ID/EX.RegisterRs )
Then, forward from ___________(which stage?) to __________(which
operand of which stage?)
This is for detecting hazard which is detected if will write to a register EX/MEM.Regwrite
and EX/MEM.RegisterRd != 0 -if rdregister value is not zero which is possible if Ex And MEM is non zero.
EX/MEM.RegisterRd == ID/EX.RegisterRs which is one case of datahazard if all values are true then we can
This is forwarding condition of Ex hazard which are data hazards to write to register
Tools are required in order to handle hazards which does not allow program to run properly and stop next instruction from execution. For handling hazards one best way is to forwarding the execution.
.“_______”
If( EX/MEM.RegWrite==1 and
EX/MEM.RegisterRd != 0 and
EX/MEM.RegisterRd == ID/EX.RegisterRs )
Then, forward from ___________(which stage?) to __________(which
operand of which stage?)
This is for detecting hazard which is detected if will write to a register EX/MEM.Regwrite
and EX/MEM.RegisterRd != 0 -if rdregister value is not zero which is possible if Ex And MEM is non zero.
EX/MEM.RegisterRd == ID/EX.RegisterRs which is one case of datahazard if all values are true then we can
This is forwarding condition of Ex hazard which are data hazards to write to register
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.