Informatics 1 School of Informatics, University of Edinburgh
1
Transducer FSMs in System Design In this lecture we go through - - PowerPoint PPT Presentation
Transducer FSMs in System Design In this lecture we go through examples of transducer FSMs in the specification of larger systems. In the process we will discuss system design lifecycles and the role of specification at different lifecycle
Informatics 1 School of Informatics, University of Edinburgh
1
Informatics 1 School of Informatics, University of Edinburgh
2
Average fix time Design review Code Code review Compile Test Use
Informatics 1 School of Informatics, University of Edinburgh
3
FSMs used at this level
Informatics 1 School of Informatics, University of Edinburgh
4
1.
2.
3.
Informatics 1 School of Informatics, University of Edinburgh
5
Informatics 1 School of Informatics, University of Edinburgh
6
Informatics 1 School of Informatics, University of Edinburgh
7
power/on mode/v mode/c power/susp time/res power/susp time/res mode power/off power/off power/off mode
Informatics 1 School of Informatics, University of Edinburgh
8
power/on mode/v mode/c power/susp time/res power/susp time/res mode power/off power/off power/off mode
“comp on” and “video
reachable from start state and from each
Informatics 1 School of Informatics, University of Edinburgh
9
power/on mode/v mode/c power/susp time/res power/susp time/res mode power/off power/off power/off mode
“mode” toggles between “comp on” and “video
following “on” input.
Informatics 1 School of Informatics, University of Edinburgh
10
power/on mode/v mode/c power/susp time/res power/susp time/res mode power/off power/off mode
All routes to “off” from “comp on” or “video on” require two “power” inputs
Informatics 1 School of Informatics, University of Edinburgh
11
power/on mode/v mode/c power/susp t i m e / r e s power/susp t i m e / r e s power/off power/off mode/v mode/c
Informatics 1 School of Informatics, University of Edinburgh
12
Informatics 1 School of Informatics, University of Edinburgh
13
Informatics 1 School of Informatics, University of Edinburgh
14
Informatics 1 School of Informatics, University of Edinburgh
15
1.
2.
3.
4.
Informatics 1 School of Informatics, University of Edinburgh
16
Informatics 1 School of Informatics, University of Edinburgh
17
Informatics 1 School of Informatics, University of Edinburgh
18
Informatics 1 School of Informatics, University of Edinburgh
19
brake,accP,accR,resume
set/store fast/dec correct slow/inc brake resume brake accP brake,set accR,set/store accP
set,brake,accP, accR,resume
accP,resume
Informatics 1 School of Informatics, University of Edinburgh
20
brake,accP,accR,resume
set/store fast/dec correct slow/inc brake resume brake accP brake,set accR,set/store accP
set,brake,accP, accR,resume
accP,resume
All states, except “off” transition to off if “onoff” pressed
Informatics 1 School of Informatics, University of Edinburgh
21
brake,accP,accR,resume
set/store fast/dec correct slow/inc brake resume brake accP brake,set accR,set/store accP
set,brake,accP, accR,resume
accP,resume
All states (other than “off”) go to “set” via a driver command
Informatics 1 School of Informatics, University of Edinburgh
22
brake,accP,accR,resume
set/store fast/dec correct slow/inc brake resume brake accP brake,set accR,set/store accP
set,brake,accP, accR,resume
accP,resume
Braking never leads directly to “set” state
Informatics 1 School of Informatics, University of Edinburgh
23
brake,accP,accR,resume
set/store fast/dec correct slow/inc brake resume brake accP brake,set accR,set/store accP
set,brake,accP, accR,resume
accP,resume
From “set” and “wait”, accP leads to “acc”
Informatics 1 School of Informatics, University of Edinburgh
24
brake,accP,accR,resume
set/store fast/dec correct slow/inc brake resume, set/store brake accP brake accR, set/store accP
brake,accP, accR,resume
accP,resume
s e t / s t
e
Informatics 1 School of Informatics, University of Edinburgh
25