SlideShare a Scribd company logo
2
Most read
3
Most read
10
Most read
Name :- Smit Shah -140410109096
Roshni Sheth-140410109100
T.Y Electrical 2 Sem 5
Subject:-MP & MCI
Topic :-Pipeline & Nonpipeline Processor.1
Characterize Pipelines
1) Hardware or software implementation – pipelining can be implemented
in either software or hardware.
2) Large or Small Scale – Stations in a pipeline can range from simplistic to
powerful, and a pipeline can range in length from short to long.
3) Synchronous or asynchronous flow – A synchronous pipeline operates
like an assembly line: at a given time, each station is processing some
amount of information. A asynchronous pipeline, allow a station to
forward information at any time.
4) Buffered or unbuffered flow – One stage of pipeline sends data directly
to another one or a buffer is place between each pairs of stages.
5) Finite Chunks or Continuous Bit Streams – The digital information that
passes though a pipeline can consist of a sequence or small data items
or an arbitrarily long bit stream.
6) Automatic Data Feed Or Manual Data Feed – Some implementations of
pipelines use a separate mechanism to move information, and other
implementations require each stage to participate in moving
information.
2
What is Pipelining
• 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.
3
How Pipelines Works
• 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.
Example
Instruction 1 Instruction 2
Instruction 3Instruction 4
X X
XX
Four sample instructions, executed linearly
4
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
5
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.
6
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.
7
Write Back
• The Write Back (WB) stage is responsible for writing the result of a
calculation, memory access or input into the register file.
Stalling
• Stalling involves halting the flow of instructions until the required result is
ready to be used. However stalling wastes processor time by doing
nothing while waiting for the result.
8
Operation Timings
• Estimated timings for each of the
stages:
Instruction
Fetch
2ns
Instruction
Decode
1ns
Execution 2ns
Memory
and IO
2ns
Write Back 1ns
9
Advantages/Disadvantages
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.
10
Pipeline Hazards
• Data Hazards – an instruction uses the result of the previous instruction. A
hazard occurs exactly when an instruction tries to read a register in its ID
stage that an earlier instruction intends to write in its WB stage.
• Control Hazards – the location of an instruction depends on previous
instruction
• Structural Hazards – two instructions need to access the same resource
11
Data Hazards
IF
IF
ID
ID EX
EX M
M
WB
WB
ADD R1, R2, R3
SUB R4, R1, R5
Select R2 and R3 for
ALU Operations
ADD R2 and R3 STORE SUM IN
R1
Select R1 and R5 for
ALU Operations
12
IF
IF
ID
ID EX
EX M
M
WB
WB
ADD R1, R2, R3
SUB R4, R1, R5
IF ID EX M WBSTALL
IF ID EX M WBSTALL
IF ID EX M WBSTALL
13
Type of Pipelining
• Software Pipelining
1) Can Handle Complex Instructions
2) Allows programs to be reused
• Hardware Pipelining
1) Help designer manage complexity – a
complex task can be divided into smaller,
more manageable pieces.
2) Hardware pipelining offers higher
performance
14
Type of Hardware Pipelines
• Instruction Pipeline - An instruction pipeline is very similar to a
manufacturing assembly line.
1st stage receives some parts, performs its assembly task, and passes the
results to the second stage;
2nd stage takes the partially assembled product from the first stage, performs
its task, and passes its work to the third stage;
3rd stage does its work, passing the results to the last stage, which completes
the task and outputs its results.
• Data Pipeline – data pipeline is designed to pass data from stage to stage.
15
Instruction Pipelines Conflict
• It divided into two categories.
– Data Conflicts
– Branch Conflicts
• When the current instruction changes a register that the next one needed,
data conflicts happens.
• When the current instruction make a jump, branch conflicts happens.
16
17

More Related Content

PPTX
PPT
04 cache memory.ppt 1
PPTX
Processor organization & register organization
PPTX
Interrupt in real time system
PPTX
Presentation on Segmentation
PPTX
Cache coherence ppt
PPTX
Microcontroller
PPT
Addressing modes
04 cache memory.ppt 1
Processor organization & register organization
Interrupt in real time system
Presentation on Segmentation
Cache coherence ppt
Microcontroller
Addressing modes

What's hot (20)

