Instruction pipelining
An instruction pipeline consists of multiple sections each of which perform one of the
phases of the instruction cycle.
1. Two-stage pipeline
2. Four-stage pipeline
3. Six-stage pipeline
Two-stage pipeline
Speed-up
Pipeline hazards
• The pipeline operates continuously as long as the program does not encounter any
hazard situation.
• A hazard is a condition or situation in the pipeline due to which instruction
processing can not continue as usual in the predetermined clock cycle, and the
actions by some stages have to be stalled for some time, till the hazard disappears.
• The cause for the hazard can be either the hardware or the software.
• The hardware cause for hazard is the shortage of resources in meeting simultaneous
requirement of these, by various stages in pipeline, for different instructions in the
pipeline.
• This can be reduced by some extent if sufficient resources are added, though at
increased cost.

Six stage pipeline to discover .ore about what actually a six stage pipeline is

  • 1.
    Instruction pipelining An instructionpipeline consists of multiple sections each of which perform one of the phases of the instruction cycle. 1. Two-stage pipeline 2. Four-stage pipeline 3. Six-stage pipeline
  • 2.
  • 3.
  • 6.
    Pipeline hazards • Thepipeline operates continuously as long as the program does not encounter any hazard situation. • A hazard is a condition or situation in the pipeline due to which instruction processing can not continue as usual in the predetermined clock cycle, and the actions by some stages have to be stalled for some time, till the hazard disappears. • The cause for the hazard can be either the hardware or the software. • The hardware cause for hazard is the shortage of resources in meeting simultaneous requirement of these, by various stages in pipeline, for different instructions in the pipeline. • This can be reduced by some extent if sufficient resources are added, though at increased cost.