Chapter 6 Revision: Pipelining
Instruction pipelining overlaps the execution phases of consecutive instructions, converting sequential processing into an assembly line that maximizes CPU throughput.
Use these flashcards for active recall. Try to answer the question out loud before clicking the card to flip it.
Flashcards 🎴
What are the 3 classes of Pipeline Hazards?
2. Data Hazards: Dependencies where an instruction needs data not yet written back (RAW, WAR, WAW).
3. Control Hazards: Branch/jump instructions where the target PC is not yet resolved.
What is a 'Load-Use Data Hazard' and why can't Forwarding completely eliminate it?
What is a Branch Delay Slot?
Final Chapter Quiz 🧠
Consider a 5-stage pipeline executing the following code: `LW R1, 0(R2)` followed immediately by `ADD R3, R1, R4`. Even with full hardware forwarding, how many stall cycles (bubbles) must the hardware insert?
Ready to move on? You are now ready to tackle Memory Hierarchy in Chapter 7!