SlideShare a Scribd company logo
1 of 59
Download to read offline
Computational Models
In Embedded Design
1
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
• Data Flow Graph/Diagram (DFG) Model
• Control Data Flow Graph/Diagram (CDFG)
Model
• State Machine Model
• Sequential Program Model
• Concurrent/Communicating Process Model
• Object Oriented Model
Definition: a model is a formal system consisting of objects & composition rules.
It is hard to make a decision on which model should be followed in particular
system design.
Most often designers switch between variety of models from requirement
specification to implementation.
2
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Data Flow Graph/Diagram (DFG)
Model
• Translates the data processing requirements into a data
flow graph.
• It is data driven model in which program execution is
determined by data.
• It emphasizes on data and operation on data which
transform the input data to output data.
• It is visual model in which operation on data(Process) is
represented using a block(Circle) and data flow is
represented by arrows(inward arrow => i/p to process
and outward arrow=> o/p of process)
3
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Data Flow Graph/Diagram (DFG)
Model cont…
• Embedded application which are computational intensive &
data driven are modeled using DFG Eg.: DSP
• For example suppose computation x = a + b & y = x - c needs
to be carried out, then
4
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
• Acyclic DFG: doesn’t contain
multiple values for i/p variables
and multiple values for o/p
variables.
Control Data Flow Graph (CDFG)
Model
• Is used for applications involving control
program execution.
• Contains both data operation and control
operation.
Data nodes-> elements
control nodes-> decision makers
• For example, if Flag=1, x=a+b else y=a-b. This
requires decision making
5
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
6
Control node is represented by a Diamond
Block
X
y
State Machine Model
• Used for modeling reactive or event-driven embedded
systems, whose behavior are dependent on state
transistions.
• State machine model describes the system behavior
with ‘State’, ‘Event’, ‘Action’ & ‘Transistion’.
State -> representation of current situation.
Event -> i/p to state, acts as stimuli for state transistion.
Action ->activity to be performed by state machine.
Transistion -> movement from one state to another.
7
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
State Machine Model cont.
Example-1: SEAT BELT WARNING SYSTEM
Requirements:
1. When vehicle ignition is turned ON & seat belt is
not fastened within 10 secs of Ignition ON, the
system generates an alarm signal for 5 secs.
2. The alarm is turned OFF when the seat belt is
fastened / alarm time expires / the ignition is
off== whichever happens first.
8
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
SEAT BELT WARNING SYSTEM:
Events:
‘Ignition_Key_ON’
‘Ignition_Key_OFF’,
‘Time Expire’,
‘Alarm Time Expire’ and
‘Seat_Belt_ON’.
States:
‘Alarm_OFF’,
‘Waiting’, and
’Alarm_ON’.
9
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
10
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
11
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
12
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
13
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
14
SEAT BELT WARNING SYSTEM: cont..
The timer used in Seat Belt Warning System can also be
modeled as a Finite State Machine
States: ‘Idle’,
‘Ready’, and
’Running’.
Events: ‘Load Timer’
‘Start Timer’,
‘Stop Timer’ and
‘Timer Expire’
15
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
16
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
17
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
18
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
19
State Machine Model cont.
Example-2: Automatic Tea/Coffee vending
Machine
Requirements:
1. Tea/Coffee vending machine is initiated by
user by inserting 5 Rs. Coin.
2. After inserting Coin, user can select either
coffee /tea / press cancel order and take back
the coin.
20
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Automatic Tea/Coffee vending Machine:
Events:
‘Insert Coin’
‘Tea Button Pressed’,
‘Coffee Button Pressed’,
‘Cancel Button Pressed’,
‘Coffee Dispensed’ and
‘Tea Dispensed’
States:
A= ‘OFF/wait for coin’,
B= ‘wait for user i/p’,
C= ’Dispense Tea’ and
D= ’Dispense Coffee’.
21
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Automatic Tea/Coffee vending Machine:
22
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
23
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
24
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
25
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
26
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
27
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
28
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
29
State Machine Model cont.
Example-3: Coin Operated Public Telephone Unit
Requirements:
1. Call is initiated by lifting the receiver.
2. After lifting user needs to insert 1 Rs. Coin
3. If line is busy, coin is returned on placing the receiver back.
4. If line is through/free user is allowed to talk for 60 secs & at the end of
45th sec prompt for inserting another if want to continue call.
5. If doesn’t insert coin, call is terminated after completing 60 secs .
6. The system is ready to take up new call when receiver is placed back on
hook.
7. The system goes Out of order state when there is line fault.
30
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Coin Operated Public Telephone Unit :
Events:
‘Rceiver lifted’
‘Coin inserted’,
‘Valid Number’,
’Line available’,
’Line busy’,
‘Time out’,
‘Place Receiver’,
‘Invalid Number’,
‘Line fault’ and
‘Line OK’
States:
A= ‘Ready’,
B=‘wait for coin’,
C=‘wait for number’,
D=’Dialing’
E=’Call in Progress’
F=’Call Terminated’
G=’Unable to make call’
H=’Invalid Number’ and
I=’Out of Order’.
31
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Coin Operated Public Telephone Unit :
32
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
33
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
34
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
35
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
36
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
37
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
38
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
39
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
40
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
41
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
42
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
43
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
44
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
45
Sequential Program Model
• The functions or processing requirements are executed in
sequence.
• Program instructions are iterated and executed
conditionally and data gets transformed through a series of
operations.
• FSMs are good choice for sequential Program modeling.
• Flow charts are also good tool for modeling sequential
program.
46
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
FSMs represents States, events, transistions and actions
Flow charts model the execution flow
Example: Seat Belt Warning System
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
47
#define ON 1
#define OFF 0
#define YES 1
#define ON 0
Void Seat_belt_warn()
{
Wait_10sec();
If (Check_ignition_key()==ON)
{
If (Check_seat_belt()==OFF)
{
Set_timer(5);
Start_alarm;
While (Check_seat_belt() == ON || Check_ignition_key() == OFF || Timer_expire()==YES)
Stop_alarm();
}
}
}
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
48
Concurrent/Communicating Process
Model
• Models concurrently executing tasks/processes
• Sequential models leads to poor utilization of
processor, when the tasks waits for I/O
Sleeping.
• here a task is subdivided into multiple sub tasks &
CPU is effectively used.
• but requires additional overhead like task
scheduling, task synchronization &
communication
49
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Tasks can be split into:
• 1.) timer task for waiting 10 secs
Wait_timer_task
• 2.) tasks for checking the ignition key status
Ignition_status_monitoring task
• 3.) tasks for checking the seat belt status
seat_belt_status_monitoring task
• 4.) task for starting & stopping of alarm
alarm_control_task
• 5.) alarm timer task for waiting 5 sec
alarm_timer_task
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
50
Example: Seat Belt Warning System
These tasks cannot be executed randomly or sequentially instead
they need to be synchronized through some mechanism 
events
Events associated with tasks are:
• Wait_timer_task  wait_timer_expire
• Ignition_status_monitoring task  Ignition key ON
 Ignition key OFF
