ASM Method: Moore and Mealy Machines
ASM Method: Moore and Mealy Machines
ASM method
• ASM = Algorithmic State Machine = synchronous sequential circuit
• Suitable for designing both Moore and Mealy machines
• Can be used with
• HDL design
• Manual design
• ASM chart is a method of describing the sequential operations of a digital
system
• Resembles flow charts
• ASM chart contains all information that is needed to design a
synchronous sequential circuit
Digital circuits Ch 6b Page 2 (15)
ASM method 16.10.2013 Fe/KRL
This slide show is based on lecture slides of senior lecturer Esko Rautanen. Translated and edited by T. Karilinna, 2010
Digital circuits Ch 6b Page 3 (15)
ASM method 16.10.2013 Fe/KRL
State diagram
• A state diagram is a directed graph
defining how a sequential circuit
propagates from state to state
• If more than one arch from a state exist, a condition based on input
signal values has to be written next to each arch
Digital circuits Ch 6b Page 4 (15)
ASM method 16.10.2013 Fe/KRL
2s
Delicious 2s
Delicious food at 2s
Controller Lamps
f = 1/T
DEL
Oscillator Delicious
JACK1
CLK FOO
0,5 Hz food at
JAC
Clock cycle 2 s Jack’s bar
Digital circuits Ch 6b Page 6 (15)
ASM method 16.10.2013 Fe/KRL
Initial state
State name
State code
Output signals
activated
Digital circuits Ch 6b Page 7 (15)
ASM method 16.10.2013 Fe/KRL
State codes
• Every state has to be assigned a unique state code
• Each state code is a binary number
Exit path
Digital circuits Ch 6b Page 9 (15)
ASM method 16.10.2013 Fe/KRL
Example
BBB 010
OUT1 RUN
SN OPER
OUT2 NORM
1 1
IN1 SLOW
Input 0 Decision box 0
signal 1 0
IN2 FAST
0 1
Digital circuits Ch 6b Page 10 (15)
ASM method 16.10.2013 Fe/KRL
Example of
Using clock signal for timing and waiting ASM chart
1 0
NI
Clock period 2 s
Digital circuits Ch 6b Page 18 (15)
ASM method 16.10.2013 Fe/KRL
RESET