GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A non-pipelined processor takes 180 + 120 + 200 + 260 + 100 ps per instruction. Its 5-stage pipelined version adds a 20 ps latch after each stage and clocks at the slowest stage plus latch. Ignoring hazards, what is the smallest number of instructions n for which the pipeline is at least 3 times faster?

  1. A. 168
  2. B. 39
  3. C. 210
  4. D. 1

Correct answer: A. 168

Non-pipelined: 860n ps. Pipelined: (n + 4) × 280 ps. 860n ≥ 3 × 280 (n + 4) → 20n ≥ 3360 → n ≥ 168. Without the latch (260 ps) it would be 39; using n + 5 cycles gives 210. The asymptotic speed-up is only 860/280 = 3.07, which is why n must be large.

More Computer Organization and Architecture questions

Exams that ask this topic