PPTX
Instruction Formats
PPT
REGISTER TRANSFER AND MICROOPERATIONS
PPT
PPTX
Deadlock ppt
PPTX
INTERCONNECTION STRUCTURE
PPTX
instruction format and addressing modes
PPT
BOOLEAN ALGEBRA
PPTX
Computer Organization
DOCX
Control Units : Microprogrammed and Hardwired:control unit
PPTX
Instruction Cycle in Computer Organization.pptx
PPT
Basic MIPS implementation
PDF
Introduction to Bus | Address, Data, Control Bus
PPT
Parallel processing and pipelining
PPTX
Set associative mapping
PPTX
Associative memory and set associative memory mapping
PPTX
Control unit
PPTX
Addressing modes of 8086
PPTX
Asynchronous Data Transfer.pptx
PDF
hardwired control unit ppt
PPTX
Instruction Formats
REGISTER TRANSFER AND MICROOPERATIONS
Deadlock ppt
INTERCONNECTION STRUCTURE
instruction format and addressing modes
BOOLEAN ALGEBRA
Computer Organization
Control Units : Microprogrammed and Hardwired:control unit
Instruction Cycle in Computer Organization.pptx
Basic MIPS implementation
Introduction to Bus | Address, Data, Control Bus
Parallel processing and pipelining
Set associative mapping
Associative memory and set associative memory mapping
Control unit
Addressing modes of 8086
Asynchronous Data Transfer.pptx
hardwired control unit ppt
Ad

Viewers also liked (11)

PPTX
Primer acercamiento a la participación en Facebook
PPTX
Révision I - Introduction
PDF
Pulseguard A5 Brochure_Layout 1
PPTX
How to use hootsuit by ella
PPTX
NUANCES OF DELIVERY
PPTX
Lap winding for AC machine
PDF
Final Project Report
PPTX
AC Supply system, Comparison Between AC-DC System, Advantage HV transmission
PPTX
Block Reduction Method
DOC
Komsan RESUME
PPTX
Welcomeuruguay
Primer acercamiento a la participación en Facebook
Révision I - Introduction
Pulseguard A5 Brochure_Layout 1
How to use hootsuit by ella
NUANCES OF DELIVERY
Lap winding for AC machine
Final Project Report
AC Supply system, Comparison Between AC-DC System, Advantage HV transmission
Block Reduction Method
Komsan RESUME
Welcomeuruguay
Ad

Similar to Pipeline & Nonpipeline Processor (20)

PPT
Pipelining In computer
PPT
Unit 3
PPTX
Pipelining of Processors
PPTX
pipelining
PPTX
Pipelining of Processors Computer Architecture
PPTX
pipeline in computer architecture design
PPTX
Computer organisation and architecture .
PPTX
3 Pipelining
PPT
Computer architecture pipelining
PPT
PPT
Pipelining slides
PDF
Computer SAarchitecture Lecture 6_Pip.pdf
PPT
Pipeline hazard
PPT
Pipelining
PDF
Module 2 of apj Abdul kablam university hpc.pdf
PDF
Pipelining 16 computers Artitacher pdf
PPT
Pipelining
PPTX
complete DLD.pptxbjngjjgujjhhujhhhuujhguh
PPTX
pipelining
PPTX
Design pipeline architecture for various stage pipelines
Pipelining In computer
Unit 3
Pipelining of Processors
pipelining
Pipelining of Processors Computer Architecture
pipeline in computer architecture design
Computer organisation and architecture .
3 Pipelining
Computer architecture pipelining
Pipelining slides
Computer SAarchitecture Lecture 6_Pip.pdf
Pipeline hazard
Pipelining
Module 2 of apj Abdul kablam university hpc.pdf
Pipelining 16 computers Artitacher pdf
Pipelining
complete DLD.pptxbjngjjgujjhhujhhhuujhguh
pipelining
Design pipeline architecture for various stage pipelines

More from Smit Shah (20)

PPTX
Flow chart & Program for CAAD of choke coil
PPTX
Line to Line & Double Line to Ground Fault On Power System
PPTX
Finite difference method for charge calculation
PPTX
Parallel Inverter
PPTX
Dry Type Transformer
PPTX
Half wave control rectifier with RL load
PPTX
Hacking & Attack vector
PPTX
Frequency spectrum of periodic signal..
PPTX
Divergence Theorem & Maxwell’s First Equation
PPTX
Solar Dryer & Solar Distillation
PPTX
Parallel Adder and Subtractor
PPTX
Type of Single phase induction Motor
PPTX
Fluid Properties Density , Viscosity , Surface tension & Capillarity
PPTX
Application of different types of dc generator and dc motor
PPT
Initial Conditions
PPTX
Laplace Transform And Its Applications
PPT
Transistor Configuration
PPTX
PROJECTION OF POINT AND LINE
PPTX
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
PPTX
Types of Lamps
Flow chart & Program for CAAD of choke coil
Line to Line & Double Line to Ground Fault On Power System
Finite difference method for charge calculation
Parallel Inverter
Dry Type Transformer
Half wave control rectifier with RL load
Hacking & Attack vector
Frequency spectrum of periodic signal..
Divergence Theorem & Maxwell’s First Equation
Solar Dryer & Solar Distillation
Parallel Adder and Subtractor
Type of Single phase induction Motor
Fluid Properties Density , Viscosity , Surface tension & Capillarity
Application of different types of dc generator and dc motor
Initial Conditions
Laplace Transform And Its Applications
Transistor Configuration
PROJECTION OF POINT AND LINE
MASTER SLAVE JK FLIP FLOP & T FLIP FLOP
Types of Lamps