• seat_belt_status_monitoring task  Seat belt ON
 Seat belt OFF
• Alarm_timer_task  alarm_timer_start
alarm_timer_stop
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
51
Set & Reset by
alarm_control_task
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
52
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
53
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
54
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
55
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
56
Object Oriented Model
• Complex overall program/software requirement is
divided into simple well defined pieces called
objects.
• A class is abstract description of a set of objects &
can be considered as blueprint of objects.
• State of object=member variable
• Object behavior= member function
57
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
Private, Public or
Protected
Private= ->accessible only within the class
Public-> accessible within as well as outside the class
Protected-> external access is prohibited
Reference
• Shibu K V, “Introduction to Embedded
Systems”, First Edition, Tata McGraw Hill
Education Private Limited, 2009
Computational Models prepared by
Anand H. D. Dr. AIT,Bengaluru
58
Prof. Anand H. D.
M. Tech. (PhD.)
Assistant Professor,
Department of Electronics & Communication Engineering
Dr. Ambedkar Institute of Technology, Bengaluru-56
Email: anandhdece@dr-ait.org
Phone: 9844518832

More Related Content

What's hot

Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems VijayKumar5738
 
EDLC-EMBEDDED PRODUCT DEVELOPMENT LIFE CYCLE
EDLC-EMBEDDED PRODUCT DEVELOPMENT LIFE CYCLEEDLC-EMBEDDED PRODUCT DEVELOPMENT LIFE CYCLE
EDLC-EMBEDDED PRODUCT DEVELOPMENT LIFE CYCLESabeel Irshad
 
