An ideal 5-stage pipeline with equal stage delays and no stalls executes 100 instructions. What is the speedup over a non-pipelined design?

Correct answer B. About 4.81

Explanation

With k stages and n instructions the pipeline needs k + n - 1 cycles versus n x k without pipelining, so speedup = nk / (k + n - 1) = 500 / 104 ≈ 4.81. It approaches but never reaches 5 because the first instruction must still pass through all stages while the pipeline fills. Exactly 5 is only the limit as n grows very large.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.