SlideShare a Scribd company logo
 Parallel Processing, Flynn’s Classification of
Computers
 Pipelining
 Instruction Pipeline
 Pipeline Hazards and their solution
 Array and Vector Processing
Pipelining and Vector
Processing
Parallel Processing
 It refers to techniques that are used to provide
simultaneous data processing.
 The system may have two or more ALUs to be able to
execute two or more instruction at the same time.
 The system may have two or more processors
operating concurrently.
 It can be achieved by having multiple functional
units that perform same or different operation
simultaneously.
Classification
 There are variety of ways in which the parallel
processing can be classified
 Internal Organization of Processor
 Interconnection structure between processors
 Flow of information through system
 M.J. Flynn classify the computer on the basis of
number of instruction and data items processed
simultaneously.
 Single Instruction Stream, Single Data Stream(SISD)
 Single Instruction Stream, Multiple Data Stream(SIMD)
 Multiple Instruction Stream, Single Data Stream(MISD)
 Multiple Instruction Stream, Multiple Data Stream(MIMD)
 SISD represents the organization containing single
control unit, a processor unit and a memory unit.
Instruction are executed sequentially and system
may or may not have internal parallel processing
capabilities.
 SIMD represents an organization that includes many
processing units under the supervision of a common
control unit.
 MISD structure is of only theoretical interest since
no practical system has been constructed using this
organization.
 MIMD organization refers to a computer system
capable of processing several programs at the same
time.
 Flynn’s classification emphasize on the behavioral
characteristics of the computer system rather than
its operational and structural interconnections. One
type of parallel processing that does not fit in the
Flynn’s classification is Pipelining.
 Parallel Processing can be discussed under following
topics:
 Pipeline Processing
 Vector Processing
 Array Processors
Pipelining
 It is a technique of decomposing a sequential process
into sub operations, with each sub process being
executed in a special dedicated segments that
operates concurrently with all other segments.
 Each segment performs partial processing dictated
by the way task is partitioned.
 The result obtained from each segment is transferred
to next segment.
 The final result is obtained when data have passed
through all segments.
Example
 Suppose we have to perform the following task:
 Each sub operation is to be performed in a segment
within a pipeline. Each segment has one or two
registers and a combinational circuit.
 The sub operations in each segment of the pipeline
are as follows:
General Consideration
 Let us consider the case where k segments pipeline
with a clock cycle time tp is used to execute n tasks.
 The first task T1 require time ktp to complete since
there are k segments.
 The remaining (n-1) tasks emerge from pipe at the
rate one task per cycle. They will complete after time
(n-1)tp.
 So total time required is k+(n-1) clock cycles.
 Calculate total cycles in previous example.
 Now consider non pipeline unit that performs the
same operation and takes time equal to tn to
complete each task.
 Total time required is ntn.
 The speedup ration is given as:
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.
 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.
 The sub-operation performed in each segments are:
 Compare the exponents
 Align the mantissas
 Add or subtract the mantissas
 Normalize the result
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.
Four Segment CPU Pipeline
 FI segment fetches the instruction.
 DA segment decodes the instruction and calculate
the effective address.
 FO segment fetches the operand.
 EX segment executes the instruction.
Handling Data Dependency
 This problem can be solved in the following ways:
 Hardware interlocks: It is the circuit that detects the
conflict situation and delayed the instruction by sufficient
cycles to resolve the conflict.
 Operand Forwarding: It uses the special hardware to
detect the conflict and avoid it by routing the data
through the special path between pipeline segments.
 Delayed Loads: The compiler detects the data conflict and
reorder the instruction as necessary to delay the loading
of the conflicting data by inserting no operation
instruction.
Handling of Branch Instruction
 Pre fetch the target instruction.
 Branch target buffer(BTB) included in the fetch
segment of the pipeline
 Branch Prediction
 Delayed Branch
RISC Pipeline
 Simplicity of instruction set is utilized to implement
an instruction pipeline using small number of sub-
operation, with each being executed in single clock
cycle.
 Since all operation are performed in the register,
there is no need of effective address calculation.
Three Segment Instruction Pipeline
 I: Instruction Fetch
 A: ALU Operation
 E: Execute Instruction
