SlideShare a Scribd company logo
9
Most read
10
Most read
13
Most read
PIPELINE
PROCESSING
Created & Presented by:
S. Hasnain Raza
PIMSAT - Pakistan
AGENDA
▪ Introduction
▪ Pipeline Case – Non pipelined Vs Pipeline
▪ Pipeline processors
▪ Instruction Pipeline
▪ Timing Diagram for Instruction Pipeline Operation
▪ Pipeline Advantages
▪ Can Pipelining Get Us Into Trouble?
INTRODUCTION
▪ A Pipelining is a series of stages, where some work is done at each
stage in parallel.
▪ The stages are connected one to the next to form a pipe - instructions
enter at one end, progress through the stages, and exit at the other
end.
▪ A pipeline is a set of data processing elements connected in series,
where the output of one element is the input of the next one.
(Wikipedia)
INTRODUCTION (CONT..)
▪ Pipelining is an speed up technique where multiple instructions are
overlapped in execution on a processor.
▪ The elements of a pipeline are often executed in parallel or in time-
sliced fashion; in that case, some amount of buffer storage is often
inserted between elements.
▪ Buffer or data buffer:
▪ It is a region of a physical memory storage used to temporarily store data while
it is being moved from one place to another.
PIPELINE CASE – LAUNDRY
▪ 4 loads of laundry that need to washed, dried, and folded.
▪ 30 minutes to wash
▪ 40 minutes to dry
▪ and 20 min. to fold.
▪ We have 1 washer, 1 dryer, and 1 folding station.
▪ What’s the most efficient way to get the 4 loads of
laundry done?
PIPELINE CASE – [NON PIPELINED
LAUNDRY]
Takes a total of 6 hours in above case
PIPELINE CASE – [PIPELINED LAUNDRY]
Using this
method, the
laundry
would be
done at 9:30.
PIPELINE PROCESSORS
▪ Computers, like laundry, typically perform the exact
same steps for every instruction:
▪ Fetch an instruction from memory
▪ Decode the instruction
▪ Execute the instruction
▪ Read memory to get input
▪ Write the result back to memory
INSTRUCTION PIPELINE
▪ Instruction execution process lends itself naturally to pipelining
▪ overlap the subtasks of instruction fetch, decode and execute
▪ Instruction pipeline has six operations
▪ Fetch instruction (FI)
▪ Decode instruction (DI)
▪ Calculate operands (CO)
▪ Fetch operands (FO)
▪ Execute instructions (EI)
▪ Write result (WR)
INSTRUCTION PIPELINE (CONT..)
▪ Operation Briefly Explained
▪ Fetch instruction (FI)
▪ The IF stage is responsible for obtaining the requested instruction from memory. The
instruction and the program counter are stored in the register as temporary storage
▪ Decode instruction (DI)
▪ The DI stage is responsible for decoding the instruction and sending out the various control
lines to the other parts of the processor.
▪ Calculate operands (CO)
▪ The CO 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.
▪ Fetch operands (FO) & Execute instructions (EI)
▪ The FO and EI stages are responsible for storing and loading values to and from memory.
They are also responsible for input and output from the processor respectively.
▪ Write result (WR)
▪ The WO stage is responsible for writing the result of a calculation, memory access or input
into the register file.
TIMING DIAGRAM FOR
INSTRUCTION PIPELINE OPERATION
ADVANTAGES
▪ Pipelining makes efficient use of resources.
▪ Quicker time of execution of large number of instructions
▪ The parallelism is invisible to the programmer.
CAN PIPELINING GET US INTO TROUBLE?
“YES”
▪ Pipeline Hazards
▪ Structural hazards
▪ Attempt to use the same resource by two different instructions at the same
time.
▪ Data hazards
▪ Attempt to use data before it is ready
▪ Control hazards
▪ Attempt to make a decision about program control flow before the
condition has been evaluated and the new PC target address calculated
THANK YOU!
Pipeline Processing
Advance Computer Architecture
S. Hasnain Raza
PIMSAT - Pakistan

More Related Content

What's hot (20)

PPTX
Register transfer language
Sanjeev Patel
 
PPT
Pipeline hazard
AJAL A J
 
PPTX
Superscalar processor
noor ul ain
 
PPTX
DMA and DMA controller
nishant upadhyay
 
PPT
Pipelining slides
PrasantaKumarDash2
 
PPTX
Risc and cisc computers
ankita mundhra
 
PPTX
RISC - Reduced Instruction Set Computing
Tushar Swami
 
PPTX
INSTRUCTION LEVEL PARALLALISM
Kamran Ashraf
 
