Pipeline Processor · Computer Organization and Architecture
53 questions · asked in 25 of 27 years (2000–2026)
MCQ 29 · MSQ 2 · NAT 221-mark 23 · 2-mark 30
2000Questions per year2026
Questions 16–20 of 53
Instructions execution in a processor is divided into 5 stages. Instruction Fetch (IF), Instruction Decode (ID) , Operand Fetch (OF), Execute (EX), and Write Back (WB), These stages take 5,4,20, 10 and 3 nanoseconds (ns) respectively. A pipelined implementation of the processor requires buffering between each pair of consecutive stages with a delay of 2ns.
Two pipelined implementations of the processor are contemplated.
(i) a naive pipeline implementation (NP) with 5 stages and
(ii) an efficient pipeline (EP) where the OF stage id divided into stages OF1 and OF2 with execution times of 12 ns and 8 ns respectively.
The speedup (correct to two decimals places) achieved by EP over NP in executing 20 independent instructions with no hazards is ________________.
Two pipelined implementations of the processor are contemplated.
(i) a naive pipeline implementation (NP) with 5 stages and
(ii) an efficient pipeline (EP) where the OF stage id divided into stages OF1 and OF2 with execution times of 12 ns and 8 ns respectively.
The speedup (correct to two decimals places) achieved by EP over NP in executing 20 independent instructions with no hazards is ________________.
Answer: 1.49 to 1.52
Check each case:
- NP: slowest stage 20 + 2 (buffer) = 22 ns; 5 stages, 20 instructions (5 + 19) 22 = 528 ns
- EP: stages 5, 4, 12, 8, 10, 3 slowest 12 + 2 = 14 ns; (6 + 19) 14 = 350 ns
Speedup = 528 / 350 1.51
Answer: 1.51
- NP: slowest stage 20 + 2 (buffer) = 22 ns; 5 stages, 20 instructions (5 + 19) 22 = 528 ns
- EP: stages 5, 4, 12, 8, 10, 3 slowest 12 + 2 = 14 ns; (6 + 19) 14 = 350 ns
Speedup = 528 / 350 1.51
Answer: 1.51
The stage delays in a 4-stage pipeline are 800,500,400 and 300 picoseconds.The first stage (with delay 800 picoseconds)is replaced with a functionally equivalent design involving two stages with respective delays 600 and 350 picoseconds.The throughput increase of the pipeline is ________ percent.
Answer: 33 to 34
Throughput equals 1 divided by the delay of the slowest stage.
- Before: the largest delay is 800 ps.
- After: the stages are 600, 350, 500, 400, 300 so the largest delay is 600 ps.
Percentage increase:
Answer: 33.33
- Before: the largest delay is 800 ps.
- After: the stages are 600, 350, 500, 400, 300 so the largest delay is 600 ps.
Percentage increase:
Answer: 33.33
Suppose the functions F and G can be computed in 5 and 3 nano seconds by functional units and , respectively. Given two instances of and two instances of , it is required to implement the computation for . Ignoring all other delays, the minimum time required to complete this computation is ________ nanoseconds.
Answer: 28
Each item goes through G (3 ns) first and then F (5 ns). There are 2 units of each kind, and the F units slow the whole job down the most. 10 F computations on 2 units take 5 rounds 5 ns = 25 ns.
F can begin only once the first G results are ready, which takes 3 ns. After that, the G units supply F in time.
Total = 3 + 25 = 28 ns
Answer: 28
F can begin only once the first G results are ready, which takes 3 ns. After that, the G units supply F in time.
Total = 3 + 25 = 28 ns
Answer: 28
Consider a 3GHz (gigahertz) processor with a three-stage pipeline and stage latencies , , and such that . If the longest pipeline stage is split into two pipeline stages of equal latency, the new frequency is _____GHz, ignoring delays in the pipeline registers.
Answer: 3.9 to 4.1
Take . Then and . The longest stage is 8k, and it fixes the clock at 3 GHz.
Now cut into two stages of 4k each. After this, the longest stage is .
New frequency: GHz
Answer: 4
Now cut into two stages of 4k each. After this, the longest stage is .
New frequency: GHz
Answer: 4
Consider a non-pipelined processor with a clock rate of 2.5 gigahertz and average cycles per instruction of four. The same processor is upgraded to a pipelined processor with five stages; but due to the internal pipeline delay, the clock speed is reduced to 2 gigahertz. Assume that there are no stalls in the pipeline. The speed up achieved in this pipelined processor is_________.
Answer: 3.2
Compare the time per instruction in both processors:
- Non-pipelined: 4 cycles at 2.5 GHz gives 1.6 ns for each instruction.
- Pipelined (CPI 1): 1 cycle at 2 GHz gives 0.5 ns for each instruction.
Speed-up = 1.6 / 0.5 = 3.2
Answer: 3.2
- Non-pipelined: 4 cycles at 2.5 GHz gives 1.6 ns for each instruction.
- Pipelined (CPI 1): 1 cycle at 2 GHz gives 0.5 ns for each instruction.
Speed-up = 1.6 / 0.5 = 3.2
Answer: 3.2
Keep practising