Professional Documents
Culture Documents
Modeling
Implementation Generation
target architecture
single chip
implementation of
target architecture
Model SW
5
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Model-driven development
paradigm
5-characteristics
• Abstraction: System models are representations that highlight some
characteristics while abstracting away some others. Typically, system
models that capture all aspects of a design are complex and less useful
than feature-specific models.
• Understandibility: A direct function of the expressiveness (capacity to
convey a complex idea with little direct information) of the modeling form
• Accuracy: model must provide a true-to-life representation of the modeled
system’s features of interest
• Predictiveness: able to use a model to correctly predict the modeled
system’s interesting but nonobvious properties, either through
experimentation (such as by executing a model on a computer) or through
some type of formal analysis.
• Inexpensive: must be significantly cheaper to construct and analyze than
the modeled system.
Model 1 of an Elevator SW
English Description:
• If the elevator is stationary and the floor requested is less than the
current floor, then lower the elevator to the requested floor
• If the elevator is stationary and the floor requested is greater than the
current floor, then raise the elevator to the requested floor
8
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Model -2 of elevator
9
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Model-3 of Elevator
HW
State Machine
SW
req_floor <curr_floor) /
direction:=down req_floor =curr_floor) / req_floor >curr_floor) /
direction:=idle direction:=up
req_floor <curr_floor) / req_floor >curr_floor) /
direction:=down direction:=up
down idle up
req_floor =curr_floor) /
direction:=idle
req_floor >curr_floor) / direction:=up
14
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
HW
SW
15
EEE G626
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
HW
Mealy Machine SW
Moore Machine
SW
Q f (X ,Q) Z g(Q)
state based model
17
EEE G626
BITS Pilani, Deemed to be University under Section 3 of UGC Act, 1956
Mealy and Moore Model of
elevator
Mealy Moore
I = Ic x ID
in other words, for each state si ϵ S, we compute a new value for each
variable Vj ϵ V in the datapath by evaluating an expression ei ϵ Expr(V)
Therefore,
hc : S x lc x STAT Oc
and
hD : S x V X ID OD