dt10 2011 12.1
Hazards
- hazard: previous instruction blocks following instruction
- structural hazards
– required resource is busy
- data hazard
– wait for previous instruction to complete its data read/write
- control hazard
Hazards hazard : previous instruction blocks following instruction - - PowerPoint PPT Presentation
Hazards hazard : previous instruction blocks following instruction structural hazards required resource is busy data hazard wait for previous instruction to complete its data read/write control hazard deciding on
dt10 2011 12.1
dt10 2011 12.2
dt10 2011 12.3
dt10 2011 12.4
dt10 2011 12.5
dt10 2011 12.6
11 cycles 13 cycles
dt10 2011 12.7
dt10 2011 12.8
dt10 2011 12.9
dt10 2011 12.10
prediction correct prediction incorrect
dt10 2011 12.11
dt10 2011 12.12
dt10 2011 12.13
dt10 2011 12.14
dt10 2011 12.15
dt10 2011 12.16
dt10 2011 12.17
dt10 2011 12.18
Fwd from EX/MEM pipeline reg Fwd from MEM/WB pipeline reg
dt10 2011 12.19
Fwd from EX/MEM pipeline reg Fwd from MEM/WB pipeline reg
dt10 2011 12.20
dt10 2011 12.21
dt10 2011 12.22
dt10 2011 12.23
dt10 2011 12.24
dt10 2011 12.25
dt10 2011 12.26
Need to stall for one cycle
dt10 2011 12.27
dt10 2011 12.28
dt10 2011 12.29
Stall inserted here
dt10 2011 12.30
Or, more accurately
dt10 2011 12.31
dt10 2011 12.32