Assume a machine with a 7-stage pipeline.

Assume a machine with a 7-stage pipeline. Assume that branches are resolved in the sixth stage. Assume that 20% of instructions are branches. How many instructions of wasted work are there per branch misprediction on this machine?

Answer: 5

 

1Comment
Akshay Saxena @akshay0612 11 Jan 2018 12:29 am

Since branch are resolved at \(6^{th}\) stage there will be NOP 5 cycles i.e stalls for next \(5\) cycles.