5 4-Pipelining
5 4-Pipelining
BP
+ 4 TG PC
<>
F/D
TG PC
D/X
<< 2
X/M
PC
PC
Insn Mem
IR
Register File
s1 s2 d
A
S X
O B IR
B IR
nop
nop
Two parts
Target buffer: maps PC to taken target Direction predictor: maps PC to taken/not-taken
ECE 152
60
ECE 152
ECE 152
62
ECE 152
ECE 152
64
Well also talk a bit about thread-level parallelism (TLP) and how its exploited by multithreaded and multicore processors
ECE 152
67
Summary
Principles of pipelining
Pipelining a datapath and controller Performance and pipeline diagrams
Data hazards
Software interlocks and code scheduling Hardware interlocks and stalling Bypassing
Control hazards
Branch prediction
ECE 152
68