Pipelining — Practice

Exam-pattern questions. Try each before revealing — that's where the marks come from.

Concept

P-1smallDefine pipelining. Does it reduce the time for a single instruction?
P-2smallName the 5 MIPS pipeline stages in order and say what each does.
P-3smallWhat are pipeline registers and why are they needed?

Hazards

P-4bigExplain a structural hazard with an example, then give its solution.
P-5bigadd $s0,$t0,$t1 followed by sub $t2,$s0,$t3. What hazard is this and how is it resolved without stalling?
P-6smallWhy does a load followed by a dependent instruction still need one stall even with forwarding?

Timing

P-7big5-stage pipeline, each stage 3 ns except MEM = 4 ns. For 1000 instructions: (a) speedup vs single-cycle, (b) throughput gain, (c) latency change. (Summer 2025 Q2b)
P-8smallA k-stage pipeline runs a very large program. What is the maximum possible speedup, and why is it never quite reached?