SlideShare una empresa de Scribd logo
1 de 22
Seminar on
Sequential, Pipeline concept with state
diagram and Parallel processing
Presented by
H M Shahriar Parvez
Master of Computer Science
University of Malaya
Moderator: Dr. Shivakumara Palaiahnakote
1
Sequential Processing
• Sequential processing is a term used to describe the processing that
occurs in the order that it is received.
• Why we mention von Neumann architecture?
• Although many enhancements have been made over the years to the
original idea, almost every processor available today is descended
from — and owes much of its architecture to — the original von
Neumann architecture
• The von Neumann architecture, also known as the Princeton
architecture because John von Neumann was a researcher at
Princeton University’s Institute for Advanced Studies
2
Sequential Processing: von Neumann
architecture
3
Sequential Processing: Harvard architecture vs
Princeton architecture
It aims to avoid the “von
Neumann bottleneck”
(the single
path to memory for
accessing both
instructions and data) +
Cache
4
•Are we satisfied enough with the CPU
Performance ?
5
Pipeline
• Is a technique used to improve the execution throughput of a CPU by
using the processor resources in order to maximize the CPU
performance.
• 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.
6
Building a Car- Unpipelined
On Road
24 hours
24 hours
24 hours
Throughput= 1 car/24 hours
Jobs
Time 7
Pipelined Model- Break the jobs into smaller
stages
A B C
A B C
A B C
8 hours
Engine
Jobs
Body Paint
Throughput= 1 car/8 hoursTime
8
Why pipelining
• When machine process one instruction at a time (fetching), the ALU
remains lazy.
• Until one instruction is not finished to pass the three stages of
processing instruction: Fetch-Decode-Execution, CPU does not take
another instruction to execute.
• The goal is to keep all of these component as busy as possible.
• A pipelined processor will start fetching the next instruction from
memory as soon as it has latched the current instruction in the
instruction register.
9
Advantages/Disadvantages
Advantages:
• More efficient use of processor
• Quicker time of execution of large number of instructions
Disadvantages:
• Design difficulties and high cost.
• In pipeline processor, insertion of flip-flops between
modules increase the instruction latency.
• Inability to continuously run the pipeline at full speed
because of pipeline hazards which disrupt the smooth
execution of the pipeline.
10
From Non-Linear Pipeline to
State Diagram
11
Non-Linear Pipeline
Consider the following nonlinear pipeline-
12
Step1- Reservation Table
• The reservation table for this pipeline is :
t0 t1 t2 t3 t4 t5
Stage 1 X
Stage-2 X X X
Stage-3 X X
Collision
Stage
From this reservation table
Forbidden latencies are
(0,1,3,4)
13
Step2- Collision Vector (CV)
C5 C4 C3 C2 C1 C0
• Collision Vector C= 0 1 1 0 1 1 *Forbidden latency represents 1
Allowable latency represents 0
Here, Allowable latency (2,5)
for allowable latency, i =2
Shifting the bits two places right yields – 000110
Logically OR ing the value with Initial CV gives - 0 1 1 0 1 1
0 0 0 1 1 0
0 1 1 1 1 1 (A new state )
14
Step 2- Collision Vector (Contd.)
Similarly for i =5 or greater,
Logically shifting 5 bits to right yields – 000000
OR ing with the initial CV will only give the same state
i.e 011011
OR 000000
011011 (Same initial State)
15
Step 3- State Diagram
• Based on the calculation , the desire state diagram is :
Minimum Average Latency
MAL= (2+5)/2
= 3.5
16
Parallel Processing System
• The sequential execution is an
approach that forms the basis of
the von Neumann machine cycle is
very simple and very effective, but
the major disadvantages of it are :
• it does not make very efficient use of
the hardware.
• Executing a single machine
instruction requires several steps:
fetch the instruction from memory,
decode it, retrieve its operands,
perform the operation it specifies,
and store its result.
• It consume/take more time to
execute one operation
• In pipeline, single
job/instructions/operations is split
into many in order to increase the
speed. But it is major
disadvantages are:
• There are implementation problems
• Design difficulty and cost, the design
of a non-pipelined processor simpler
and cheaper to manufacture
• In pipelined processor, insertion of
flip flops between modules increases
the instruction latency
• Still the speed is not optimal and
increasing the speed is also another
issue
Sequential processing Pipeline
17
Parallel Processing System
• Parallel processing systems a Systems which include more than one
processor is considered to be parallel systems.
• Here the term is not used in its strict geometrical sense (coplanar lines that
do not intersect), but rather to describe two or more pieces of hardware that
work together, being simultaneously engaged in the same (or related) tasks.
• They are parallel in the sense of being independent but going in the same
direction.
• Perhaps a more accurate description of such a system would be concurrent
or cooperative processing, but the use of the term parallel processing is
long established and unlikely to change.
• parallel processing differs from multitasking, in which a single CPU
executes several programs at once.
• Parallel systems deal with the simultaneous use of multiple computer
resources that can include a single computer with multiple processors, a
number of computers connected by a network to form a parallel processing
cluster or a combination of both.
18
Parallel Processing System
• The simultaneous use of more than one CPU to execute a program.
• Ideally, parallel processing makes a program run faster because there are more
engines (CPUs) running it.
• Parallel Processing Systems are designed to speed up the execution of programs by
dividing the program into multiple fragments and processing these fragments
simultaneously.
• Such systems are multiprocessor systems also known as tightly coupled systems.
• Most computers have just one CPU, but some models have several. There are even
computers with thousands of CPUs.
• With single-CPU computers, it is possible to perform parallel processing by
connecting the computers in a network.
• In practice, it is often difficult to divide a program in such a way that separate
CPUs can execute different portions without interfering with each other.
• However, this type of parallel processing requires very sophisticated software
called distributed processing software.
19
Multiple Processor Organization
• Set of processors
• Simultaneously execute different
instruction sequences
• Different sets of data
• SMPs, clusters and NUMA
Multiple instruction, multiple data stream- MIMD
20
Taxonomy of Parallel Processor Architectures
21
Thank you for listening
Any Question
22

