01Chapter 1: Recap: the instruction cycleThis chapter reviews how a processor executes one instruction at a time. Pipelining overlaps these steps, so you need a precise picture of the steps before you can overlap them. The chapter also fixes the vocabulary and the timing arithmetic that the later chapters use.6 min read
02Chapter 2: Why pipeline? Overlapping instructionsThis chapter explains the idea behind pipelining and what it does and does not improve. It assumes you know what a CPU, a register, memory and a clock are. It also assumes you can read simple assembly-style instructions such as load, store, add and branch, and that you are comfortable with ratio ari5 min read
03Chapter 3: The five-stage pipeline: IF, ID, EX, MEM, WBThis chapter assumes you know the basic instruction cycle (fetch, decode, execute), what registers and memory are, and simple load/store-style assembly. It introduces the five-stage pipeline used in most GATE CS questions. Timing diagrams, clock period and speedup get their own chapters.5 min read
04Chapter 4: Timing diagrams, pipeline registers, and the clock periodThis chapter assumes you know the five stages (IF, ID, EX, MEM, WB) from the previous chapter. It also assumes basic ratio arithmetic and that you know a clock cycle is the fixed time between two clock ticks. The chapter covers three connected things: how to draw a pipeline timing diagram, what the 6 min read
05Chapter 5: Speedup, throughput, and efficiencyThis chapter assumes you know the five pipeline stages (IF, ID, EX, MEM, WB) and how a timing diagram shows instructions overlapping. It also assumes you are comfortable with ratios and with the clock period as the time of one cycle. Here you will turn those pictures into three numbers: speedup, thr5 min read
06Chapter 6: What a hazard is and why it forces a stallThis chapter assumes you know the five stages (IF, ID, EX, MEM, WB), what a pipeline register does, and how to draw a timing diagram. It also assumes you can use the formula for total cycles, k + n - 1. Here you learn what breaks the ideal pipeline and why the hardware reacts by waiting.5 min read
07Chapter 7: Structural hazards: resource conflictsThis chapter assumes you know the five stages (IF, ID, EX, MEM, WB), how a pipeline timing diagram is drawn, and that an ideal pipeline finishes n instructions in k + n − 1 cycles. It covers the first of the three hazard classes.6 min read
08Chapter 8: Data hazards: RAW, WAR, and WAWA data hazard appears when two instructions in the pipeline use the same register or memory location, and overlapping them would change the result the program defines. This chapter classifies the three kinds, shows which ones occur in the classic five-stage pipeline, and counts the stalls they cause6 min read
09Chapter 9: Stalls and bubbles: resolving hazards by waitingThis chapter assumes you know the five-stage pipeline (IF, ID, EX, MEM, WB), the formula of k + n − 1 cycles for n instructions, and the three hazard classes (structural, data, control). It covers the simplest remedy for any hazard: wait until the conflict is gone. Later chapters show how forwarding5 min read
10Chapter 10: Operand forwarding: removing most data stallsThis chapter assumes you know the five-stage pipeline (IF, ID, EX, MEM, WB), pipeline registers, and RAW hazards. It also assumes the usual GATE convention: the register file is written in the first half of a cycle and read in the second half.5 min read
11Chapter 11: The load-use hazard: the stall forwarding cannot removeThis chapter assumes you know the five-stage pipeline (IF, ID, EX, MEM, WB), the meaning of RAW hazards, and how operand forwarding moves a result from a pipeline register to the ALU input. It covers why one case of RAW still costs a cycle after forwarding, how to count the stall, and how to compute6 min read
12Chapter 12: Control hazards: branches and jumpsThis chapter assumes you know the five-stage pipeline (IF, ID, EX, MEM, WB), how a pipeline timing diagram is drawn, and what a stall (bubble) is. It also assumes the basic CPI formula: effective CPI is the ideal CPI plus the average stall cycles per instruction.5 min read
13Chapter 13: Handling branches: flush, predict-not-taken, delayed branchThis chapter assumes you know the five-stage pipeline (IF, ID, EX, MEM, WB), what a pipeline bubble is, and how effective CPI is computed as 1 plus average stall cycles per instruction. It covers how a processor limits the damage a branch does to the pipeline.5 min read
14Chapter 14: Effective CPI and speedup with stallsThis chapter assumes you know the five-stage pipeline (IF, ID, EX, MEM, WB). It also assumes you can recognize RAW hazards, load-use stalls and branch penalties, and that you are comfortable with ratio arithmetic. Here we combine those pieces into a single number, the effective CPI, and use it to fi5 min read
15Chapter 15: Static and dynamic branch predictionThis chapter assumes you know the five-stage pipeline (IF, ID, EX, MEM, WB). It also assumes you know what a control hazard is, how a flush or stall handles a branch, and how effective CPI is computed. Here we look at how a processor guesses the outcome of a branch so that it can usually avoid the p5 min read
16Chapter 16: Solving GATE-style pipelining problemsThis chapter assumes you know the five stages (IF, ID, EX, MEM, WB), the three hazard classes, and the basic formulas for pipeline time and CPI. Here we combine them into one method you can apply under exam time pressure.4 min read
17Chapter 17: Beyond the basic pipeline: superscalar and out-of-order executionThis chapter assumes you know the five-stage pipeline (IF, ID, EX, MEM, WB), the three hazard classes, forwarding, and the effective CPI formula. It shows where the basic pipeline stops scaling and what real processors add. For GATE, this is a light topic: expect a conceptual question, not a long ca7 min read