SlideShare a Scribd company logo
By- Rudra Prasad Saha
   In computer science , control flow (or
    alternatively, flow of control) refers to the order
    in which the
    individual statements,instructions, or function
    calls of an imperative or
    a declarative program are executed or
    evaluated.
   Within an imperative programming
    language, a control flow statement is a
    statement whose execution results in a choice
    being made as to which of two or more paths
    should be followed. For non-strict functional
    languages, functions and language constructs
    exist to achieve the same result, but they are
    not necessarily called control flow statements.
   Instruction execution in a conventional
    computer is under program-flow control.
   Data is passed between instructions via
    references to shared memory cells.
   Flow of control is implicitly sequential, but
    special control operators can be used
    explicitly for parallelism.
   Program counter (PC) register is used to
    sequence the execution of instructions in a
    centralized control environment.
   Synchronous Computations are performed
    in control flow computers using centralized
    control.
Microprogram
     - Program stored in memory that generates all the control
       signals required to execute the instruction set correctly
     - Consists of microinstructions


Basic Elements of Processor
    •ALU
    •Registers
    •Internal data paths
    •External data paths
    •Control Unit
•Program Counter (PC)
   Holds address of next instruction to be fetched

•Memory Address Register (MAR)
   Connected to address bus
   Specifies address for read or write op

•Memory Buffer Register (MBR)
   Connected to data bus
   Holds data to write or last data read

•Instruction Register (IR)
   Holds last instruction fetched
•Address of next instruction is in PC
•Address (MAR) is placed on address bus
                t1:     MAR  (PC)
•Control unit issues READ command
•Result (data from memory) appears on
data bus
•Data from data bus copied into MBR
                t2:     MBR  (memory)
•PC incremented by 1 (in parallel with data
fetch from memory)
                        PC  (PC) +1          Fetch cycle
•Data (instruction) moved from MBR to IR
                 t3:    IR  (MBR)
•MBR is now free for further data fetches
1) THE SYSTEMATIZATION OF CONTROL
2) IMPROVEMENT IN PERFORMANCE
a) a high degree of parallelism in data paths e.g., multiple bit
microinstructions are
performed in one cycle
b) a high degree of decision logic (in table search and sorting routines)
3) COMPUTER-SERIES COMPATIBILITY
Compatibility of instruction sets between smaller and larger machines of a
series,
e.g., Intel286, 386, Pentium, IBM Systems/309x, Motorola 68000 series
4)Software support
Eases programing
   State the task to be performed.
   Devise a register-transfer description of the
    algorithm based on the processing section.
   Establish the design of the processing section by
    providing necessary control signals.
   Provide a block diagram of the controller section.
   Generate the state diagram of the controller
    section with different control state.
   Specify the characteristics of the hardware
    components to be used in the controller section.
   Give the complete design of the controller and
    draw a logic diagram of the final circuit.
 DATAPATH- perform
  data transfer and                       Control signals
  processing operation.
                                           Status signals
 Control Unit -
                     Control    Control
                                                            Datapath
                     inputs
  Determines the
  enabling and                                                         Data
  sequencing of the                       Control Data                 outputs

  operations
                                          outputs inputs

   The control unit receive
    the control inputs &
    generate control signals.
   Sequential – Execution of prog. statement as per
    sequence.

   Selection – A run-time choice of what to execute
    next depending on condition.

   Iteration – Repeating execution of a block of
    statements.
   Recursion –Repeatedly calling of a function or
    set of statements until no further call.
   When one
    statement occurs
    before another in
    the program, the
    first statement
    executes before
    the second,i.e as
    they appear on
    program.               Fig:sequential flow control
If there be any
condition on
execution of a
sequence of
statements, in a
program then the
control flows
depending on the
selection of the part
to be executed.
                        Fig: select max among 3 no(s)
When some block of
statements get
executed continuously
till the value of the
Loop Counter satisfies a
given condition which
controls the no of
repetition to be done, is
called Iteration.
Also known as Iterative
Loop or simply Loop.
If in a program a
function is defined
as such, so that it
will call itself until
further call does not
satisfy the condition
of recursive calling.
The function is
called Recursive
function.
•   In the control flow
    program representations
    the statement a= (b+1) *
    (b - c) is specified by a
    series of instructions
    with an explicit flow of
    control.
