Pipelining and hazards: how a CPU overlaps instructions

11 steps · about 7 h 5 min · Intermediate

  1. 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.

  2. 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.

  3. 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.

  4. Lecture 27 (doc, Ben Rosenberg, 10 min)

    Short MIPS code examples show which hazards forwarding fixes and which ones it cannot.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.