SlideShare a Scribd company logo
pipelining
 Estimated timings for each of
the stages:
Instruction
Fetch
2ns
Instruction
Decode
1ns
Execution 2ns
Memory
and IO
2ns
Write Back 1ns
Advantages:
 More efficient use of processor
 Quicker time of execution of large number of
instructions
Disadvantages:
 Pipelining involves adding hardware to the chip
 Inability to continuously run the pipeline
at full speed because of pipeline hazards
which disrupt the smooth execution of the
pipeline.
Linear Pipeline Processor
Linear pipeline processes a sequence of subtasks with linear
precedence
At a higher level - Sequence of processors
Data flowing in streams from stage S1 to the final stage Sk
Control of data flow : synchronous or asynchronous
S1 S2 Sk   
3
S1
S2
S3
T1
T1
T1
T2
T2
T2
T3
T3
T4
1 2 3 4
Time (in pipeline cycles)
Full pipeline after 4 cycles
Asynchronous Pipeline
Transfers performed when individual processors are ready
Handshaking protocol between processors
Mainly used in multiprocessor systems with message-passing
5
pipelining
Synchronous Pipeline
All transfers simultaneous
One task or operation enters the pipeline per cycle
Processors reservation table : diagonal
4
 A technique used in advanced microprocessors where the
microprocessor begins executing a second instruction
before the first has been completed.
- A Pipeline is a series of stages, where some work is done at
each stage. The work is not finished until it has passed
through all stages.
 With pipelining, the computer architecture allows the next
instructions to be fetched while the processor is
performing arithmetic operations, holding them in a buffer
close to the processor until each instruction operation can
performed.
 The pipeline is divided into segments and each
segment can execute it operation concurrently with
the other segments. Once a segment completes an
operations, it passes the result to the next segment in
the pipeline and fetches the next operations from the
preceding segment.
Instruction 1 Instruction 2
Instruction 3Instruction 4
X X
XX
Four sample instructions, executed linearly
Four Pipelined Instructions
IF
IF
IF
IF
ID
ID
ID
ID
EX
EX
EX
EX M
M
M
M
W
W
W
W
5
1
1
1
Instructions Fetch
 The instruction Fetch (IF) stage is responsible for obtaining
the requested instruction from memory. The instruction
and the program counter (which is incremented to the next
instruction) are stored in the IF/ID pipeline register as
temporary storage so that may be used in the next stage at
the start of the next clock cycle.
Instruction Decode
 The Instruction Decode (ID) stage is responsible for
decoding the instruction and sending out the various
control lines to the other parts of the processor. The
instruction is sent to the control unit where it is decoded
and the registers are fetched from the register file.
Execution
 The Execution (EX) stage is where any calculations are
performed. The main component in this stage is the ALU.
The ALU is made up of arithmetic, logic and capabilities.
Memory and IO
 The Memory and IO (MEM) stage is responsible for storing
and loading values to and from memory. It also responsible
for input or output from the processor. If the current
instruction is not of Memory or IO type than the result
from the ALU is passed through to the write back stage.
Write Back
 The Write Back (WB) stage is responsible for writing
the result of a calculation, memory access or input into
the register file.
Presentation In Pipelining
Submitted to :
Preeti mam
Submitted by :
Pradeep Shrivastava
Sudhir Saurav
pipelining

 thank you…………….
Decode
Instruction and
Calculate Effective
Address
Fetch Instruction
From Memory
Branch ?
Update PC
Empty Pipe
Interrupt
Handling
Fetch Operand
From memory
Execute
Instruction
Interrupt
YES
NO
YES NO
INTRODUCTION
Pipelining is technique of decomposing a
sequential process into suboperation, with each
subprocess being executed in a special dedicated
segment that operates concurrently with all other
segments.
The name “pipeline” implies a flows of
information analogous to an industrial assembly
line.
The name “pipeline” implies a flow of
information analogous to an industrial assembly
line.
It is characteristic of pipelines that several
computation can be in progress in distinct at the
same time.
Each subtask can be processed independently
on a different machine.
The pipelining design provides a way to start a
new task before an old one has been completed.
F
1
E
1
F
2
E
2
F
3
E
3
I1 I2 I3
(a) Sequential execution
Instruction
fetch
unit
Exelution
unit
Interstage buffer
B1
(b) Hardware organization
Time
F1 E1
F2 E2
F3 E3
I1
I2
I3
Instruction
(c) Pipelined execution
Clock cycle 1 2 3 4
Time
Fetch + Execution
 pipelining processing:
 Perform arithmetic operation (Ai*Bi)+(Ci*Di) with a