Typical Embedded System
Typical Embedded SystemTypical Embedded System
Typical Embedded Systemanand hd
 
Embedded system in Smart Cards
Embedded system in Smart CardsEmbedded system in Smart Cards
Embedded system in Smart CardsRebecca D'souza
 
Demultiplexing of buses of 8085 microprocessor
Demultiplexing of buses of 8085 microprocessor Demultiplexing of buses of 8085 microprocessor
Demultiplexing of buses of 8085 microprocessor Rajal Patel
 
Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)Moe Moe Myint
 
Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Moe Moe Myint
 
Chapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemChapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemMoe Moe Myint
 
Design challenges in embedded systems
Design challenges in embedded systemsDesign challenges in embedded systems
Design challenges in embedded systemsmahalakshmimalini
 
Arm programmer's model
Arm programmer's modelArm programmer's model
Arm programmer's modelv Kalairajan
 
Design of embedded systems
Design of embedded systemsDesign of embedded systems
Design of embedded systemsPradeep Kumar TS
 
Disassembler and simulators
Disassembler and simulatorsDisassembler and simulators
Disassembler and simulatorsShriya Shankar
 
Embedded systems notes
Embedded systems notesEmbedded systems notes
Embedded systems notesShikha Sharma
 
Case Study of Embedded Systems
Case Study of Embedded SystemsCase Study of Embedded Systems
Case Study of Embedded Systemsanand hd
 
Voice Control Home Automation
Voice Control Home AutomationVoice Control Home Automation
Voice Control Home AutomationAbhishek Neb
 

What's hot (20)

E.s unit 6
E.s unit 6E.s unit 6
E.s unit 6
 
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems
 
EDLC-EMBEDDED PRODUCT DEVELOPMENT LIFE CYCLE
EDLC-EMBEDDED PRODUCT DEVELOPMENT LIFE CYCLEEDLC-EMBEDDED PRODUCT DEVELOPMENT LIFE CYCLE
EDLC-EMBEDDED PRODUCT DEVELOPMENT LIFE CYCLE
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
Typical Embedded System
Typical Embedded SystemTypical Embedded System
Typical Embedded System
 
Embedded system in Smart Cards
Embedded system in Smart CardsEmbedded system in Smart Cards
Embedded system in Smart Cards
 
Demultiplexing of buses of 8085 microprocessor
Demultiplexing of buses of 8085 microprocessor Demultiplexing of buses of 8085 microprocessor
Demultiplexing of buses of 8085 microprocessor
 
Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)Introduction to Embedded System I: Chapter 2 (5th portion)
Introduction to Embedded System I: Chapter 2 (5th portion)
 
Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1Introduction to Embedded Systems I : Chapter 1
Introduction to Embedded Systems I : Chapter 1
 
Gsm architecture
Gsm architectureGsm architecture
Gsm architecture
 
Chapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded SystemChapter 3 Charateristics and Quality Attributes of Embedded System
Chapter 3 Charateristics and Quality Attributes of Embedded System
 