Más contenido relacionado

La actualidad más candente

Linker and Loader Explained
Linker and Loader  ExplainedLinker and Loader  Explained
Linker and Loader ExplainedAdarsh Kr Sinha
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Mukesh Chinta
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.Ravi Kumar Patel
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management SystemJanki Shah
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts pptRajendraPrasad Alladi
 
Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time schedulingKamal Acharya
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMSkoolkampus
 
Software Engineering (Project Scheduling)
Software Engineering (Project Scheduling)Software Engineering (Project Scheduling)
Software Engineering (Project Scheduling)ShudipPal
 
Administering security
Administering securityAdministering security
Administering securityG Prachi
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentationusmankiyani1
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 
LINUX:Control statements in shell programming
LINUX:Control statements in shell programmingLINUX:Control statements in shell programming
LINUX:Control statements in shell programmingbhatvijetha
 

La actualidad más candente (20)

SYNCHRONIZATION
SYNCHRONIZATIONSYNCHRONIZATION
SYNCHRONIZATION
 
Linker and Loader Explained
Linker and Loader  ExplainedLinker and Loader  Explained
Linker and Loader Explained
 
Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)Process scheduling (CPU Scheduling)
Process scheduling (CPU Scheduling)
 
Cpu scheduling in operating System.
Cpu scheduling in operating System.Cpu scheduling in operating System.
Cpu scheduling in operating System.
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
 
Demand paging
Demand pagingDemand paging
Demand paging
 
Rtos Concepts
Rtos ConceptsRtos Concepts
Rtos Concepts
 
Approaches to real time scheduling
Approaches to real time schedulingApproaches to real time scheduling
Approaches to real time scheduling
 
Context switching
Context switchingContext switching
Context switching
 
Scheduling
SchedulingScheduling
Scheduling
 
15. Transactions in DBMS
15. Transactions in DBMS15. Transactions in DBMS
15. Transactions in DBMS
 
Software Engineering (Project Scheduling)
Software Engineering (Project Scheduling)Software Engineering (Project Scheduling)
Software Engineering (Project Scheduling)
 
Administering security
Administering securityAdministering security
Administering security
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
serializability in dbms
serializability in dbmsserializability in dbms
serializability in dbms
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 
LINUX:Control statements in shell programming
LINUX:Control statements in shell programmingLINUX:Control statements in shell programming
LINUX:Control statements in shell programming
 