Delayed Load
Delayed Branch
 Let us consider the program having the following 5
instructions
Vector Processing
 There is a class of computational problems that are
beyond the capabilities of the conventional
computer.
 These are characterized by the fact that they require
vast number of computation and it take a
conventional computer days or even weeks to
complete.
 Computers with vector processing are able to handle
such instruction and they have application in
following fields:
 Long range weather forecasting
 Petroleum exploration
 Seismic data analysis
 Medical diagnosis
 Aerodynamics and space simulation
 Artificial Intelligence and expert system
 Mapping the human genome
 Image Processing
Vector Operation
 A vector V of length n is represented as row vector by
 The element Vi of vector V is written as V(I) and the
index I refers to a memory address or register where
the number is stored.
 Let us consider the program in assembly language
that two vectors A and B of length 100 and put the
result in vector C.
 A computer capable of vector processing eliminates
the overhead associated with the time it takes to
fetch and execute the instructions in the program
loop.
 It allows operations to be specified with a single
vector instruction of the form:
Matrix Multiplication
 Let us consider the multiplication of two 3*3 matrix
A and B.
 This requires three multiplication and(after
initializing c11 to 0) three addition.
 Total number of addition or multiplication required
is 3*9.
 In general inner product consists of the sum of k
product terms of the form:
 In typical application value of k may be 100 or even
1000.
 The inner product calculation on a pipeline vector
processor is shown below.
 Floating point adder and multiplier are assumed to
have four segments each.
 The four partial sum are added to form the final sum
Memory Interleaving
Array Processor
 An array processor is a processor that performs the
computations on large arrays of data.
 There are two different types of array processor:
 Attached Array Processor
 SIMD Array Processor
Attached Array Processor
 It is designed as a peripheral for a conventional host
computer.
 Its purpose is to enhance the performance of the
computer by providing vector processing.
 It achieves high performance by means of parallel
processing with multiple functional units.
SIMD Array Processor
 It is processor which consists of multiple processing
unit operating in parallel.
 The processing units are synchronized to perform
the same task under control of common control unit.
 Each processor elements(PE) includes an ALU , a
floating point arithmetic unit and working register.
Pipelining and vector processing

More Related Content

What's hot

Computer organisation -morris mano
Computer organisation  -morris manoComputer organisation  -morris mano
Computer organisation -morris mano
vishnu murthy
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
Dattatray Gandhmal
 
Graph coloring using backtracking
Graph coloring using backtrackingGraph coloring using backtracking
Graph coloring using backtracking
shashidharPapishetty
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
InteX Research Lab
 
Virtual memory
Virtual memoryVirtual memory
Virtual memoryAnuj Modi
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
PreethiSureshkumar1
 
Basic MIPS implementation
Basic MIPS implementationBasic MIPS implementation
Basic MIPS implementation
kavitha2009
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
Sanjeev Patel
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
Asif Iqbal
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
Kamal Acharya
 
Multithreading
MultithreadingMultithreading
Multithreading
A B Shinde
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
Chamodi Adikaram
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Ravindra Raju Kolahalam
 
Register allocation and assignment
Register allocation and assignmentRegister allocation and assignment
Register allocation and assignment
Karthi Keyan
 
bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)
Siddhi Viradiya
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
Mr. Vikram Singh Slathia
 
Timing and control
Timing and controlTiming and control
Timing and control
chauhankapil
 

What's hot (20)

Instruction code
Instruction codeInstruction code
Instruction code
 
Computer organisation -morris mano
Computer organisation  -morris manoComputer organisation  -morris mano
Computer organisation -morris mano
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
 
Graph coloring using backtracking
Graph coloring using backtrackingGraph coloring using backtracking
Graph coloring using backtracking
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 
Virtual memory
Virtual memoryVirtual memory
Virtual memory
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Basic MIPS implementation
Basic MIPS implementationBasic MIPS implementation
Basic MIPS implementation
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
Cache memory
Cache memoryCache memory
Cache memory
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Multithreading
MultithreadingMultithreading
Multithreading
 
Array Processor
Array ProcessorArray Processor
Array Processor
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Register allocation and assignment
Register allocation and assignmentRegister allocation and assignment
Register allocation and assignment
 
bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
 
Timing and control
Timing and controlTiming and control
Timing and control
 

Viewers also liked

Pipelining, processors, risc and cisc
Pipelining, processors, risc and ciscPipelining, processors, risc and cisc
Pipelining, processors, risc and cisc
Mark Gibbs
 
pipelining
pipeliningpipelining
pipelining
sudhir saurav
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
knightnick
 
Booths algorithm for Multiplication
Booths algorithm for MultiplicationBooths algorithm for Multiplication
Booths algorithm for Multiplication
Vikas Yadav
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
knightnick
 
pipelining
pipeliningpipelining
pipelining
Siddique Ibrahim
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
AJAL A J
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
Daniel Ilunga
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controllerTech_MX
 
Memory management
Memory managementMemory management
Memory management
Muhammad Fayyaz
 

Viewers also liked (14)

Instruction pipelining (i)
Instruction pipelining (i)Instruction pipelining (i)
Instruction pipelining (i)
 
Pipelining, processors, risc and cisc
Pipelining, processors, risc and ciscPipelining, processors, risc and cisc
Pipelining, processors, risc and cisc
 
Lecture 46
Lecture 46Lecture 46
Lecture 46
 
pipelining
pipeliningpipelining
pipelining
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
 
Booths algorithm for Multiplication
Booths algorithm for MultiplicationBooths algorithm for Multiplication
Booths algorithm for Multiplication
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
pipelining
pipeliningpipelining
pipelining
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
Memory management
Memory managementMemory management
Memory management
 
Booth Multiplier
Booth MultiplierBooth Multiplier
Booth Multiplier
 

Similar to Pipelining and vector processing

Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System Achitecture
YashiUpadhyay3
 
Unit 4 COA.pptx
Unit 4 COA.pptxUnit 4 COA.pptx
Unit 4 COA.pptx
AkshatBhatnagar30
 
pipelining
pipeliningpipelining
pipelining
Sadaf Rasheed
 
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
S. M. Risalat Hasan Chowdhury
 
1.My Presentation.pptx
1.My Presentation.pptx1.My Presentation.pptx
1.My Presentation.pptx
ArslanAliArslanAli
 
Computer arithmetic in computer architecture
Computer arithmetic in computer architectureComputer arithmetic in computer architecture
Computer arithmetic in computer architecture
ishapadhy
 
Pipeline
PipelinePipeline
Pipeline
saman Iftikhar
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
ssuser87fa0c1
 
ehhhhhhhhhhhhhhhhhhhhhhhhhjjjjjllaye.pptx
ehhhhhhhhhhhhhhhhhhhhhhhhhjjjjjllaye.pptxehhhhhhhhhhhhhhhhhhhhhhhhhjjjjjllaye.pptx
ehhhhhhhhhhhhhhhhhhhhhhhhhjjjjjllaye.pptx
EliasPetros
 
Parallel computing and its applications
Parallel computing and its applicationsParallel computing and its applications
Parallel computing and its applications
Burhan Ahmed
 
Pipelining And Vector Processing
Pipelining And Vector ProcessingPipelining And Vector Processing
Pipelining And Vector Processing
TheInnocentTuber
 
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
cseij
 
Parallel processing
Parallel processingParallel processing
Parallel processing
Praveen Kumar
 
pipelining ppt.pdf
pipelining ppt.pdfpipelining ppt.pdf
pipelining ppt.pdf
WilliamTom9
 
Reconfigurable computing
Reconfigurable computingReconfigurable computing
Reconfigurable computing
Sudhanshu Janwadkar
 
Lecture 3
Lecture 3Lecture 3
Lecture 3Mr SMAK
 
Chapter 4 the processor
Chapter 4 the processorChapter 4 the processor
Chapter 4 the processor
s9007912
 

Similar to Pipelining and vector processing (20)

Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System Achitecture
 
Unit 4 COA.pptx
Unit 4 COA.pptxUnit 4 COA.pptx
Unit 4 COA.pptx
 
pipelining
pipeliningpipelining
pipelining
 
CO Module 5
CO Module 5CO Module 5
CO Module 5
 
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
 