Hardware-Software Codesign
Hardware-Software CodesignHardware-Software Codesign
Hardware-Software Codesign
 
Design challenges in embedded systems
Design challenges in embedded systemsDesign challenges in embedded systems
Design challenges in embedded systems
 
Arm programmer's model
Arm programmer's modelArm programmer's model
Arm programmer's model
 
Design of embedded systems
Design of embedded systemsDesign of embedded systems
Design of embedded systems
 
Disassembler and simulators
Disassembler and simulatorsDisassembler and simulators
Disassembler and simulators
 
Embedded systems notes
Embedded systems notesEmbedded systems notes
Embedded systems notes
 
Case Study of Embedded Systems
Case Study of Embedded SystemsCase Study of Embedded Systems
Case Study of Embedded Systems
 
Voice Control Home Automation
Voice Control Home AutomationVoice Control Home Automation
Voice Control Home Automation
 
Rtos by shibu
Rtos by shibuRtos by shibu
Rtos by shibu
 

Similar to Computational Models in Embedded Design

Data Science Salon Miami Example - Churn Rate Predictor
Data Science Salon Miami Example - Churn Rate PredictorData Science Salon Miami Example - Churn Rate Predictor
Data Science Salon Miami Example - Churn Rate PredictorGreg Werner
 
Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Luis Cabrera
 
Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Luis Cabrera
 
Burger King Simulation
Burger King SimulationBurger King Simulation
Burger King SimulationRohit Jain
 
UOPOPS571 Lessons in Excellence--uopops571.com
UOPOPS571 Lessons in Excellence--uopops571.comUOPOPS571 Lessons in Excellence--uopops571.com
UOPOPS571 Lessons in Excellence--uopops571.comthomashard90
 
Dmm 170900713008 2721314_bhavya
Dmm 170900713008 2721314_bhavyaDmm 170900713008 2721314_bhavya
Dmm 170900713008 2721314_bhavyaBhavya Patel
 
Which of the following is an input to the master production schedule (mps)
Which of the following is an input to the master production schedule (mps)Which of the following is an input to the master production schedule (mps)
Which of the following is an input to the master production schedule (mps)ramuaa130
 
Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)bluejayjunior
 
Chapter 11-PCP.pdf
Chapter 11-PCP.pdfChapter 11-PCP.pdf
Chapter 11-PCP.pdfranapoonam1
 
Cis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comCis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comrobertledwes38
 
Software Engineering Testing & Research
Software Engineering Testing & Research Software Engineering Testing & Research
Software Engineering Testing & Research Vrushali Lanjewar
 
The Three Basic Selection Structures in C++ Programming Concepts
The Three Basic Selection Structures in C++ Programming ConceptsThe Three Basic Selection Structures in C++ Programming Concepts
The Three Basic Selection Structures in C++ Programming ConceptsTech
 
The centroid method for plant location uses which of the following data
The centroid method for plant location uses which of the following dataThe centroid method for plant location uses which of the following data
The centroid method for plant location uses which of the following dataramuaa128
 
Finite State Machine based Vending Machine Controller with Auto-Billing Feat...
 Finite State Machine based Vending Machine Controller with Auto-Billing Feat... Finite State Machine based Vending Machine Controller with Auto-Billing Feat...
Finite State Machine based Vending Machine Controller with Auto-Billing Feat...VLSICS Design
 
Impact of Interface Fixed Charges on the Performance of the Channel Material ...
Impact of Interface Fixed Charges on the Performance of the Channel Material ...Impact of Interface Fixed Charges on the Performance of the Channel Material ...
Impact of Interface Fixed Charges on the Performance of the Channel Material ...VLSICS Design
 
In hau lee's uncertainty framework to classify supply chains
In hau lee's uncertainty framework to classify supply chainsIn hau lee's uncertainty framework to classify supply chains
In hau lee's uncertainty framework to classify supply chainsramuaa127
 