• Shared memory cells are the means by which data
  is passed between instructions. Data (operands)
  are referenced by their memory addresses
  (variables).
• In the traditional sequential control flow model
  (von Neumann) , there is a single thread of
  control which is passed from instructions to
  instructions.
• In control flow execution of instruction depends
  upon flow of control. But in data flow architecture
  instruction execution depends on availability of
  data token.
Flow control in computer

More Related Content

What's hot

Binary Search Tree in Data Structure
Binary Search Tree in Data StructureBinary Search Tree in Data Structure
Binary Search Tree in Data Structure
Dharita Chokshi
 
Function overloading(c++)
Function overloading(c++)Function overloading(c++)
Function overloading(c++)
Ritika Sharma
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithmsPiyush Rochwani
 
Sorting Algorithms
Sorting AlgorithmsSorting Algorithms
Sorting Algorithms
Pranay Neema
 
Control structure C++
Control structure C++Control structure C++
Control structure C++
Anil Kumar
 
Polish Notation In Data Structure
Polish Notation In Data StructurePolish Notation In Data Structure
Polish Notation In Data Structure
Meghaj Mallick
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cyclemyrajendra
 
Java(Polymorphism)
Java(Polymorphism)Java(Polymorphism)
Java(Polymorphism)
harsh kothari
 
Context switching
Context switchingContext switching
Context switching
DarakhshanNayyab
 
Distributed design alternatives
Distributed design alternativesDistributed design alternatives
Distributed design alternatives
Pooja Dixit
 
Production System in AI
Production System in AIProduction System in AI
Production System in AI
Bharat Bhushan
 
Binary search in data structure
Binary search in data structureBinary search in data structure
Binary search in data structure
Meherul1234
 
Stack Operation In Data Structure
Stack Operation In Data Structure Stack Operation In Data Structure
Stack Operation In Data Structure
DivyeshKumar Jagatiya
 
8 queen problem
8 queen problem8 queen problem
8 queen problem
NagajothiN1
 
Binary search tree
Binary search treeBinary search tree
Binary search tree
Kousalya M
 
queue & its applications
queue & its applicationsqueue & its applications
queue & its applications
somendra kumar
 
Graph coloring using backtracking
Graph coloring using backtrackingGraph coloring using backtracking
Graph coloring using backtracking
shashidharPapishetty
 
Topological Sort
Topological SortTopological Sort
Topological Sort
Dr Sandeep Kumar Poonia
 
BNF & EBNF
BNF & EBNFBNF & EBNF
BNF & EBNF
AshaniDickowita
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
Amey Kerkar
 

What's hot (20)

Binary Search Tree in Data Structure
Binary Search Tree in Data StructureBinary Search Tree in Data Structure
Binary Search Tree in Data Structure
 
Function overloading(c++)
Function overloading(c++)Function overloading(c++)
Function overloading(c++)
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Sorting Algorithms
Sorting AlgorithmsSorting Algorithms
Sorting Algorithms
 
Control structure C++
Control structure C++Control structure C++
Control structure C++
 
Polish Notation In Data Structure
Polish Notation In Data StructurePolish Notation In Data Structure
Polish Notation In Data Structure
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cycle
 
Java(Polymorphism)
Java(Polymorphism)Java(Polymorphism)
Java(Polymorphism)
 
Context switching
Context switchingContext switching
Context switching
 
Distributed design alternatives
Distributed design alternativesDistributed design alternatives
Distributed design alternatives
 
Production System in AI
Production System in AIProduction System in AI
Production System in AI
 
Binary search in data structure
Binary search in data structureBinary search in data structure
Binary search in data structure
 
Stack Operation In Data Structure
Stack Operation In Data Structure Stack Operation In Data Structure
Stack Operation In Data Structure
 
8 queen problem
8 queen problem8 queen problem
8 queen problem
 
Binary search tree
Binary search treeBinary search tree
Binary search tree
 
queue & its applications
queue & its applicationsqueue & its applications
queue & its applications
 
Graph coloring using backtracking
Graph coloring using backtrackingGraph coloring using backtracking
Graph coloring using backtracking
 
