Back to the 2024 paper

Module 3: Pipelining

20242m

What does a branch prediction mechanism in a CPU help reduce?
a) Data hazards
b) Control hazards
c) Structural hazards
d) Clock cycle delays

Worked SolutionAI Assisted

Answer: b) Control hazards

Explanation:

  • Control hazard occurs due to branch instructions (conditional/unconditional) where next PC is unknown until decode/execute; pipeline must stall/flush.
  • Branch prediction predicts taken/not-taken and target address to fetch next instruction speculatively, reducing stalls/flushes.
  • Data hazards are handled by forwarding/bypassing, stalling, instruction scheduling.
  • Structural hazards handled by resource duplication/pipelining.

Hence branch prediction primarily reduces control hazards.

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.