Which of the following is considered a primary report in an mrp system
Which of the following is considered a primary report in an mrp systemWhich of the following is considered a primary report in an mrp system
Which of the following is considered a primary report in an mrp systemramuaa130
 
Project report on (atm MAnagment system)
Project report on (atm MAnagment system)Project report on (atm MAnagment system)
Project report on (atm MAnagment system)Muhammad Umer Lari
 

Similar to Computational Models in Embedded Design (20)

Data Science Salon Miami Example - Churn Rate Predictor
Data Science Salon Miami Example - Churn Rate PredictorData Science Salon Miami Example - Churn Rate Predictor
Data Science Salon Miami Example - Churn Rate Predictor
 
CS ppt.pptx
CS ppt.pptxCS ppt.pptx
CS ppt.pptx
 
Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...
 
Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...
 
Burger King Simulation
Burger King SimulationBurger King Simulation
Burger King Simulation
 
UOPOPS571 Lessons in Excellence--uopops571.com
UOPOPS571 Lessons in Excellence--uopops571.comUOPOPS571 Lessons in Excellence--uopops571.com
UOPOPS571 Lessons in Excellence--uopops571.com
 
Dmm 170900713008 2721314_bhavya
Dmm 170900713008 2721314_bhavyaDmm 170900713008 2721314_bhavya
Dmm 170900713008 2721314_bhavya
 
Which of the following is an input to the master production schedule (mps)
Which of the following is an input to the master production schedule (mps)Which of the following is an input to the master production schedule (mps)
Which of the following is an input to the master production schedule (mps)
 
Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)
 
Chapter 11 pcp
Chapter 11 pcpChapter 11 pcp
Chapter 11 pcp
 
Chapter 11-PCP.pdf
Chapter 11-PCP.pdfChapter 11-PCP.pdf
Chapter 11-PCP.pdf
 
Cis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comCis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.com
 
Software Engineering Testing & Research
Software Engineering Testing & Research Software Engineering Testing & Research
Software Engineering Testing & Research
 
The Three Basic Selection Structures in C++ Programming Concepts
The Three Basic Selection Structures in C++ Programming ConceptsThe Three Basic Selection Structures in C++ Programming Concepts
The Three Basic Selection Structures in C++ Programming Concepts
 
The centroid method for plant location uses which of the following data
The centroid method for plant location uses which of the following dataThe centroid method for plant location uses which of the following data
The centroid method for plant location uses which of the following data
 
Finite State Machine based Vending Machine Controller with Auto-Billing Feat...
 Finite State Machine based Vending Machine Controller with Auto-Billing Feat... Finite State Machine based Vending Machine Controller with Auto-Billing Feat...
Finite State Machine based Vending Machine Controller with Auto-Billing Feat...
 
Impact of Interface Fixed Charges on the Performance of the Channel Material ...
Impact of Interface Fixed Charges on the Performance of the Channel Material ...Impact of Interface Fixed Charges on the Performance of the Channel Material ...
Impact of Interface Fixed Charges on the Performance of the Channel Material ...
 
In hau lee's uncertainty framework to classify supply chains
In hau lee's uncertainty framework to classify supply chainsIn hau lee's uncertainty framework to classify supply chains
In hau lee's uncertainty framework to classify supply chains
 
Which of the following is considered a primary report in an mrp system
Which of the following is considered a primary report in an mrp systemWhich of the following is considered a primary report in an mrp system
Which of the following is considered a primary report in an mrp system
 
Project report on (atm MAnagment system)
Project report on (atm MAnagment system)Project report on (atm MAnagment system)
Project report on (atm MAnagment system)
 

More from anand hd

RMV sensors
RMV sensorsRMV sensors
RMV sensorsanand hd
 
RMV robot programming
RMV robot programmingRMV robot programming
RMV robot programminganand hd
 
Robot applications
Robot applicationsRobot applications
Robot applicationsanand hd
 
RMV Mechanics
RMV MechanicsRMV Mechanics
RMV Mechanicsanand hd
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Visionanand hd
 