1.My Presentation.pptx
1.My Presentation.pptx1.My Presentation.pptx
1.My Presentation.pptx
 
Computer arithmetic in computer architecture
Computer arithmetic in computer architectureComputer arithmetic in computer architecture
Computer arithmetic in computer architecture
 
Bc0040
Bc0040Bc0040
Bc0040
 
Pipeline
PipelinePipeline
Pipeline
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
ehhhhhhhhhhhhhhhhhhhhhhhhhjjjjjllaye.pptx
ehhhhhhhhhhhhhhhhhhhhhhhhhjjjjjllaye.pptxehhhhhhhhhhhhhhhhhhhhhhhhhjjjjjllaye.pptx
ehhhhhhhhhhhhhhhhhhhhhhhhhjjjjjllaye.pptx
 
Parallel computing and its applications
Parallel computing and its applicationsParallel computing and its applications
Parallel computing and its applications
 
Pipelining And Vector Processing
Pipelining And Vector ProcessingPipelining And Vector Processing
Pipelining And Vector Processing
 
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 processing
Parallel processingParallel processing
Parallel processing
 
pipelining ppt.pdf
pipelining ppt.pdfpipelining ppt.pdf
pipelining ppt.pdf
 
3.3
3.33.3
3.3
 
Reconfigurable computing
Reconfigurable computingReconfigurable computing
Reconfigurable computing
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Chapter 4 the processor
Chapter 4 the processorChapter 4 the processor
Chapter 4 the processor
 

More from Kamal Acharya

Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computer
Kamal Acharya
 
Computer Arithmetic
Computer ArithmeticComputer Arithmetic
Computer Arithmetic
Kamal Acharya
 
Introduction to Computer Security
Introduction to Computer SecurityIntroduction to Computer Security
Introduction to Computer Security
Kamal Acharya
 
Session and Cookies
Session and CookiesSession and Cookies
Session and Cookies
Kamal Acharya
 
Functions in php
Functions in phpFunctions in php
Functions in php
Kamal Acharya
 
Web forms in php
Web forms in phpWeb forms in php
Web forms in php
Kamal Acharya
 
Making decision and repeating in PHP
Making decision and repeating  in PHPMaking decision and repeating  in PHP
Making decision and repeating in PHP
Kamal Acharya
 
Working with arrays in php
Working with arrays in phpWorking with arrays in php
Working with arrays in php
Kamal Acharya
 
Text and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHPText and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHP
Kamal Acharya
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
Kamal Acharya
 
Capacity Planning of Data Warehousing
Capacity Planning of Data WarehousingCapacity Planning of Data Warehousing
Capacity Planning of Data Warehousing
Kamal Acharya
 
Data Warehousing
Data WarehousingData Warehousing
Data Warehousing
Kamal Acharya
 
Search Engines
Search EnginesSearch Engines
Search Engines
Kamal Acharya
 
Web Mining
Web MiningWeb Mining
Web Mining
Kamal Acharya
 
Information Privacy and Data Mining
Information Privacy and Data MiningInformation Privacy and Data Mining
Information Privacy and Data Mining
Kamal Acharya
 
Cluster Analysis
Cluster AnalysisCluster Analysis
Cluster Analysis
Kamal Acharya
 
Association Analysis in Data Mining
Association Analysis in Data MiningAssociation Analysis in Data Mining
Association Analysis in Data Mining
Kamal Acharya
 
Classification techniques in data mining
Classification techniques in data miningClassification techniques in data mining
Classification techniques in data mining
Kamal Acharya
 
Data Preprocessing
Data PreprocessingData Preprocessing
Data Preprocessing
Kamal Acharya
 
Introduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data WarehousingIntroduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data Warehousing
Kamal Acharya
 

More from Kamal Acharya (20)

Programming the basic computer
Programming the basic computerProgramming the basic computer
Programming the basic computer
 
Computer Arithmetic
Computer ArithmeticComputer Arithmetic
Computer Arithmetic
 
Introduction to Computer Security
Introduction to Computer SecurityIntroduction to Computer Security
Introduction to Computer Security
 
