Skip to content

ISRO Scientist/Engineer CSE 2020Computer Organization and Architecture › Pipelining

ISRO Scientist/Engineer CSE 2020 PYQ: Consider a 5- segment pipeline with a clock cycle time 20 ns in each sub operation. Find out the approximate…

Consider a 5- segment pipeline with a clock cycle time 20 ns in each sub operation. Find out the approximate speed-up ratio between pipelined and non-pipelined system to execute 100 instructions. (if an average, every five cycles, a bubble due to data hazard has to be introduced in the pipeline)

  1. A
    5
  2. B
    4.03
    Correct answer
  3. C
    4.81
  4. D
    4.17

Answer

(B) $4.03$

Approach

Compute the non-pipelined execution time as (instructions × stages × cycle time). For the pipelined case, start with the ideal time (k + n − 1 cycles) and add the stall cycles caused by data hazards. The problem states that on average a bubble is inserted every 5 cycles, so for 100 instructions we add 20 stall cycles. Then take the ratio of the two times.

Reviewed by ISRO IQ Editorial Team.