From the course: Computer Architecture Essentials
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Overcoming pipeline hazards with hardware
From the course: Computer Architecture Essentials
Overcoming pipeline hazards with hardware
- [Speaker] And what about hardware techniques? Over the years, countless improvements have been added to pipeline processors to make them tolerant to control and data hazards. Let's start with controlled hazards. One common hardware addition is a branch predictor, which attempts to predict whether a branch will be taken or not. Of course, it's impossible to predict the future with 100% certainty. However, based on the usual behavior of programs and by observing the behavior of the specific program that a CPU is currently running, a special piece of hardware can produce an educated guess about the outcome of a branch that has just been fetched. This guest comes from a tendency of branches repeating their behavior. Branch predictors contain complex circuitry to maintain a table like this one efficiently. This prediction table is implemented in a piece of memory with a fixed number of entries. Each entry of this table keeps track of the address where a conditional branch is found, the…
Contents
-
-
-
-
-
Understanding pipelining5m 21s
-
(Locked)
CPU pipeline stages1m 35s
-
(Locked)
Pipeline hazards10m 4s
-
(Locked)
Overcoming control hazards with software5m 37s
-
(Locked)
Overcoming data hazards with software1m 56s
-
(Locked)
Overcoming pipeline hazards with hardware10m 40s
-
(Locked)
Impact on software: Pipelining1m 39s
-
-
-
-
-
-
-
-