Operating System Scheduling Algorithms
Operating System Scheduling AlgorithmsOperating System Scheduling Algorithms
Operating System Scheduling Algorithms
 

Destacado

central processing unit and pipeline
central processing unit and pipelinecentral processing unit and pipeline
central processing unit and pipelineRai University
 
Central processing unit
Central processing unitCentral processing unit
Central processing unitKumar
 
Three Central Processing Unit
Three   Central Processing UnitThree   Central Processing Unit
Three Central Processing UnitMISY
 
Central processing unit
Central processing unitCentral processing unit
Central processing unitjyoti_lakhani
 
Decoder for digital electronics
Decoder for digital electronicsDecoder for digital electronics
Decoder for digital electronicsIIT, KANPUR INDIA
 
Central processing unit
Central processing unitCentral processing unit
Central processing unitKamal Acharya
 
The central processing unit by group 5 2015
The central processing unit by group 5 2015The central processing unit by group 5 2015
The central processing unit by group 5 2015Tendai Karuma
 
08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)Akhila Dakshina
 

Destacado (11)

central processing unit and pipeline
central processing unit and pipelinecentral processing unit and pipeline
central processing unit and pipeline
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Cpu
CpuCpu
Cpu
 
Three Central Processing Unit
Three   Central Processing UnitThree   Central Processing Unit
Three Central Processing Unit
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Decoder for digital electronics
Decoder for digital electronicsDecoder for digital electronics
Decoder for digital electronics
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Cpu
CpuCpu
Cpu
 
The central processing unit by group 5 2015
The central processing unit by group 5 2015The central processing unit by group 5 2015
The central processing unit by group 5 2015
 
08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)08. Central Processing Unit (CPU)
08. Central Processing Unit (CPU)
 
CO Module 5
CO Module 5CO Module 5
CO Module 5
 

Similar a Computer Architecture

Von Neumann Architecture microcontroller.pptx
Von Neumann Architecture microcontroller.pptxVon Neumann Architecture microcontroller.pptx
Von Neumann Architecture microcontroller.pptxSUNILNYATI2
 
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptxParallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptxSumalatha A
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.pptshreesha16
 
Insider operating system
Insider   operating systemInsider   operating system
Insider operating systemAditi Saxena
 
cs1311lecture25wdl.ppt
cs1311lecture25wdl.pptcs1311lecture25wdl.ppt
cs1311lecture25wdl.pptFannyBellows
 
Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System AchitectureYashiUpadhyay3
 
Operating System Components.pptx
Operating System Components.pptxOperating System Components.pptx
Operating System Components.pptxpkavithascs
 
Chip Multithreading Systems Need a New Operating System Scheduler
Chip Multithreading Systems Need a New Operating System Scheduler Chip Multithreading Systems Need a New Operating System Scheduler
Chip Multithreading Systems Need a New Operating System Scheduler Sarwan ali
 
Operating system 20 threads
Operating system 20 threadsOperating system 20 threads
Operating system 20 threadsVaibhav Khanna
 
Pipeline Mechanism
Pipeline MechanismPipeline Mechanism
Pipeline MechanismAshik Iqbal
 
Evolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxEvolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxssuser000e54
 
CSA unit5.pptx
CSA unit5.pptxCSA unit5.pptx
CSA unit5.pptxAbcvDef
 
PROCESS.pptx
PROCESS.pptxPROCESS.pptx
PROCESS.pptxDivyaKS18
 
Parallel Computing
Parallel ComputingParallel Computing
Parallel ComputingMohsin Bhat
 
pipelining-190913185902.pptx
pipelining-190913185902.pptxpipelining-190913185902.pptx
pipelining-190913185902.pptxAshokRachapalli1
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecturejeetesh036
 

Similar a Computer Architecture (20)

Von Neumann Architecture microcontroller.pptx
Von Neumann Architecture microcontroller.pptxVon Neumann Architecture microcontroller.pptx
Von Neumann Architecture microcontroller.pptx
 
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptxParallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
Parallel Processing & Pipelining in Computer Architecture_Prof.Sumalatha.pptx
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.ppt
 
Insider operating system
Insider   operating systemInsider   operating system
Insider operating system
 
Platform Technology (2).pdf
Platform Technology (2).pdfPlatform Technology (2).pdf
Platform Technology (2).pdf
 
