📜  门| GATE-CS-2014-(Set-1)|第65章

📅  最后修改于: 2021-06-28 18:17:32             🧑  作者: Mango

考虑一个6级指令流水线,其中所有级都是完美平衡的,假设没有流水线的周期时间开销。当应用程序在此6级流水线上执行时,如果25%的指令产生2个流水线停顿周期,则相对于非流水线执行的加速为
(A) 4
(B) 8
(C) 6
(D) 7答案: (A)
解释:

It was a numerical digit type question so answer must be 4.

As for 6 stages, non-pipelining takes 6 cycles.

There were 2 stall cycles for pipelining for 25% of the instructions

So pipe line time = (1+(25/100)*2) = 1.5

Speed up = Non pipeline time/Pipeline time = 6/1.5 = 4

这个问题的测验