Home | Projects | Notes > Computer Architecture & Organization > Introduction to Pipelining

Introduction to Pipelining

 

What is Pipelining?

 

Various Pipelines

Five-Stage Pipeline (Standard)

 

timing-diagram-for-instruction-pipeline-operations

 

  1. ID (Instruction Decode)

    Decode the instruction read from memory during the previous phase. The nature of the instruction decode phase is dependent on the complexity of the instruction set.

  2. OF (Operand Fetch)

    The operands specified by the instruction are read from resisters r1 and r2 in the register file and latched into flip-flops.

  3. EX (Execute)

    The operations specified by the instruction is carried out.

  4. OS (Operand Store)

    The result of the execution phase is written into the operand destination in main memory. This may be an on-chip register or a location in external memory. In this case the result is stored in register r0.

Typically each of these stages take one clock-cycle to execute.

Another Five-Stage Pipeline

Four-Stage Pipeline

 

Speedup Ratio