COA Unit-5.pptx
COA Unit-5.pptxCOA Unit-5.pptx
COA Unit-5.pptx
 
cs1311lecture25wdl.ppt
cs1311lecture25wdl.pptcs1311lecture25wdl.ppt
cs1311lecture25wdl.ppt
 
Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System Achitecture
 
Operating System Components.pptx
Operating System Components.pptxOperating System Components.pptx
Operating System Components.pptx
 
Chip Multithreading Systems Need a New Operating System Scheduler
Chip Multithreading Systems Need a New Operating System Scheduler Chip Multithreading Systems Need a New Operating System Scheduler
Chip Multithreading Systems Need a New Operating System Scheduler
 
Operating system 20 threads
Operating system 20 threadsOperating system 20 threads
Operating system 20 threads
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
unit 4.pptx
unit 4.pptxunit 4.pptx
unit 4.pptx
 
Pipeline Mechanism
Pipeline MechanismPipeline Mechanism
Pipeline Mechanism
 
Evolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptxEvolution, Strutcture and Operations.pptx
Evolution, Strutcture and Operations.pptx
 
CSA unit5.pptx
CSA unit5.pptxCSA unit5.pptx
CSA unit5.pptx
 
PROCESS.pptx
PROCESS.pptxPROCESS.pptx
PROCESS.pptx
 
Parallel Computing
Parallel ComputingParallel Computing
Parallel Computing
 
pipelining-190913185902.pptx
pipelining-190913185902.pptxpipelining-190913185902.pptx
pipelining-190913185902.pptx
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 

Más de Shahriar Parvez

Más de Shahriar Parvez (8)

Virtual Reality and its impact
Virtual Reality and its impactVirtual Reality and its impact
Virtual Reality and its impact
 
Smart City
Smart City Smart City
Smart City
 
Healthbd24
Healthbd24Healthbd24
Healthbd24
 
CSE Orientation
CSE Orientation CSE Orientation
CSE Orientation
 
Scope Definition of Online Ticketing System
Scope Definition of Online Ticketing SystemScope Definition of Online Ticketing System
Scope Definition of Online Ticketing System
 
System Design of Online Ticketing System
System Design of Online Ticketing SystemSystem Design of Online Ticketing System
System Design of Online Ticketing System
 
Jaago Foundation
Jaago FoundationJaago Foundation
Jaago Foundation
 
ULAB club day
ULAB club dayULAB club day
ULAB club day
 

