SlideShare uma empresa Scribd logo
1 de 39
Presented By
 Saifullah Abbasi 2K15-CSE-76
 Abdul Jabbar Tunio 2K15-CSE-04
Presentation Topic
1. Parallel processing
2. Pipelining
3. Pipeline categories
a) Arithmetic pipeline
b) Instruction pipeline
Parallel Processing
 A Parallel Processing system is able to perform
concurrent data processing to achieve faster
execution time.
Parallel Processing
Example:
 While an instruction is being executed in the ALU,
the next instruction can be read from memory.
 The system may have two or more ALUs and be
able to execute two or more instructions at the same
time.
“So the purpose of parallel processing is to speedup
the computer processing capabilities.”
Parallel Processing
Parallel Processing can be viewed from various level
of complexity.
1. Lowest level:
We distinguish between parallel and serial operations
by the type of Registers used.
2. High level:
Parallel Processing at higher level of complexity can
be achieved by having an multiplicity of functional units
the perform different operations simultaneously.
FLYNN’S CLASSIFICATION
 Flynn’s Classification of computer was based on new
concepts which is “Instruction Stream and Data
Stream” for parallel computing.
FLYNN’S CLASSIFICATION
Instruction Stream & Data Stream
The term “Stream” refers to a sequence flow of either
instruction or data operated on by the computer.
 Instruction Stream: In the complete cycle of instruction
execution, a flow of instruction from main memory to the
CPU is established, this flow of instruction is called IS.
 Data Stream: Flow of operands between processor and
memory bi-directionally. The flow of operands is called
DS.
CPU Main Memory
Instruction
Stream
Data Stream
SINGLE INSTRUCTION &
SINGLE DATA STREAM (SISD)
 In this organization, Sequential execution by
instruction is performed by one CPU containing a
single processing element (PE),
i.e. ALU under one control unit.
IS=DS=1 Processing unit
Control Unit ALU Main MemoryIS DS
IS
MULTIPLE INSTRUCTION &
SINGLE DATA STREAM (MISD)
 In MISD multiple processing elements are organized
under the control of multiple control unit.
 Each CU is handling one instruction stream and
processed through its corresponding processing
element.
 But each processing element is processing only a
single data stream at a time.
MULTIPLE INSTRUCTION AND
SINGLE DATA STREAM (MISD)
 In MISD multiple CUs and Multiple Processing
Elements are organized in this classification.
MUTIPLE INSTRUCTION &
MULTIPLE DATA STREAM (MIMD)
 In this Multiple Instruction Streams operate on
Multiple Data Stream.
 Therefore handling Multiple Instruction Streams,
Multiple Control Units & Multiple Processing
elements are organized. Such that Multiple
Processing Elements are handling Multiple Data
Stream from main memory.
IS>1
DS>1
Pipelining
 Pipelining is a technique of decomposing sequence
process into sub-operations, collection of processing
segment through which binary information flows.
 A Pipeline is series of stages, where some work is
done at each stage. The work is not finished until it
has passed through all stages.
Pipelining
 Pipelining is an speed up technique where multiple
instruction are overlapped in execution on a
processor.
 Pipeline structure is to imagine that each segment
consist of an input register followed by combinational
circuit. The Register hold the data and combinational
circuit performs the operations.
Example
 Multiply and Add operation: Ai*Bi +Ci
 3 Sub operation Segment
How Pipeline 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.
Idea of pipelining in
computer
 The processor execute the program by fetching and
executing instructions. One after the other.
 Let Fi and Ei refer to the fetch and execute steps for
instruction Ii
Use the Idea of Pipelining
in a Computer
Advantages/Disadvantage
s
Advantages:
 More efficient use of processor
 Quicker time of execution of large number of
instructions
Arithmetic Pipeline
 Pipeline arithmetic units are usually found in very
high speed computers.
 They are used to implement floating point
operations.
 We will now discuss the pipeline unit for the floating
