A processor takes 12 cycles to complete an instruction I. The corresponding…

2007

A processor takes 12 cycles to complete an instruction I. The corresponding pipelined processor uses 6 stages with the execution times of 3, 2, 5, 4, 6 and 2 cycles respectively. What is the asymptotic speedup assuming that a very large number of instructions are to be executed?

  1. A.

    1.83

  2. B.

    2

  3. C.

    3

  4. D.

    6

Attempted by 169 students.

Show answer & explanation

Correct answer: B

Key idea: the pipeline's steady-state throughput is limited by the slowest stage, so the pipeline clock period equals the maximum stage time.

  1. Given unpipelined time per instruction = 12 cycles.

  2. Pipeline stage times (cycles): 3, 2, 5, 4, 6, 2. The pipeline clock period must be at least the maximum stage time = 6 cycles.

  3. In steady state the pipeline completes one instruction every pipeline clock, so steady-state cycles per instruction = 6.

  4. Asymptotic speedup = (unpipelined cycles per instruction) / (steady-state cycles per instruction) = 12 / 6 = 2.

Answer: The asymptotic speedup is 2 (assuming ideal pipeline operation and a very large number of instructions).

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir