172k views
5 votes
A 5-stage MIPS pipeline has a register file without forwarding mechanism. How many NOPs (or bubbles) will you need to add to make this code work correctly?

User Willise
by
7.1k points

1 Answer

2 votes

Answer:

1

Step-by-step explanation:

NOPS is an instruction which in reality does nothing at all and has no side effect either. One single NOP is good enough for the pipeline's all five stages. And hence it is used for filling the branch delay slot of the branches or the jumps as there you will find nothing else required which can be completed in that space.

User Morten Anderson
by
6.4k points