3SP Wspeculation
3SP Wspeculation
3SP Wspeculation
What is pipelining
3 stage pipelining
Hazards in pipelining
Control hazards in pipelining
Branch speculation
Dynamic Branch Speculation
pipelining
CYCLE 1 2 3 4 5 6 7 8 9
CYCLE 1 2 3 4 5
Fetch:
Get the next instruction from memory
Increment Program Counter value by 4
Decode:
Figure out what the instruction says to do
Get values from the named registers
Execute:
the operands are read from the register bank, shifted, combined in the
ALU and the result written back
Hazards in pipelining
R1!=R2
R1=R2
Branch Speculation
MOV R4,#0
MOV R5,#9
LOOP1: ADD R4,#1
LOOP2: MOV R1,#0
MOV R2,#9
ADD R1,#1
CMP R1,R2
BLT LOOP2
CMP R4,R5
BLT LOOP1
Thank You