point addition and subtraction.
Arithmetic Pipeline
 The inputs to floating point adder pipeline are two
normalized floating point numbers.
 A and B are mantissas and a and b are the
exponents.
 The floating point addition and subtraction can be
performed in four segments.
Arithmetic Pipeline
 The sub-operation performed in each segments are:
 Compare the exponents
 Align the mantissas
 Add or subtract the mantissas
 Normalize the result
 Compare Exponent: The exponent are compared by
subtracting them to determine their difference.
• Align the mantissas: The exponent difference determines
how many times the mantissas associated with smaller
exponent must be shifted to the right.
• Normalize the result
 Overflow: Shifted right and exponent increments by
one.
 Underflow: Shifted to left and number must be
subtracted from exponent.
Instruction Pipeline
 Pipeline processing can occur not only in the data
stream but in the instruction stream as well.
 An instruction pipeline reads consecutive instruction
from memory while previous instruction are being
executed in other segments.
 This caused the instruction fetch and execute
segments to overlap and perform simultaneous
operation.
Machine Cycle
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)
 Overlap these operations
Instructions Fetch
 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
 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
 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 and Execute Instruction
 The FO and EI stages are responsible for storing and
loading values to and from memory. They also responsible
for input and output from the processor respectively.
Write Operands
 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
Any Questions???
pipelining

Mais conteúdo relacionado

Mais procurados

Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processingKamal Acharya
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInteX Research Lab
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of ProcessorsGaditek
 
Accessing I/O Devices
Accessing I/O DevicesAccessing I/O Devices
Accessing I/O DevicesSlideshare
 
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureUnit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureBalaji Vignesh
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Designmekind
 
Multiprocessor
MultiprocessorMultiprocessor
MultiprocessorNeel Patel
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)Mahesh Kumar Attri
 
Pipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture pptPipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture pptmali yogesh kumar
 

Mais procurados (20)

Pipelining and vector processing
Pipelining and vector processingPipelining and vector processing
Pipelining and vector processing
 
3 Pipelining
3 Pipelining3 Pipelining
3 Pipelining
 
Interrupts
InterruptsInterrupts
Interrupts
 
INTERRUPTS
INTERRUPTS INTERRUPTS
INTERRUPTS
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
Interrupts ppt
Interrupts pptInterrupts ppt
Interrupts ppt
 
Presentation on risc pipeline
Presentation on risc pipelinePresentation on risc pipeline
Presentation on risc pipeline
 
VLIW Processors
VLIW ProcessorsVLIW Processors
VLIW Processors
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 
Pipelining of Processors
Pipelining of ProcessorsPipelining of Processors
Pipelining of Processors
 
Chapter6 pipelining
Chapter6  pipeliningChapter6  pipelining
Chapter6 pipelining
 
pipelining
pipeliningpipelining
pipelining
 
Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Accessing I/O Devices
Accessing I/O DevicesAccessing I/O Devices
Accessing I/O Devices
 
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureUnit 5 Advanced Computer Architecture
Unit 5 Advanced Computer Architecture
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
Interrupt
InterruptInterrupt
Interrupt
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)
 
Pipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture pptPipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture ppt
 

Semelhante a pipelining

Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System AchitectureYashiUpadhyay3
 
Pipelining , structural hazards
Pipelining , structural hazardsPipelining , structural hazards
Pipelining , structural hazardsMunaam Munawar
 
A survey of paradigms for building and
A survey of paradigms for building andA survey of paradigms for building and
A survey of paradigms for building andcseij
 
Computer arithmetic in computer architecture
Computer arithmetic in computer architectureComputer arithmetic in computer architecture
Computer arithmetic in computer architectureishapadhy
 
INSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISMINSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISMKamran Ashraf
 
Operating system
Operating systemOperating system
Operating systemraj732723
 
