Q1: Discuss Control Hazards in Pipelining?
Q1: Discuss Control Hazards in Pipelining?
Worksheet# 8
Abilakim Alisher
Q4 Please provide an example of how to compare whether Destination matches the source.
Q4: Provide an example of how to compare whether Destination matches the source.
In pipelining, a destination register of an earlier instruction might conflict with a source register
of a following one. Example:
If Instruction 1 writes to register R1, and Instruction 2 reads from R1, we check if
Dest(Instruction 1) == Source(Instruction 2). If true, there’s a data hazard.