RMV Artificial Intelligence
RMV Artificial IntelligenceRMV Artificial Intelligence
RMV Artificial Intelligenceanand hd
 
OS file systems
OS file systemsOS file systems
OS file systemsanand hd
 
OS virtual memory
OS virtual memoryOS virtual memory
OS virtual memoryanand hd
 
OS scheduling
OS schedulingOS scheduling
OS schedulinganand hd
 
OS Memory Management
OS Memory ManagementOS Memory Management
OS Memory Managementanand hd
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDLanand hd
 
Characteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded SystemCharacteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded Systemanand hd
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDLanand hd
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDLanand hd
 
OS-Process Management
OS-Process ManagementOS-Process Management
OS-Process Managementanand hd
 
Robotics Endeffectors
Robotics EndeffectorsRobotics Endeffectors
Robotics Endeffectorsanand hd
 
Structure of Operating System
Structure of Operating System Structure of Operating System
Structure of Operating System anand hd
 
Fundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision SystemFundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision Systemanand hd
 
Os overview
Os overviewOs overview
Os overviewanand hd
 
OS introduction
OS introductionOS introduction
OS introductionanand hd
 

More from anand hd (20)

RMV sensors
RMV sensorsRMV sensors
RMV sensors
 
RMV robot programming
RMV robot programmingRMV robot programming
RMV robot programming
 
Robot applications
Robot applicationsRobot applications
Robot applications
 
RMV Mechanics
RMV MechanicsRMV Mechanics
RMV Mechanics
 
Robot Machine Vision
Robot Machine VisionRobot Machine Vision
Robot Machine Vision
 
RMV Artificial Intelligence
RMV Artificial IntelligenceRMV Artificial Intelligence
RMV Artificial Intelligence
 
OS file systems
OS file systemsOS file systems
OS file systems
 
OS virtual memory
OS virtual memoryOS virtual memory
OS virtual memory
 
OS scheduling
OS schedulingOS scheduling
OS scheduling
 
OS Memory Management
OS Memory ManagementOS Memory Management
OS Memory Management
 
Modules and ports in Verilog HDL
Modules and ports in Verilog HDLModules and ports in Verilog HDL
Modules and ports in Verilog HDL
 
Characteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded SystemCharacteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded System
 
Basic concepts in Verilog HDL
Basic concepts in Verilog HDLBasic concepts in Verilog HDL
Basic concepts in Verilog HDL
 
Overview of digital design with Verilog HDL
Overview of digital design with Verilog HDLOverview of digital design with Verilog HDL
Overview of digital design with Verilog HDL
 
OS-Process Management
OS-Process ManagementOS-Process Management
OS-Process Management
 
Robotics Endeffectors
Robotics EndeffectorsRobotics Endeffectors
Robotics Endeffectors
 
Structure of Operating System
Structure of Operating System Structure of Operating System
Structure of Operating System
 
Fundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision SystemFundamentals of Robotics and Machine Vision System
Fundamentals of Robotics and Machine Vision System
 
Os overview
Os overviewOs overview
Os overview
 
OS introduction
OS introductionOS introduction
OS introduction
 

Recently uploaded

Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 

Recently uploaded (20)

★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 