Topological Sort
Topological SortTopological Sort
Topological Sort
 
BNF & EBNF
BNF & EBNFBNF & EBNF
BNF & EBNF
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 

Viewers also liked

Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Controltameemyousaf
 
Flow Control
Flow ControlFlow Control
Flow Control
selvakumar_b1985
 
Flow of Control
Flow of ControlFlow of Control
Flow of Control
Praveen M Jigajinni
 
Flow control instructions
Flow control instructionsFlow control instructions
Flow control instructions
Prodip Ghosh
 
Flag control
Flag controlFlag control
Flag control
Robert Almazan
 
Oil and Gas Flow Solutions by Badger Meter
Oil and Gas Flow Solutions by Badger MeterOil and Gas Flow Solutions by Badger Meter
Oil and Gas Flow Solutions by Badger Meter
Thompson Equipment Company
 
Upstream vs Pipeline Flow Computer
Upstream vs Pipeline Flow ComputerUpstream vs Pipeline Flow Computer
Upstream vs Pipeline Flow Computer
Schneider Electric
 
Sycous - District Heating - Metering and Billing
Sycous - District Heating - Metering and Billing Sycous - District Heating - Metering and Billing
Sycous - District Heating - Metering and Billing
Sycous
 
Transport layer
Transport layerTransport layer
Transport layer
steffy1996
 
