Data Hazards: Solution - III
Solution III (hardware)
Bypass paths.
Extra data paths and control logic which re-route data in problem cases.
ADD
CMP
MUL
ADD
CMP
ADD
CMP
MUL
ADD
CMP
MUL
i
i + 1
i + 3
i + 4
i + 5
i + 6
IF
RF
ALU
WB
SUB
SUB
SUB
ADD(r1, r2, r3)
CMPLEC(r3, 5, r0)
r1 + r2 computed
r3 written
r3 read
r3 compared to 5
i + 2
SUB
MUL
Previous slide
Next slide
Back to first slide
View graphic version