PPT
Interface
Siddique Ibrahim
 
PPTX
Instruction pipelining
Tech_MX
 
PPTX
8237 dma controller
Tech_MX
 
PPTX
Input - Output Organization and I/O Interface
kasthurimukila
 
PPT
Bus interconnection
Muhammad Ishaq
 
PPTX
Addressing sequencing
rajshreemuthiah
 
PPTX
Computer arithmetic
Balakrishna Chowdary
 
PDF
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdf
Mahbubay Rabbani Mim
 
PPT
Pipelining
Amin Omi
 
PPT
Parallel processing
Syed Zaid Irshad
 
PPTX
CISC & RISC Architecture
Suvendu Kumar Dash
 
PPTX
Cache memory
Prasenjit Dey
 
Register transfer language
Sanjeev Patel
 
Pipeline hazard
AJAL A J
 
Superscalar processor
noor ul ain
 
DMA and DMA controller
nishant upadhyay
 
Pipelining slides
PrasantaKumarDash2
 
Risc and cisc computers
ankita mundhra
 
RISC - Reduced Instruction Set Computing
Tushar Swami
 
INSTRUCTION LEVEL PARALLALISM
Kamran Ashraf
 
Interface
Siddique Ibrahim
 
Instruction pipelining
Tech_MX
 
8237 dma controller
Tech_MX
 
Input - Output Organization and I/O Interface
kasthurimukila
 
Bus interconnection
Muhammad Ishaq
 
Addressing sequencing
rajshreemuthiah
 
Computer arithmetic
Balakrishna Chowdary
 
Difference among 8085,8086,80186,80286,80386 Microprocessor.pdf
Mahbubay Rabbani Mim
 
Pipelining
Amin Omi
 
Parallel processing
Syed Zaid Irshad
 
CISC & RISC Architecture
Suvendu Kumar Dash
 
Cache memory
Prasenjit Dey
 

Similar to Pipeline processing - Computer Architecture (20)

PPTX
Pipeline Processing Architecture
Suraj Das
 
PPT
Performance Enhancement with Pipelining
Aneesh Raveendran
 
PPTX
Lecture-9 Parallel-processing .pptx
hammadtahsan
 
PPT
Coa.ppt2
PrasantaKumarDash2
 
PPTX
3 Pipelining
fika sweety
 
PPTX
Pipelining of Processors Computer Architecture
Haris456
 
PPTX
Pipelining of Processors
Gaditek
 
PDF
Keeping Latency Low and Throughput High with Application-level Priority Manag...
ScyllaDB
 
PPTX
Where is my bottleneck? Performance troubleshooting in Flink
Flink Forward
 
PDF
Lect07
Vin Voro
 
PPTX
Clock-8086 bus cycle
Rani Rahul
 
PDF
Presentation.pdf
SamuelSianamate
 
PPTX
complete DLD.pptxbjngjjgujjhhujhhhuujhguh
kashafishfaq21
 
PDF
Computer SAarchitecture Lecture 6_Pip.pdf
kimhyunwoo24
 
PPTX
UNIT 3 - General Purpose Processors
ButtaRajasekhar2
 
PDF
COA_Unit-3_slides_Pipeline Processing .pdf
ganeshchettipalli
 
PPTX
Computer Architecture
Shahriar Parvez
 
PDF
Coal 10 instruction cycle and interrupts in Assembly Programming
Muhammad Taqi Hassan Bukhari
 
PPTX
Von Neumann Architecture microcontroller.pptx
SUNILNYATI2
 
PDF
Lecture- 2_Process Management.pdf
Harika Pudugosula
 
Pipeline Processing Architecture
Suraj Das
 
Performance Enhancement with Pipelining
Aneesh Raveendran
 
Lecture-9 Parallel-processing .pptx
hammadtahsan
 
3 Pipelining
fika sweety
 
Pipelining of Processors Computer Architecture
Haris456
 
Pipelining of Processors
Gaditek
 
Keeping Latency Low and Throughput High with Application-level Priority Manag...
ScyllaDB
 
Where is my bottleneck? Performance troubleshooting in Flink
Flink Forward
 
Lect07
Vin Voro
 
Clock-8086 bus cycle
Rani Rahul
 
Presentation.pdf
SamuelSianamate
 
complete DLD.pptxbjngjjgujjhhujhhhuujhguh
kashafishfaq21
 
Computer SAarchitecture Lecture 6_Pip.pdf
kimhyunwoo24
 
UNIT 3 - General Purpose Processors
ButtaRajasekhar2
 