Flow Control (C#)
Flow Control (C#)Flow Control (C#)
Flow Control (C#)
Bhushan Mulmule
 
Problem solving strategies in mathematics and computer science
Problem solving strategies in mathematics and computer scienceProblem solving strategies in mathematics and computer science
Problem solving strategies in mathematics and computer science
UT, San Antonio
 
Flow control in c++
Flow control in c++Flow control in c++
Flow control in c++
Subhasis Nayak
 
Adoptive retransmission in TCP
Adoptive retransmission in TCPAdoptive retransmission in TCP
Adoptive retransmission in TCP
selvakumar_b1985
 
~Ns2~
~Ns2~~Ns2~
Computer network
Computer network Computer network
Computer network
Shreya Shah
 
Mobile computing-tcp data flow control
Mobile computing-tcp data flow controlMobile computing-tcp data flow control
Mobile computing-tcp data flow control
Sushant Kushwaha
 
7 tcp-congestion
7 tcp-congestion7 tcp-congestion
7 tcp-congestion
Olivier Bonaventure
 
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
Anu Bhatt
 
Logic, shift and rotate instruction
Logic, shift and rotate instructionLogic, shift and rotate instruction
Logic, shift and rotate instructionkashif Shafqat
 

Viewers also liked (20)

Flow of control ppt
Flow of control pptFlow of control ppt
Flow of control ppt
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Flow Control
Flow ControlFlow Control
Flow Control
 
Flow of Control
Flow of ControlFlow of Control
Flow of Control
 
Flow control instructions
Flow control instructionsFlow control instructions
Flow control instructions
 
Flag control
Flag controlFlag control
Flag control
 
Oil and Gas Flow Solutions by Badger Meter
Oil and Gas Flow Solutions by Badger MeterOil and Gas Flow Solutions by Badger Meter
Oil and Gas Flow Solutions by Badger Meter
 
Upstream vs Pipeline Flow Computer
Upstream vs Pipeline Flow ComputerUpstream vs Pipeline Flow Computer
Upstream vs Pipeline Flow Computer
 
Sycous - District Heating - Metering and Billing
Sycous - District Heating - Metering and Billing Sycous - District Heating - Metering and Billing
Sycous - District Heating - Metering and Billing
 
Transport layer
Transport layerTransport layer
Transport layer
 
Flow Control (C#)
Flow Control (C#)Flow Control (C#)
Flow Control (C#)
 
Problem solving strategies in mathematics and computer science
Problem solving strategies in mathematics and computer scienceProblem solving strategies in mathematics and computer science
Problem solving strategies in mathematics and computer science
 
Flow control in c++
Flow control in c++Flow control in c++
Flow control in c++
 
Adoptive retransmission in TCP
Adoptive retransmission in TCPAdoptive retransmission in TCP
Adoptive retransmission in TCP
 
~Ns2~
~Ns2~~Ns2~
~Ns2~
 
Computer network
Computer network Computer network
Computer network
 
Mobile computing-tcp data flow control
Mobile computing-tcp data flow controlMobile computing-tcp data flow control
Mobile computing-tcp data flow control
 
7 tcp-congestion
7 tcp-congestion7 tcp-congestion
7 tcp-congestion
 
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
NUMERICAL & STATISTICAL METHODS FOR COMPUTER ENGINEERING
 
Logic, shift and rotate instruction
Logic, shift and rotate instructionLogic, shift and rotate instruction
Logic, shift and rotate instruction
 

Similar to Flow control in computer

Module3 part1
Module3 part1Module3 part1
Module3 part1
Anuradha Shenoy
 
Thesis1 3-23
Thesis1 3-23Thesis1 3-23
Thesis1 3-23
Hemant Dhoot
 
Control of Switching.pdf
Control of Switching.pdfControl of Switching.pdf
Control of Switching.pdf
sujanshrestha884
 
Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control Unit
Kamal Acharya
 
4876238.ppt
4876238.ppt4876238.ppt
4876238.ppt
RohitPaul71
 
03. top level view of computer function & interconnection
03. top level view of computer function & interconnection03. top level view of computer function & interconnection
03. top level view of computer function & interconnection
noman yasin
 
program flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architectureprogram flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architecture
Pankaj Kumar Jain
 
Unit 2
Unit 2Unit 2
Unit 2
Unit 2Unit 2
Control unit design
Control unit designControl unit design
Control unit design
Dhaval Bagal
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
Sanjeev Patel
 
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
Shashank Singh
 
Microarchitecture
MicroarchitectureMicroarchitecture
Microarchitecturemeashi
 
Chapter 3 caal (1)
Chapter 3 caal (1)Chapter 3 caal (1)
Chapter 3 caal (1)
talhashahid40
 
presentation on SCB,DEBUG,RESET of Arm Cortex processor
presentation on SCB,DEBUG,RESET of Arm Cortex processorpresentation on SCB,DEBUG,RESET of Arm Cortex processor
presentation on SCB,DEBUG,RESET of Arm Cortex processor
ರೇಣುಕ ಭುವನ್
 
Control unit
Control  unitControl  unit
Control unit
Sameer Patil
 
Report in SAD
Report in SADReport in SAD
Report in SADjesseledm
 
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdfnotes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
SatyamMishra828076
 

Similar to Flow control in computer (20)

Module3 part1
Module3 part1Module3 part1
Module3 part1
 
Thesis1 3-23
Thesis1 3-23Thesis1 3-23
Thesis1 3-23
 
Control of Switching.pdf
Control of Switching.pdfControl of Switching.pdf
Control of Switching.pdf
 
Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control Unit
 
4876238.ppt
4876238.ppt4876238.ppt
4876238.ppt
 
3.3
3.33.3
3.3
 
03. top level view of computer function & interconnection
03. top level view of computer function & interconnection03. top level view of computer function & interconnection
03. top level view of computer function & interconnection
 
program flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architectureprogram flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architecture
 
Unit 2
Unit 2Unit 2
Unit 2
 
Unit 2
Unit 2Unit 2
Unit 2
 
Control unit design
Control unit designControl unit design
Control unit design
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
 
Microarchitecture
MicroarchitectureMicroarchitecture
Microarchitecture
 
Chapter 3 caal (1)
Chapter 3 caal (1)Chapter 3 caal (1)
Chapter 3 caal (1)
 
presentation on SCB,DEBUG,RESET of Arm Cortex processor
presentation on SCB,DEBUG,RESET of Arm Cortex processorpresentation on SCB,DEBUG,RESET of Arm Cortex processor
presentation on SCB,DEBUG,RESET of Arm Cortex processor
 
Control unit
Control  unitControl  unit
Control unit
 
Report in SAD
Report in SADReport in SAD
Report in SAD
 
Bc0040
Bc0040Bc0040
Bc0040
 
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdfnotes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
notes_Lecture-8 (Computer Architecture) 3rd Semester 2k11 (1).pdf
 

Recently uploaded

FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 

Flow control in computer

  • 2. In computer science , control flow (or alternatively, flow of control) refers to the order in which the individual statements,instructions, or function calls of an imperative or a declarative program are executed or evaluated.  Within an imperative programming language, a control flow statement is a statement whose execution results in a choice being made as to which of two or more paths should be followed. For non-strict functional languages, functions and language constructs exist to achieve the same result, but they are not necessarily called control flow statements.
  • 3. Instruction execution in a conventional computer is under program-flow control.  Data is passed between instructions via references to shared memory cells.  Flow of control is implicitly sequential, but special control operators can be used explicitly for parallelism.  Program counter (PC) register is used to sequence the execution of instructions in a centralized control environment.  Synchronous Computations are performed in control flow computers using centralized control.
  • 4. Microprogram - Program stored in memory that generates all the control signals required to execute the instruction set correctly - Consists of microinstructions Basic Elements of Processor •ALU •Registers •Internal data paths •External data paths •Control Unit
  • 5.
  • 6. •Program Counter (PC) Holds address of next instruction to be fetched •Memory Address Register (MAR) Connected to address bus Specifies address for read or write op •Memory Buffer Register (MBR) Connected to data bus Holds data to write or last data read •Instruction Register (IR) Holds last instruction fetched
  • 7. •Address of next instruction is in PC •Address (MAR) is placed on address bus t1: MAR  (PC) •Control unit issues READ command •Result (data from memory) appears on data bus •Data from data bus copied into MBR t2: MBR  (memory) •PC incremented by 1 (in parallel with data fetch from memory) PC  (PC) +1 Fetch cycle •Data (instruction) moved from MBR to IR t3: IR  (MBR) •MBR is now free for further data fetches
  • 8. 1) THE SYSTEMATIZATION OF CONTROL 2) IMPROVEMENT IN PERFORMANCE a) a high degree of parallelism in data paths e.g., multiple bit microinstructions are performed in one cycle b) a high degree of decision logic (in table search and sorting routines) 3) COMPUTER-SERIES COMPATIBILITY Compatibility of instruction sets between smaller and larger machines of a series, e.g., Intel286, 386, Pentium, IBM Systems/309x, Motorola 68000 series 4)Software support Eases programing
  • 9. State the task to be performed.  Devise a register-transfer description of the algorithm based on the processing section.  Establish the design of the processing section by providing necessary control signals.  Provide a block diagram of the controller section.  Generate the state diagram of the controller section with different control state.  Specify the characteristics of the hardware components to be used in the controller section.  Give the complete design of the controller and draw a logic diagram of the final circuit.
  • 10.  DATAPATH- perform data transfer and Control signals processing operation. Status signals  Control Unit - Control Control Datapath inputs Determines the enabling and Data sequencing of the Control Data outputs operations outputs inputs  The control unit receive the control inputs & generate control signals.
  • 11.
  • 12.
  • 13. Sequential – Execution of prog. statement as per sequence.  Selection – A run-time choice of what to execute next depending on condition.  Iteration – Repeating execution of a block of statements.  Recursion –Repeatedly calling of a function or set of statements until no further call.
  • 14. When one statement occurs before another in the program, the first statement executes before the second,i.e as they appear on program.  Fig:sequential flow control
  • 15. If there be any condition on execution of a sequence of statements, in a program then the control flows depending on the selection of the part to be executed. Fig: select max among 3 no(s)
  • 16. When some block of statements get executed continuously till the value of the Loop Counter satisfies a given condition which controls the no of repetition to be done, is called Iteration. Also known as Iterative Loop or simply Loop.
  • 17. If in a program a function is defined as such, so that it will call itself until further call does not satisfy the condition of recursive calling. The function is called Recursive function.
  • 18. In the control flow program representations the statement a= (b+1) * (b - c) is specified by a series of instructions with an explicit flow of control.
  • 19. • Shared memory cells are the means by which data is passed between instructions. Data (operands) are referenced by their memory addresses (variables). • In the traditional sequential control flow model (von Neumann) , there is a single thread of control which is passed from instructions to instructions. • In control flow execution of instruction depends upon flow of control. But in data flow architecture instruction execution depends on availability of data token.