Session and Cookies
Session and CookiesSession and Cookies
Session and Cookies
 
Functions in php
Functions in phpFunctions in php
Functions in php
 
Web forms in php
Web forms in phpWeb forms in php
Web forms in php
 
Making decision and repeating in PHP
Making decision and repeating  in PHPMaking decision and repeating  in PHP
Making decision and repeating in PHP
 
Working with arrays in php
Working with arrays in phpWorking with arrays in php
Working with arrays in php
 
Text and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHPText and Numbers (Data Types)in PHP
Text and Numbers (Data Types)in PHP
 
Introduction to PHP
Introduction to PHPIntroduction to PHP
Introduction to PHP
 
Capacity Planning of Data Warehousing
Capacity Planning of Data WarehousingCapacity Planning of Data Warehousing
Capacity Planning of Data Warehousing
 
Data Warehousing
Data WarehousingData Warehousing
Data Warehousing
 
Search Engines
Search EnginesSearch Engines
Search Engines
 
Web Mining
Web MiningWeb Mining
Web Mining
 
Information Privacy and Data Mining
Information Privacy and Data MiningInformation Privacy and Data Mining
Information Privacy and Data Mining
 
Cluster Analysis
Cluster AnalysisCluster Analysis
Cluster Analysis
 
Association Analysis in Data Mining
Association Analysis in Data MiningAssociation Analysis in Data Mining
Association Analysis in Data Mining
 
Classification techniques in data mining
Classification techniques in data miningClassification techniques in data mining
Classification techniques in data mining
 
Data Preprocessing
Data PreprocessingData Preprocessing
Data Preprocessing
 
Introduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data WarehousingIntroduction to Data Mining and Data Warehousing
Introduction to Data Mining and Data Warehousing
 

Recently uploaded

Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 

Recently uploaded (20)

Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 