Computer organization and architectures chapter8
Computer organization and architectures chapter8Computer organization and architectures chapter8
Computer organization and architectures chapter8binakasehun2026
 
Pipelining 16 computers Artitacher pdf
Pipelining   16 computers Artitacher  pdfPipelining   16 computers Artitacher  pdf
Pipelining 16 computers Artitacher pdfMadhuGupta99385
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computersKumar
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computersKumar
 

Semelhante a pipelining (20)

Unit 4 COA.pptx
Unit 4 COA.pptxUnit 4 COA.pptx
Unit 4 COA.pptx
 
Pipeline Computing by S. M. Risalat Hasan Chowdhury
Pipeline Computing by S. M. Risalat Hasan ChowdhuryPipeline Computing by S. M. Risalat Hasan Chowdhury
Pipeline Computing by S. M. Risalat Hasan Chowdhury
 
Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System Achitecture
 
pipelining
pipeliningpipelining
pipelining
 
Assembly p1
Assembly p1Assembly p1
Assembly p1
 
Parallel Processing.pptx
Parallel Processing.pptxParallel Processing.pptx
Parallel Processing.pptx
 
Pipelining , structural hazards
Pipelining , structural hazardsPipelining , structural hazards
Pipelining , structural hazards
 
Bc0040
Bc0040Bc0040
Bc0040
 
A survey of paradigms for building and
A survey of paradigms for building andA survey of paradigms for building and
A survey of paradigms for building and
 
Parallel programming model
Parallel programming modelParallel programming model
Parallel programming model
 
Computer arithmetic in computer architecture
Computer arithmetic in computer architectureComputer arithmetic in computer architecture
Computer arithmetic in computer architecture
 
INSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISMINSTRUCTION LEVEL PARALLALISM
INSTRUCTION LEVEL PARALLALISM
 
Operating system
Operating systemOperating system
Operating system
 
Computer organization and architectures chapter8
Computer organization and architectures chapter8Computer organization and architectures chapter8
Computer organization and architectures chapter8
 
Pipelining 16 computers Artitacher pdf
Pipelining   16 computers Artitacher  pdfPipelining   16 computers Artitacher  pdf
Pipelining 16 computers Artitacher pdf
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
CO Module 5
CO Module 5CO Module 5
CO Module 5
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computers
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computers
 
Pipeline
PipelinePipeline
Pipeline
 

Último

BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 

Último (20)

BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 