COA_Unit-3_slides_Pipeline Processing .pdf
ganeshchettipalli
 
Computer Architecture
Shahriar Parvez
 
Coal 10 instruction cycle and interrupts in Assembly Programming
Muhammad Taqi Hassan Bukhari
 
Von Neumann Architecture microcontroller.pptx
SUNILNYATI2
 
Lecture- 2_Process Management.pdf
Harika Pudugosula
 
Ad

Recently uploaded (20)

PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Ad

Pipeline processing - Computer Architecture

  • 1. PIPELINE PROCESSING Created & Presented by: S. Hasnain Raza PIMSAT - Pakistan
  • 2. AGENDA ▪ Introduction ▪ Pipeline Case – Non pipelined Vs Pipeline ▪ Pipeline processors ▪ Instruction Pipeline ▪ Timing Diagram for Instruction Pipeline Operation ▪ Pipeline Advantages ▪ Can Pipelining Get Us Into Trouble?
  • 3. INTRODUCTION ▪ A Pipelining is a series of stages, where some work is done at each stage in parallel. ▪ The stages are connected one to the next to form a pipe - instructions enter at one end, progress through the stages, and exit at the other end. ▪ A pipeline is a set of data processing elements connected in series, where the output of one element is the input of the next one. (Wikipedia)
  • 4. INTRODUCTION (CONT..) ▪ Pipelining is an speed up technique where multiple instructions are overlapped in execution on a processor. ▪ The elements of a pipeline are often executed in parallel or in time- sliced fashion; in that case, some amount of buffer storage is often inserted between elements. ▪ Buffer or data buffer: ▪ It is a region of a physical memory storage used to temporarily store data while it is being moved from one place to another.
  • 5. PIPELINE CASE – LAUNDRY ▪ 4 loads of laundry that need to washed, dried, and folded. ▪ 30 minutes to wash ▪ 40 minutes to dry ▪ and 20 min. to fold. ▪ We have 1 washer, 1 dryer, and 1 folding station. ▪ What’s the most efficient way to get the 4 loads of laundry done?
  • 6. PIPELINE CASE – [NON PIPELINED LAUNDRY] Takes a total of 6 hours in above case
  • 7. PIPELINE CASE – [PIPELINED LAUNDRY] Using this method, the laundry would be done at 9:30.
  • 8. PIPELINE PROCESSORS ▪ Computers, like laundry, typically perform the exact same steps for every instruction: ▪ Fetch an instruction from memory ▪ Decode the instruction ▪ Execute the instruction ▪ Read memory to get input ▪ Write the result back to memory
  • 9. INSTRUCTION PIPELINE ▪ Instruction execution process lends itself naturally to pipelining ▪ overlap the subtasks of instruction fetch, decode and execute ▪ Instruction pipeline has six operations ▪ Fetch instruction (FI) ▪ Decode instruction (DI) ▪ Calculate operands (CO) ▪ Fetch operands (FO) ▪ Execute instructions (EI) ▪ Write result (WR)
  • 10. INSTRUCTION PIPELINE (CONT..) ▪ Operation Briefly Explained ▪ Fetch instruction (FI) ▪ The IF stage is responsible for obtaining the requested instruction from memory. The instruction and the program counter are stored in the register as temporary storage ▪ Decode instruction (DI) ▪ The DI stage is responsible for decoding the instruction and sending out the various control lines to the other parts of the processor. ▪ Calculate operands (CO) ▪ The CO 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. ▪ Fetch operands (FO) & Execute instructions (EI) ▪ The FO and EI stages are responsible for storing and loading values to and from memory. They are also responsible for input and output from the processor respectively. ▪ Write result (WR) ▪ The WO stage is responsible for writing the result of a calculation, memory access or input into the register file.
  • 11. TIMING DIAGRAM FOR INSTRUCTION PIPELINE OPERATION
  • 12. ADVANTAGES ▪ Pipelining makes efficient use of resources. ▪ Quicker time of execution of large number of instructions ▪ The parallelism is invisible to the programmer.
  • 13. CAN PIPELINING GET US INTO TROUBLE? “YES” ▪ Pipeline Hazards ▪ Structural hazards ▪ Attempt to use the same resource by two different instructions at the same time. ▪ Data hazards ▪ Attempt to use data before it is ready ▪ Control hazards ▪ Attempt to make a decision about program control flow before the condition has been evaluated and the new PC target address calculated
  • 14. THANK YOU! Pipeline Processing Advance Computer Architecture S. Hasnain Raza PIMSAT - Pakistan