Pipelining and hazards: how a CPU overlaps instructions
11 steps · about 7 h 5 min · Intermediate
- Part 7: CPU Execution & Pipelining (article, Wasil Zafar, 25 min)
A gentle overview of the fetch-decode-execute cycle, pipeline stages and the three hazard types before you meet the detailed lectures.
- Lecture 8 - Pipelining - Carnegie Mellon - Computer Architecture 2013 - Onur Mutlu (video, Onur Mutlu / CMU, 1 h 20 min)
A full university lecture on why pipelining works and what limits it, which sets up the idea of overlapping instructions.
- Computer Architecture: Pipelining (doc, Wang (course slides), 30 min)
Defines the hazard categories and shows the load-use case, where forwarding cannot help and a stall is needed.
- Lecture 27 (doc, Ben Rosenberg, 10 min)
Short MIPS code examples show which hazards forwarding fixes and which ones it cannot.
- Lecture 17: Pipeline Hazards (doc, Jason Tang, UMBC, 30 min)
Shows how a forwarding unit selects ALU inputs and how stalls are added to the datapath.
- Lecture 8. Pipelining II: Data and Control Dependence Handling - CMU - Comp. Arch. 2015 - Onur Mutlu (video, Onur Mutlu / CMU, 1 h 20 min)
Surveys every way to handle data and control dependences, including stalling, forwarding, software scheduling and speculation.
- Lecture 6: Control Hazards and Branch Prediction (doc, CMU ECE 18-344, 35 min)
Counts the bubbles a branch costs in a pipeline and walks through early branch resolution and prediction.
- Cptr350 Chapter 4 — Control Hazards (doc, Walla Walla University, 25 min)
Compares static and dynamic branch prediction and shows how moving branch decisions earlier cuts flush cycles.
- Digital Design & Computer Arch. Lecture 17b: Branch Prediction I (doc, Onur Mutlu / ETH Zürich, 40 min)
Quantifies the cost of mispredicting in deep, wide pipelines, which shows why prediction matters in modern CPUs.
- Advanced Computer Architecture: Branch Direction Prediction (doc, Imperial College London, 40 min)
Moves on to advanced branch prediction and how speculation fits with out-of-order execution.
- Modern Processor Architecture (doc, MIT 6.191, 30 min)
Ties it together: deeper pipelines raise clock speed but increase the hazard penalty, so modern cores use out-of-order execution and prediction.