stream of number. A specify pipeline configuration to
carry out the task. Register in the pipeline for i=1
through 6.
It consist of seven registers that receive new data with
every clock pulse ,two multipliers and one adder circuits .
R1 R2 R3 R4
MULTIPLIER MULTIPLIER
R5 R6
ADDER
R7
Stage 1
Stage 2
Stage 3
Ai Bi Ci Di

More Related Content

PPTX
Lecture #3 Flag Register.pptx
PPTX
Instruction codes
PDF
Run time storage
PPTX
Register organization, stack
PDF
hardwired control unit ppt
PPT
Types of instructions
PPTX
Addressing sequencing
PPTX
Set associative mapping
Lecture #3 Flag Register.pptx
Instruction codes
Run time storage
Register organization, stack
hardwired control unit ppt
Types of instructions
Addressing sequencing
Set associative mapping

What's hot (20)

PPTX
Types of Addressing modes- COA
DOCX
Control Units : Microprogrammed and Hardwired:control unit
PPT
Computer architecture pipelining
PPTX
Multiplication algorithm
PPTX
Access to non local names
PPTX
Computer arithmetic
PPTX
Input-Buffering
PPTX
Input Output Organization
PPTX
Basic Computer Organization and Design
PPTX
Heap Management
PPS
Virtual memory
PPT
Pipelining in computer architecture
PPTX
Register Reference Instructions | Computer Science
PPTX
Stack organization
PPS
Cache memory
PPTX
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
PPTX
Restoring & Non-Restoring Division Algorithm By Sania Nisar
PPTX
Arrays In C++
PPTX
Binary search
PPTX
A Role of Lexical Analyzer
Types of Addressing modes- COA
Control Units : Microprogrammed and Hardwired:control unit
Computer architecture pipelining
Multiplication algorithm
Access to non local names
Computer arithmetic
Input-Buffering
Input Output Organization
Basic Computer Organization and Design
Heap Management
Virtual memory
Pipelining in computer architecture
Register Reference Instructions | Computer Science
Stack organization
Cache memory
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
Restoring & Non-Restoring Division Algorithm By Sania Nisar
Arrays In C++
Binary search
A Role of Lexical Analyzer
Ad

Viewers also liked (6)

PPT
pipelining
PPT
Data manipulation instructions
PPTX
Instruction pipelining
PPT
Pipelining In computer
PPTX
Instruction pipeline: Computer Architecture
PPTX
Pipelining and vector processing
pipelining
Data manipulation instructions
Instruction pipelining
Pipelining In computer
Instruction pipeline: Computer Architecture
Pipelining and vector processing
Ad

Similar to pipelining (20)

PDF
Pipelining 16 computers Artitacher pdf
PPTX
Pipeline & Nonpipeline Processor
PPT
Pipelining _
PDF
Module 2 of apj Abdul kablam university hpc.pdf
PPTX
Pipelining of Processors
PPTX
Pipelining , structural hazards
PPTX
Pipelining of Processors Computer Architecture
PPTX
Assembly p1
PPT
Unit 3
PPTX
pipelining
PPTX
Design pipeline architecture for various stage pipelines
PPTX
Pipelining in Computer System Achitecture
PPTX
INSTRUCTION LEVEL PARALLALISM
PDF
The AVR Pipelining explanation detailed.pdf
PPT
PDF
L4 speeding-up-execution
PPTX
pipeline in computer architecture design
DOCX
Bc0040
PDF
Pipeline Computing by S. M. Risalat Hasan Chowdhury
PPT
Pipeline hazard
Pipelining 16 computers Artitacher pdf
Pipeline & Nonpipeline Processor
Pipelining _
Module 2 of apj Abdul kablam university hpc.pdf
Pipelining of Processors
Pipelining , structural hazards
Pipelining of Processors Computer Architecture
Assembly p1
Unit 3
pipelining
Design pipeline architecture for various stage pipelines
Pipelining in Computer System Achitecture
INSTRUCTION LEVEL PARALLALISM
The AVR Pipelining explanation detailed.pdf
L4 speeding-up-execution
pipeline in computer architecture design
Bc0040
Pipeline Computing by S. M. Risalat Hasan Chowdhury
Pipeline hazard

Recently uploaded (20)

PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
OOP with Java - Java Introduction (Basics)
PDF
PPT on Performance Review to get promotions
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Geodesy 1.pptx...............................................
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Sustainable Sites - Green Building Construction
PPT
Mechanical Engineering MATERIALS Selection
PPTX
CH1 Production IntroductoryConcepts.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
OOP with Java - Java Introduction (Basics)
PPT on Performance Review to get promotions
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Embodied AI: Ushering in the Next Era of Intelligent Systems
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Geodesy 1.pptx...............................................
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Operating System & Kernel Study Guide-1 - converted.pdf
Sustainable Sites - Green Building Construction
Mechanical Engineering MATERIALS Selection
CH1 Production IntroductoryConcepts.pptx

