Lecture 8 Sequential Circuit
Lecture 8 Sequential Circuit
Outline
• 7.1 Finite State Machines
– Concepts of States
– Mealy machines
– Moore machines
– Excitation table
– Design example
• 7.2 Sequential Circuit Analysis
Memory
clock
States
• With continuous inputs, the input time functions
can be group into classes.
• All time functions have the same effect on the
output at time t.
• Practically, the number of classes is finite.
• These classes are represented by the auxiliary
variables si called states.
• States summarize the effect of past inputs.
• Make decision for present and future outputs.
States machine
• The state machine is illustrated using state
diagram. A state diagram consists of circles which
present the states; and lines connecting the
circles that represent the transition of states.
• Mealy machine S
x/y
S i j
FF
Input
Combinational
logic
Com.
logic
Output S = state
FF
x = input
y = output
• Moore machine Si /0
x
Sj /1
FF
Input
Combinational Com.
Output
logic logic
FF
Mealy Machine
Mealy Machine
Mealy Machine
10
Mealy Machine
11
Mealy Machine
12
Moore Machine
13
Moore Machine
14
Moore Machine
15
Differences
Mealy machine Moore machine
16
Differences
Mealy machine Moore machine
17
18
19
20
Design Example
Free‐running Counter
Design a free‐running counter with counting sequence
2, 4, 5, 3, 7, 2, …(and repeat) using D flip‐flops
21
Free‐running Counter
Moore Machine Structure
2, 4, 5, 3, 7, 2,
22
Free‐running Counter
23
Free‐running Counter
24
Free‐running Counter
25
Free‐running Counter
Z1
26
Free‐running Counter
Verification
required for
bit checking!
27
Free‐running Counter
Verification
required for
bit checking!
0
1 1
1
0 1
0 1 0
28
Free‐running Counter
29
Free‐running Counter
Z1
30
31
Analysis Example
32
Analysis Example
33
Analysis Example
34
35
36
37
38
39
State Equation
40
41