GATE CSE 2017 Session 1 Q60: Speedup of efficient pipeline (OF split 12/8 ns) over naive 5-stage pipeline
- Computer Organization and Architecture
- 2 marks
- NAT
- No negative marking
Syllabus topic: Instruction pipelining and pipeline hazards
Question
Instruction 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 2 ns. 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 is divided into stages OF1 and OF2 with execution times of 12 ns and 8 ns respectively.
The speedup (correct to two decimal places) achieved by EP over NP in executing 20 independent instructions with no hazards is ______.
Try it: numerical answer: type the value
Show answer and explanation
Answer: 1.49 to 1.52 (official GATE 2017 final answer key)
Concept used: Pipeline cycle time = slowest stage + buffer delay; time for n instructions on a k-stage pipeline = (k + n − 1) cycles.
First step: Find the cycle times (20 + 2 ns for NP, 12 + 2 ns for EP) and compute cycles for NP and cycles for EP, then take the ratio.
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Instruction pipelining and pipeline hazards
Every PYQ on this topic →Share this question
Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Computer Organization and Architecture PYQs
- 2026 Session 1 · Q14Match addressing modes with high-level data elements
- 2026 Session 1 · Q15Instruction sequence for Z = X + Y on a load-store machine
- 2026 Session 1 · Q16Register dependency that causes a data hazard
- 2026 Session 1 · Q36IEEE 754 single-precision sum of 35C00000 and 34A00000
- 2026 Session 1 · Q38Tag length: direct-mapped vs K-way set-associative cache
- 2026 Session 1 · Q54Impossible TLB / page table / cache event sequences