Recently uploaded (20)

PDF
Pre independence Education in Inndia.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Basic Mud Logging Guide for educational purpose
PDF
Business Ethics Teaching Materials for college
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pre independence Education in Inndia.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
STATICS OF THE RIGID BODIES Hibbelers.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Week 4 Term 3 Study Techniques revisited.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Basic Mud Logging Guide for educational purpose
Business Ethics Teaching Materials for college
human mycosis Human fungal infections are called human mycosis..pptx
Renaissance Architecture: A Journey from Faith to Humanism
102 student loan defaulters named and shamed – Is someone you know on the list?
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Supply Chain Operations Speaking Notes -ICLT Program
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

Pipeline & Nonpipeline Processor

  • 1. Name :- Smit Shah -140410109096 Roshni Sheth-140410109100 T.Y Electrical 2 Sem 5 Subject:-MP & MCI Topic :-Pipeline & Nonpipeline Processor.1
  • 2. Characterize Pipelines 1) Hardware or software implementation – pipelining can be implemented in either software or hardware. 2) Large or Small Scale – Stations in a pipeline can range from simplistic to powerful, and a pipeline can range in length from short to long. 3) Synchronous or asynchronous flow – A synchronous pipeline operates like an assembly line: at a given time, each station is processing some amount of information. A asynchronous pipeline, allow a station to forward information at any time. 4) Buffered or unbuffered flow – One stage of pipeline sends data directly to another one or a buffer is place between each pairs of stages. 5) Finite Chunks or Continuous Bit Streams – The digital information that passes though a pipeline can consist of a sequence or small data items or an arbitrarily long bit stream. 6) Automatic Data Feed Or Manual Data Feed – Some implementations of pipelines use a separate mechanism to move information, and other implementations require each stage to participate in moving information. 2
  • 3. What is Pipelining • 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. 3
  • 4. How Pipelines Works • 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. Example Instruction 1 Instruction 2 Instruction 3Instruction 4 X X XX Four sample instructions, executed linearly 4
  • 6. 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. 6
  • 7. 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. 7
  • 8. Write Back • The Write Back (WB) stage is responsible for writing the result of a calculation, memory access or input into the register file. Stalling • Stalling involves halting the flow of instructions until the required result is ready to be used. However stalling wastes processor time by doing nothing while waiting for the result. 8
  • 9. Operation Timings • Estimated timings for each of the stages: Instruction Fetch 2ns Instruction Decode 1ns Execution 2ns Memory and IO 2ns Write Back 1ns 9
  • 10. Advantages/Disadvantages 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. 10
  • 11. Pipeline Hazards • Data Hazards – an instruction uses the result of the previous instruction. A hazard occurs exactly when an instruction tries to read a register in its ID stage that an earlier instruction intends to write in its WB stage. • Control Hazards – the location of an instruction depends on previous instruction • Structural Hazards – two instructions need to access the same resource 11
  • 12. Data Hazards IF IF ID ID EX EX M M WB WB ADD R1, R2, R3 SUB R4, R1, R5 Select R2 and R3 for ALU Operations ADD R2 and R3 STORE SUM IN R1 Select R1 and R5 for ALU Operations 12
  • 13. IF IF ID ID EX EX M M WB WB ADD R1, R2, R3 SUB R4, R1, R5 IF ID EX M WBSTALL IF ID EX M WBSTALL IF ID EX M WBSTALL 13
  • 14. Type of Pipelining • Software Pipelining 1) Can Handle Complex Instructions 2) Allows programs to be reused • Hardware Pipelining 1) Help designer manage complexity – a complex task can be divided into smaller, more manageable pieces. 2) Hardware pipelining offers higher performance 14
  • 15. Type of Hardware Pipelines • Instruction Pipeline - An instruction pipeline is very similar to a manufacturing assembly line. 1st stage receives some parts, performs its assembly task, and passes the results to the second stage; 2nd stage takes the partially assembled product from the first stage, performs its task, and passes its work to the third stage; 3rd stage does its work, passing the results to the last stage, which completes the task and outputs its results. • Data Pipeline – data pipeline is designed to pass data from stage to stage. 15
  • 16. Instruction Pipelines Conflict • It divided into two categories. – Data Conflicts – Branch Conflicts • When the current instruction changes a register that the next one needed, data conflicts happens. • When the current instruction make a jump, branch conflicts happens. 16
  • 17. 17