Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
EEE 540
Session 4
Anshul Mittal
Asst. Professor (Sr.) (SENSE)
VIT University
Session Objectives
Understand Embedded System
Modelling [ Flow graph, FSM, Petri
nets]
Questions
What are the units inside a processor
and what are their functionalities?
What is the final stage of software
that is put into microcontroll ?
Can the requirements change in the
design life cycle?
Answers
Units inside a processor : Program
Flow Unit, Control Unit
Final stage of software is called ROM
Image.
It depends on the company policy.
WHY MODELLING ?
Modelling a system before making it into a
product is mandatory.
for eg : If a designer is posted with a challenge of
making an elevator , the designer should first
model it.
Modelling will help the designer to understand the
system better and will increase the confidence
level.
Many modelling techniques are available and it is
upto the designer to make a choice out of it.
VIT University
VIT University
VIT University
VIT University
VIT University
VIT University
VIT University
Software Applications
The following concepts are commonly used to
build software applications with finite state
machines
Automata based programming
Event driven FSM
Virtual FSM (VFSM)
VIT University
VIT University
VIT University
VIT University
Synchronization
This property is simple where transition t1 will be
enabled only when atleast one token is there at
each of its input places.
VIT University
Merging
When there are several tokens arriving from
several places at the same transition , merging
happens.
VIT University
Concurrancy
This is one of the most important properties or
petri nets.
Here in this case shown t1 and t2 are concurrent.
This makes petri nets to be used to model
systems of distributed control with multiple
process executing concurrently in time.
VIT University
Conflict
Consider a situation where t1 and t2 are both
ready to fire but the firing of any leads to
disabling of the other transition.
This is like a deadlock situation.
VIT University
An Example
Consider a situation where t1 and t2 are both
ready to fire but the firing of any leads to
disabling of the other transition.
This is like a deadlock situation.
VIT University
An Example
Choclate Vending Machine
VIT University
An Example
VIT University
An Example
VIT University
An Example
VIT University
An Example
VIT University
An Example
Finally the user will get the 15C
choclate.
Advantage of petri net Is that it gives
visual effect and is very simple to
understand.
VIT University
Conclusion
Embedded System Can be modelled using flow
graphs, FSM or petri nets. The selection of
methodology is purely based on users
convinience.
Petri nets have few important properties such as
sequential execution, synchronization, merging,
Concurrancy and conflict.
VIT University
Thank You