Pipelining and vector processing

  • 1.  Parallel Processing, Flynn’s Classification of Computers  Pipelining  Instruction Pipeline  Pipeline Hazards and their solution  Array and Vector Processing Pipelining and Vector Processing
  • 2. Parallel Processing  It refers to techniques that are used to provide simultaneous data processing.  The system may have two or more ALUs to be able to execute two or more instruction at the same time.  The system may have two or more processors operating concurrently.  It can be achieved by having multiple functional units that perform same or different operation simultaneously.
  • 3.
  • 4. Classification  There are variety of ways in which the parallel processing can be classified  Internal Organization of Processor  Interconnection structure between processors  Flow of information through system
  • 5.  M.J. Flynn classify the computer on the basis of number of instruction and data items processed simultaneously.  Single Instruction Stream, Single Data Stream(SISD)  Single Instruction Stream, Multiple Data Stream(SIMD)  Multiple Instruction Stream, Single Data Stream(MISD)  Multiple Instruction Stream, Multiple Data Stream(MIMD)
  • 6.  SISD represents the organization containing single control unit, a processor unit and a memory unit. Instruction are executed sequentially and system may or may not have internal parallel processing capabilities.  SIMD represents an organization that includes many processing units under the supervision of a common control unit.
  • 7.  MISD structure is of only theoretical interest since no practical system has been constructed using this organization.  MIMD organization refers to a computer system capable of processing several programs at the same time.
  • 8.  Flynn’s classification emphasize on the behavioral characteristics of the computer system rather than its operational and structural interconnections. One type of parallel processing that does not fit in the Flynn’s classification is Pipelining.  Parallel Processing can be discussed under following topics:  Pipeline Processing  Vector Processing  Array Processors
  • 9. Pipelining  It is a technique of decomposing a sequential process into sub operations, with each sub process being executed in a special dedicated segments that operates concurrently with all other segments.  Each segment performs partial processing dictated by the way task is partitioned.  The result obtained from each segment is transferred to next segment.  The final result is obtained when data have passed through all segments.
  • 10. Example  Suppose we have to perform the following task:  Each sub operation is to be performed in a segment within a pipeline. Each segment has one or two registers and a combinational circuit.
  • 11.  The sub operations in each segment of the pipeline are as follows:
  • 12.
  • 13.
  • 14. General Consideration  Let us consider the case where k segments pipeline with a clock cycle time tp is used to execute n tasks.  The first task T1 require time ktp to complete since there are k segments.  The remaining (n-1) tasks emerge from pipe at the rate one task per cycle. They will complete after time (n-1)tp.  So total time required is k+(n-1) clock cycles.  Calculate total cycles in previous example.
  • 15.  Now consider non pipeline unit that performs the same operation and takes time equal to tn to complete each task.  Total time required is ntn.  The speedup ration is given as:
  • 16.
  • 17. 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.
  • 18.  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.
  • 19.  The sub-operation performed in each segments are:  Compare the exponents  Align the mantissas  Add or subtract the mantissas  Normalize the result
  • 20.
  • 21. 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.
  • 22. Four Segment CPU Pipeline  FI segment fetches the instruction.  DA segment decodes the instruction and calculate the effective address.  FO segment fetches the operand.  EX segment executes the instruction.
  • 23.
  • 24.
  • 25.
  • 26. Handling Data Dependency  This problem can be solved in the following ways:  Hardware interlocks: It is the circuit that detects the conflict situation and delayed the instruction by sufficient cycles to resolve the conflict.  Operand Forwarding: It uses the special hardware to detect the conflict and avoid it by routing the data through the special path between pipeline segments.  Delayed Loads: The compiler detects the data conflict and reorder the instruction as necessary to delay the loading of the conflicting data by inserting no operation instruction.
  • 27. Handling of Branch Instruction  Pre fetch the target instruction.  Branch target buffer(BTB) included in the fetch segment of the pipeline  Branch Prediction  Delayed Branch
  • 28. RISC Pipeline  Simplicity of instruction set is utilized to implement an instruction pipeline using small number of sub- operation, with each being executed in single clock cycle.  Since all operation are performed in the register, there is no need of effective address calculation.
  • 29. Three Segment Instruction Pipeline  I: Instruction Fetch  A: ALU Operation  E: Execute Instruction
  • 31.
  • 32.
  • 33. Delayed Branch  Let us consider the program having the following 5 instructions
  • 34.
  • 35.
  • 36. Vector Processing  There is a class of computational problems that are beyond the capabilities of the conventional computer.  These are characterized by the fact that they require vast number of computation and it take a conventional computer days or even weeks to complete.  Computers with vector processing are able to handle such instruction and they have application in following fields:
  • 37.  Long range weather forecasting  Petroleum exploration  Seismic data analysis  Medical diagnosis  Aerodynamics and space simulation  Artificial Intelligence and expert system  Mapping the human genome  Image Processing
  • 38. Vector Operation  A vector V of length n is represented as row vector by  The element Vi of vector V is written as V(I) and the index I refers to a memory address or register where the number is stored.
  • 39.  Let us consider the program in assembly language that two vectors A and B of length 100 and put the result in vector C.
  • 40.  A computer capable of vector processing eliminates the overhead associated with the time it takes to fetch and execute the instructions in the program loop.  It allows operations to be specified with a single vector instruction of the form:
  • 41.
  • 42. Matrix Multiplication  Let us consider the multiplication of two 3*3 matrix A and B.
  • 43.  This requires three multiplication and(after initializing c11 to 0) three addition.  Total number of addition or multiplication required is 3*9.  In general inner product consists of the sum of k product terms of the form:
  • 44.  In typical application value of k may be 100 or even 1000.  The inner product calculation on a pipeline vector processor is shown below.  Floating point adder and multiplier are assumed to have four segments each.
  • 45.
  • 46.  The four partial sum are added to form the final sum
  • 48. Array Processor  An array processor is a processor that performs the computations on large arrays of data.  There are two different types of array processor:  Attached Array Processor  SIMD Array Processor
  • 49. Attached Array Processor  It is designed as a peripheral for a conventional host computer.  Its purpose is to enhance the performance of the computer by providing vector processing.  It achieves high performance by means of parallel processing with multiple functional units.
  • 50.
  • 51. SIMD Array Processor  It is processor which consists of multiple processing unit operating in parallel.  The processing units are synchronized to perform the same task under control of common control unit.  Each processor elements(PE) includes an ALU , a floating point arithmetic unit and working register.