Último

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Último (20)

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Computer Architecture

  • 1. Seminar on Sequential, Pipeline concept with state diagram and Parallel processing Presented by H M Shahriar Parvez Master of Computer Science University of Malaya Moderator: Dr. Shivakumara Palaiahnakote 1
  • 2. Sequential Processing • Sequential processing is a term used to describe the processing that occurs in the order that it is received. • Why we mention von Neumann architecture? • Although many enhancements have been made over the years to the original idea, almost every processor available today is descended from — and owes much of its architecture to — the original von Neumann architecture • The von Neumann architecture, also known as the Princeton architecture because John von Neumann was a researcher at Princeton University’s Institute for Advanced Studies 2
  • 3. Sequential Processing: von Neumann architecture 3
  • 4. Sequential Processing: Harvard architecture vs Princeton architecture It aims to avoid the “von Neumann bottleneck” (the single path to memory for accessing both instructions and data) + Cache 4
  • 5. •Are we satisfied enough with the CPU Performance ? 5
  • 6. Pipeline • Is a technique used to improve the execution throughput of a CPU by using the processor resources in order to maximize the CPU performance. • 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. 6
  • 7. Building a Car- Unpipelined On Road 24 hours 24 hours 24 hours Throughput= 1 car/24 hours Jobs Time 7
  • 8. Pipelined Model- Break the jobs into smaller stages A B C A B C A B C 8 hours Engine Jobs Body Paint Throughput= 1 car/8 hoursTime 8
  • 9. Why pipelining • When machine process one instruction at a time (fetching), the ALU remains lazy. • Until one instruction is not finished to pass the three stages of processing instruction: Fetch-Decode-Execution, CPU does not take another instruction to execute. • The goal is to keep all of these component as busy as possible. • A pipelined processor will start fetching the next instruction from memory as soon as it has latched the current instruction in the instruction register. 9
  • 10. Advantages/Disadvantages Advantages: • More efficient use of processor • Quicker time of execution of large number of instructions Disadvantages: • Design difficulties and high cost. • In pipeline processor, insertion of flip-flops between modules increase the instruction latency. • Inability to continuously run the pipeline at full speed because of pipeline hazards which disrupt the smooth execution of the pipeline. 10
  • 11. From Non-Linear Pipeline to State Diagram 11
  • 12. Non-Linear Pipeline Consider the following nonlinear pipeline- 12
  • 13. Step1- Reservation Table • The reservation table for this pipeline is : t0 t1 t2 t3 t4 t5 Stage 1 X Stage-2 X X X Stage-3 X X Collision Stage From this reservation table Forbidden latencies are (0,1,3,4) 13
  • 14. Step2- Collision Vector (CV) C5 C4 C3 C2 C1 C0 • Collision Vector C= 0 1 1 0 1 1 *Forbidden latency represents 1 Allowable latency represents 0 Here, Allowable latency (2,5) for allowable latency, i =2 Shifting the bits two places right yields – 000110 Logically OR ing the value with Initial CV gives - 0 1 1 0 1 1 0 0 0 1 1 0 0 1 1 1 1 1 (A new state ) 14
  • 15. Step 2- Collision Vector (Contd.) Similarly for i =5 or greater, Logically shifting 5 bits to right yields – 000000 OR ing with the initial CV will only give the same state i.e 011011 OR 000000 011011 (Same initial State) 15
  • 16. Step 3- State Diagram • Based on the calculation , the desire state diagram is : Minimum Average Latency MAL= (2+5)/2 = 3.5 16
  • 17. Parallel Processing System • The sequential execution is an approach that forms the basis of the von Neumann machine cycle is very simple and very effective, but the major disadvantages of it are : • it does not make very efficient use of the hardware. • Executing a single machine instruction requires several steps: fetch the instruction from memory, decode it, retrieve its operands, perform the operation it specifies, and store its result. • It consume/take more time to execute one operation • In pipeline, single job/instructions/operations is split into many in order to increase the speed. But it is major disadvantages are: • There are implementation problems • Design difficulty and cost, the design of a non-pipelined processor simpler and cheaper to manufacture • In pipelined processor, insertion of flip flops between modules increases the instruction latency • Still the speed is not optimal and increasing the speed is also another issue Sequential processing Pipeline 17
  • 18. Parallel Processing System • Parallel processing systems a Systems which include more than one processor is considered to be parallel systems. • Here the term is not used in its strict geometrical sense (coplanar lines that do not intersect), but rather to describe two or more pieces of hardware that work together, being simultaneously engaged in the same (or related) tasks. • They are parallel in the sense of being independent but going in the same direction. • Perhaps a more accurate description of such a system would be concurrent or cooperative processing, but the use of the term parallel processing is long established and unlikely to change. • parallel processing differs from multitasking, in which a single CPU executes several programs at once. • Parallel systems deal with the simultaneous use of multiple computer resources that can include a single computer with multiple processors, a number of computers connected by a network to form a parallel processing cluster or a combination of both. 18
  • 19. Parallel Processing System • The simultaneous use of more than one CPU to execute a program. • Ideally, parallel processing makes a program run faster because there are more engines (CPUs) running it. • Parallel Processing Systems are designed to speed up the execution of programs by dividing the program into multiple fragments and processing these fragments simultaneously. • Such systems are multiprocessor systems also known as tightly coupled systems. • Most computers have just one CPU, but some models have several. There are even computers with thousands of CPUs. • With single-CPU computers, it is possible to perform parallel processing by connecting the computers in a network. • In practice, it is often difficult to divide a program in such a way that separate CPUs can execute different portions without interfering with each other. • However, this type of parallel processing requires very sophisticated software called distributed processing software. 19
  • 20. Multiple Processor Organization • Set of processors • Simultaneously execute different instruction sequences • Different sets of data • SMPs, clusters and NUMA Multiple instruction, multiple data stream- MIMD 20
  • 21. Taxonomy of Parallel Processor Architectures 21
  • 22. Thank you for listening Any Question 22