pipelining

  • 2.  Estimated timings for each of the stages: Instruction Fetch 2ns Instruction Decode 1ns Execution 2ns Memory and IO 2ns Write Back 1ns
  • 3. Advantages:  More efficient use of processor  Quicker time of execution of large number of instructions Disadvantages:  Pipelining involves adding hardware to the chip  Inability to continuously run the pipeline at full speed because of pipeline hazards which disrupt the smooth execution of the pipeline.
  • 4. Linear Pipeline Processor Linear pipeline processes a sequence of subtasks with linear precedence At a higher level - Sequence of processors Data flowing in streams from stage S1 to the final stage Sk Control of data flow : synchronous or asynchronous S1 S2 Sk    3
  • 5. S1 S2 S3 T1 T1 T1 T2 T2 T2 T3 T3 T4 1 2 3 4 Time (in pipeline cycles) Full pipeline after 4 cycles
  • 6. Asynchronous Pipeline Transfers performed when individual processors are ready Handshaking protocol between processors Mainly used in multiprocessor systems with message-passing 5
  • 8. Synchronous Pipeline All transfers simultaneous One task or operation enters the pipeline per cycle Processors reservation table : diagonal 4
  • 9.  A technique used in advanced microprocessors where the microprocessor begins executing a second instruction before the first has been completed. - A Pipeline is a series of stages, where some work is done at each stage. The work is not finished until it has passed through all stages.  With pipelining, the computer architecture allows the next instructions to be fetched while the processor is performing arithmetic operations, holding them in a buffer close to the processor until each instruction operation can performed.
  • 10.  The pipeline is divided into segments and each segment can execute it operation concurrently with the other segments. Once a segment completes an operations, it passes the result to the next segment in the pipeline and fetches the next operations from the preceding segment.
  • 11. Instruction 1 Instruction 2 Instruction 3Instruction 4 X X XX Four sample instructions, executed linearly
  • 13. Instructions Fetch  The instruction Fetch (IF) stage is responsible for obtaining the requested instruction from memory. The instruction and the program counter (which is incremented to the next instruction) are stored in the IF/ID pipeline register as temporary storage so that may be used in the next stage at the start of the next clock cycle.
  • 14. Instruction Decode  The Instruction Decode (ID) stage is responsible for decoding the instruction and sending out the various control lines to the other parts of the processor. The instruction is sent to the control unit where it is decoded and the registers are fetched from the register file.
  • 15. Execution  The Execution (EX) stage is where any calculations are performed. The main component in this stage is the ALU. The ALU is made up of arithmetic, logic and capabilities.
  • 16. Memory and IO  The Memory and IO (MEM) stage is responsible for storing and loading values to and from memory. It also responsible for input or output from the processor. If the current instruction is not of Memory or IO type than the result from the ALU is passed through to the write back stage.
  • 17. Write Back  The Write Back (WB) stage is responsible for writing the result of a calculation, memory access or input into the register file.
  • 18. Presentation In Pipelining Submitted to : Preeti mam Submitted by : Pradeep Shrivastava Sudhir Saurav
  • 21. Decode Instruction and Calculate Effective Address Fetch Instruction From Memory Branch ? Update PC Empty Pipe Interrupt Handling Fetch Operand From memory Execute Instruction Interrupt YES NO YES NO
  • 22. INTRODUCTION Pipelining is technique of decomposing a sequential process into suboperation, with each subprocess being executed in a special dedicated segment that operates concurrently with all other segments. The name “pipeline” implies a flows of information analogous to an industrial assembly line.
  • 23. The name “pipeline” implies a flow of information analogous to an industrial assembly line. It is characteristic of pipelines that several computation can be in progress in distinct at the same time. Each subtask can be processed independently on a different machine. The pipelining design provides a way to start a new task before an old one has been completed.
  • 24. F 1 E 1 F 2 E 2 F 3 E 3 I1 I2 I3 (a) Sequential execution Instruction fetch unit Exelution unit Interstage buffer B1 (b) Hardware organization Time F1 E1 F2 E2 F3 E3 I1 I2 I3 Instruction (c) Pipelined execution Clock cycle 1 2 3 4 Time Fetch + Execution
  • 25.  pipelining processing:  Perform arithmetic operation (Ai*Bi)+(Ci*Di) with a stream of number. A specify pipeline configuration to carry out the task. Register in the pipeline for i=1 through 6. It consist of seven registers that receive new data with every clock pulse ,two multipliers and one adder circuits .
  • 26. R1 R2 R3 R4 MULTIPLIER MULTIPLIER R5 R6 ADDER R7 Stage 1 Stage 2 Stage 3 Ai Bi Ci Di