Computational Models in Embedded Design

  • 1. Computational Models In Embedded Design 1 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 2. • Data Flow Graph/Diagram (DFG) Model • Control Data Flow Graph/Diagram (CDFG) Model • State Machine Model • Sequential Program Model • Concurrent/Communicating Process Model • Object Oriented Model Definition: a model is a formal system consisting of objects & composition rules. It is hard to make a decision on which model should be followed in particular system design. Most often designers switch between variety of models from requirement specification to implementation. 2 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 3. Data Flow Graph/Diagram (DFG) Model • Translates the data processing requirements into a data flow graph. • It is data driven model in which program execution is determined by data. • It emphasizes on data and operation on data which transform the input data to output data. • It is visual model in which operation on data(Process) is represented using a block(Circle) and data flow is represented by arrows(inward arrow => i/p to process and outward arrow=> o/p of process) 3 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 4. Data Flow Graph/Diagram (DFG) Model cont… • Embedded application which are computational intensive & data driven are modeled using DFG Eg.: DSP • For example suppose computation x = a + b & y = x - c needs to be carried out, then 4 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru • Acyclic DFG: doesn’t contain multiple values for i/p variables and multiple values for o/p variables.
  • 5. Control Data Flow Graph (CDFG) Model • Is used for applications involving control program execution. • Contains both data operation and control operation. Data nodes-> elements control nodes-> decision makers • For example, if Flag=1, x=a+b else y=a-b. This requires decision making 5 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 6. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 6 Control node is represented by a Diamond Block X y
  • 7. State Machine Model • Used for modeling reactive or event-driven embedded systems, whose behavior are dependent on state transistions. • State machine model describes the system behavior with ‘State’, ‘Event’, ‘Action’ & ‘Transistion’. State -> representation of current situation. Event -> i/p to state, acts as stimuli for state transistion. Action ->activity to be performed by state machine. Transistion -> movement from one state to another. 7 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 8. State Machine Model cont. Example-1: SEAT BELT WARNING SYSTEM Requirements: 1. When vehicle ignition is turned ON & seat belt is not fastened within 10 secs of Ignition ON, the system generates an alarm signal for 5 secs. 2. The alarm is turned OFF when the seat belt is fastened / alarm time expires / the ignition is off== whichever happens first. 8 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 9. SEAT BELT WARNING SYSTEM: Events: ‘Ignition_Key_ON’ ‘Ignition_Key_OFF’, ‘Time Expire’, ‘Alarm Time Expire’ and ‘Seat_Belt_ON’. States: ‘Alarm_OFF’, ‘Waiting’, and ’Alarm_ON’. 9 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 10. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 10
  • 11. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 11
  • 12. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 12
  • 13. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 13
  • 14. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 14
  • 15. SEAT BELT WARNING SYSTEM: cont.. The timer used in Seat Belt Warning System can also be modeled as a Finite State Machine States: ‘Idle’, ‘Ready’, and ’Running’. Events: ‘Load Timer’ ‘Start Timer’, ‘Stop Timer’ and ‘Timer Expire’ 15 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 16. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 16
  • 17. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 17
  • 18. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 18
  • 19. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 19
  • 20. State Machine Model cont. Example-2: Automatic Tea/Coffee vending Machine Requirements: 1. Tea/Coffee vending machine is initiated by user by inserting 5 Rs. Coin. 2. After inserting Coin, user can select either coffee /tea / press cancel order and take back the coin. 20 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 21. Automatic Tea/Coffee vending Machine: Events: ‘Insert Coin’ ‘Tea Button Pressed’, ‘Coffee Button Pressed’, ‘Cancel Button Pressed’, ‘Coffee Dispensed’ and ‘Tea Dispensed’ States: A= ‘OFF/wait for coin’, B= ‘wait for user i/p’, C= ’Dispense Tea’ and D= ’Dispense Coffee’. 21 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 22. Automatic Tea/Coffee vending Machine: 22 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 23. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 23
  • 24. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 24
  • 25. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 25
  • 26. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 26
  • 27. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 27
  • 28. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 28
  • 29. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 29
  • 30. State Machine Model cont. Example-3: Coin Operated Public Telephone Unit Requirements: 1. Call is initiated by lifting the receiver. 2. After lifting user needs to insert 1 Rs. Coin 3. If line is busy, coin is returned on placing the receiver back. 4. If line is through/free user is allowed to talk for 60 secs & at the end of 45th sec prompt for inserting another if want to continue call. 5. If doesn’t insert coin, call is terminated after completing 60 secs . 6. The system is ready to take up new call when receiver is placed back on hook. 7. The system goes Out of order state when there is line fault. 30 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 31. Coin Operated Public Telephone Unit : Events: ‘Rceiver lifted’ ‘Coin inserted’, ‘Valid Number’, ’Line available’, ’Line busy’, ‘Time out’, ‘Place Receiver’, ‘Invalid Number’, ‘Line fault’ and ‘Line OK’ States: A= ‘Ready’, B=‘wait for coin’, C=‘wait for number’, D=’Dialing’ E=’Call in Progress’ F=’Call Terminated’ G=’Unable to make call’ H=’Invalid Number’ and I=’Out of Order’. 31 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 32. Coin Operated Public Telephone Unit : 32 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 33. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 33
  • 34. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 34
  • 35. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 35
  • 36. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 36
  • 37. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 37
  • 38. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 38
  • 39. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 39
  • 40. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 40
  • 41. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 41
  • 42. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 42
  • 43. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 43
  • 44. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 44
  • 45. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 45
  • 46. Sequential Program Model • The functions or processing requirements are executed in sequence. • Program instructions are iterated and executed conditionally and data gets transformed through a series of operations. • FSMs are good choice for sequential Program modeling. • Flow charts are also good tool for modeling sequential program. 46 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru FSMs represents States, events, transistions and actions Flow charts model the execution flow
  • 47. Example: Seat Belt Warning System Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 47 #define ON 1 #define OFF 0 #define YES 1 #define ON 0 Void Seat_belt_warn() { Wait_10sec(); If (Check_ignition_key()==ON) { If (Check_seat_belt()==OFF) { Set_timer(5); Start_alarm; While (Check_seat_belt() == ON || Check_ignition_key() == OFF || Timer_expire()==YES) Stop_alarm(); } } }
  • 48. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 48
  • 49. Concurrent/Communicating Process Model • Models concurrently executing tasks/processes • Sequential models leads to poor utilization of processor, when the tasks waits for I/O Sleeping. • here a task is subdivided into multiple sub tasks & CPU is effectively used. • but requires additional overhead like task scheduling, task synchronization & communication 49 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru
  • 50. Tasks can be split into: • 1.) timer task for waiting 10 secs Wait_timer_task • 2.) tasks for checking the ignition key status Ignition_status_monitoring task • 3.) tasks for checking the seat belt status seat_belt_status_monitoring task • 4.) task for starting & stopping of alarm alarm_control_task • 5.) alarm timer task for waiting 5 sec alarm_timer_task Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 50 Example: Seat Belt Warning System
  • 51. These tasks cannot be executed randomly or sequentially instead they need to be synchronized through some mechanism  events Events associated with tasks are: • Wait_timer_task  wait_timer_expire • Ignition_status_monitoring task  Ignition key ON  Ignition key OFF • seat_belt_status_monitoring task  Seat belt ON  Seat belt OFF • Alarm_timer_task  alarm_timer_start alarm_timer_stop Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 51 Set & Reset by alarm_control_task
  • 52. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 52
  • 53. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 53
  • 54. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 54
  • 55. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 55
  • 56. Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 56
  • 57. Object Oriented Model • Complex overall program/software requirement is divided into simple well defined pieces called objects. • A class is abstract description of a set of objects & can be considered as blueprint of objects. • State of object=member variable • Object behavior= member function 57 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru Private, Public or Protected Private= ->accessible only within the class Public-> accessible within as well as outside the class Protected-> external access is prohibited
  • 58. Reference • Shibu K V, “Introduction to Embedded Systems”, First Edition, Tata McGraw Hill Education Private Limited, 2009 Computational Models prepared by Anand H. D. Dr. AIT,Bengaluru 58
  • 59. Prof. Anand H. D. M. Tech. (PhD.) Assistant Professor, Department of Electronics & Communication Engineering Dr. Ambedkar Institute of Technology, Bengaluru-56 Email: anandhdece@dr-ait.org Phone: 9844518832