Instruction Hazards

Instruction Hazards

Creator
Created
Created
2019 Nov 5 5:17
Editor
Edited
Edited
2023 Jun 29 12:12
Refs
Refs
all is about mips

Dependency

output dependency = WAW
load change memory and store change register - L1L2 cache solve that
anti-dependency (not occur in simple pipe line (no OoO scheduling))
 

Data forwarding

three stall to dm load type
two stall to alu r type
but by forwarding
like chaining at vector processor
 
two stall two 0
mem/wr → ID/EX
notion image
 
EX/MEM → ID/EX
notion image
one stall to 0
notion image
(memoryto-memory copies)
load store - 2(half write half read) to 0 stall
notion image
notion image
load use 2(half write half read) to 1 stall
stall the pipeline means DM final to ALU first
load use can be 2 stall since pre half cycle write and after half cycle read
notion image
 
 
 
notion image
 

Control hazerd

jump 1
branch 3 always if no branch predict
breanch forwarding
3stall with no branch prediction
2 flush with brench prediction false (at branch execution)
 
notion image
resource conflict is structural hazard Procedural Dependency is by branch or jump
 

branch predict

 
 
 
 

Recommendations