pipelining

  • 1.
  • 2. Presented By  Saifullah Abbasi 2K15-CSE-76  Abdul Jabbar Tunio 2K15-CSE-04
  • 3. Presentation Topic 1. Parallel processing 2. Pipelining 3. Pipeline categories a) Arithmetic pipeline b) Instruction pipeline
  • 4. Parallel Processing  A Parallel Processing system is able to perform concurrent data processing to achieve faster execution time.
  • 5. Parallel Processing Example:  While an instruction is being executed in the ALU, the next instruction can be read from memory.  The system may have two or more ALUs and be able to execute two or more instructions at the same time. “So the purpose of parallel processing is to speedup the computer processing capabilities.”
  • 6. Parallel Processing Parallel Processing can be viewed from various level of complexity. 1. Lowest level: We distinguish between parallel and serial operations by the type of Registers used. 2. High level: Parallel Processing at higher level of complexity can be achieved by having an multiplicity of functional units the perform different operations simultaneously.
  • 7.
  • 8. FLYNN’S CLASSIFICATION  Flynn’s Classification of computer was based on new concepts which is “Instruction Stream and Data Stream” for parallel computing.
  • 9. FLYNN’S CLASSIFICATION Instruction Stream & Data Stream The term “Stream” refers to a sequence flow of either instruction or data operated on by the computer.  Instruction Stream: In the complete cycle of instruction execution, a flow of instruction from main memory to the CPU is established, this flow of instruction is called IS.  Data Stream: Flow of operands between processor and memory bi-directionally. The flow of operands is called DS.
  • 11. SINGLE INSTRUCTION & SINGLE DATA STREAM (SISD)  In this organization, Sequential execution by instruction is performed by one CPU containing a single processing element (PE), i.e. ALU under one control unit. IS=DS=1 Processing unit Control Unit ALU Main MemoryIS DS IS
  • 12. MULTIPLE INSTRUCTION & SINGLE DATA STREAM (MISD)  In MISD multiple processing elements are organized under the control of multiple control unit.  Each CU is handling one instruction stream and processed through its corresponding processing element.  But each processing element is processing only a single data stream at a time.
  • 13. MULTIPLE INSTRUCTION AND SINGLE DATA STREAM (MISD)  In MISD multiple CUs and Multiple Processing Elements are organized in this classification.
  • 14. MUTIPLE INSTRUCTION & MULTIPLE DATA STREAM (MIMD)  In this Multiple Instruction Streams operate on Multiple Data Stream.  Therefore handling Multiple Instruction Streams, Multiple Control Units & Multiple Processing elements are organized. Such that Multiple Processing Elements are handling Multiple Data Stream from main memory.
  • 16. Pipelining  Pipelining is a technique of decomposing sequence process into sub-operations, collection of processing segment through which binary information flows.  A Pipeline is series of stages, where some work is done at each stage. The work is not finished until it has passed through all stages.
  • 17. Pipelining  Pipelining is an speed up technique where multiple instruction are overlapped in execution on a processor.  Pipeline structure is to imagine that each segment consist of an input register followed by combinational circuit. The Register hold the data and combinational circuit performs the operations.
  • 18.
  • 19. Example  Multiply and Add operation: Ai*Bi +Ci  3 Sub operation Segment
  • 20. How Pipeline 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.
  • 21. Idea of pipelining in computer  The processor execute the program by fetching and executing instructions. One after the other.  Let Fi and Ei refer to the fetch and execute steps for instruction Ii
  • 22. Use the Idea of Pipelining in a Computer
  • 23. Advantages/Disadvantage s Advantages:  More efficient use of processor  Quicker time of execution of large number of instructions
  • 24. Arithmetic Pipeline  Pipeline arithmetic units are usually found in very high speed computers.  They are used to implement floating point operations.  We will now discuss the pipeline unit for the floating point addition and subtraction.
  • 25. Arithmetic Pipeline  The inputs to floating point adder pipeline are two normalized floating point numbers.  A and B are mantissas and a and b are the exponents.  The floating point addition and subtraction can be performed in four segments.
  • 26. Arithmetic Pipeline  The sub-operation performed in each segments are:  Compare the exponents  Align the mantissas  Add or subtract the mantissas  Normalize the result
  • 27.  Compare Exponent: The exponent are compared by subtracting them to determine their difference. • Align the mantissas: The exponent difference determines how many times the mantissas associated with smaller exponent must be shifted to the right.
  • 28. • Normalize the result  Overflow: Shifted right and exponent increments by one.  Underflow: Shifted to left and number must be subtracted from exponent.
  • 29.
  • 30.
  • 31. Instruction Pipeline  Pipeline processing can occur not only in the data stream but in the instruction stream as well.  An instruction pipeline reads consecutive instruction from memory while previous instruction are being executed in other segments.  This caused the instruction fetch and execute segments to overlap and perform simultaneous operation.
  • 33. 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)  Overlap these operations
  • 34. Instructions Fetch  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  The DI stage is responsible for decoding the instruction and sending out the various control lines to the other parts of the processor.
  • 35. Calculate Operands  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 and Execute Instruction  The FO and EI stages are responsible for storing and loading values to and from memory. They also responsible for input and output from the processor respectively.
  • 36. Write Operands  The WO stage is responsible for writing the result of a calculation, memory access or input into the register file.
  • 37. Timing Diagram for Instruction Pipeline Operation