Algorithmic State Machines (ASM)
Algorithmic State Machines (ASM)
(ASM)
ASM CHART
Composed of three basic elements
ASM Block
A structure consisting of one state box and all
the decision and conditional boxes connected to
its exit path.
An ASM block has one entrance and any number
of exit paths represented by the structure of
the decision boxes
During transition
A is incremented, If E = 1 , R is cleared
Depending on values of EF control transferred to T2 or T3 or T4
Design Example:
Design a Digital system with two FFs E and F, one
4-bit binary counter A ( A4A3A2A1). A start signal S
initiates the system operation by clearing counter A
and flip-flop F. Counter incremented by one starting
from next clock pulse, continues to increment until
operations stop.
If A3 = 0, E is cleared to 0 and count continues
If A3 = 1, E set to 1; then if A4=0, count continues,
but if A4 = 1, F set to 1 on next clock pulse and system
stops counting. If S = 0 system remains in initial state,
but if S = 1 operation cycle repeats.
Counter
A4 A3 A2 A1
Flipflops
E F
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
Conditions
A3= 0, A4=0
A3=1, A4= 0
State
T1
Counter
A4 A3 A2 A1
Flipflops
E F
1 0 0
1 0 1
1 1 0
1 1
Conditions
State
A3=1, A4= 0
T1
A3=0, A4=1
Counter
A4 A3 A2 A1
Flipflops
E F
1 0
1 1
0 0
Conditions
A3=0, A4=1
A3=1, A4 = 1
State
Counter
A4 A3 A2 A1
Flipflops
E F
0
Conditions
State
0 0
A3=1, A4 = 1
0 1
1 0
T2
0 1
1 1
T0
T2: F 1
State Table:
Present-State
Symbol
T0
T0
T1
T1
T1
T2
Present
State
G1 G0
S A3 A4
Next
State
G1 G0
0
0
0
0
0
1
0
1
X
X
X
X
0
0
0
0
1
0
0
0
1
1
1
1
Inputs
X X
X X
0 X
1 0
1 1
X X
0
1
1
1
1
0
Outputs
T0 T1 T2
1
1
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
1