Mealy and Moore Sequential Circuits
Mealy and Moore Sequential Circuits
Moore:
• All outputs are functions of only the present state (flip-flops).
• All outputs are synchronized with the clock. Outputs don’t typically
change in the middle of a clock cycle.
Mealy:
• Any one of the outputs is a function of both the present state (flip-flops)
and the external inputs.
• Outputs may change if the external inputs change during a clock cycle.
Timing Trace
Given a state diagram (or state table), and an input sequence, determine the
output sequence. (This is a circuit that outputs a 1 when three or more
consecutive 1’s are found the in the input sequence.)
State A
Input 0 0 1 1 1 0 1 1 1 1 0 1
Output
Page 1 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
Goal: Given a state table, reduce number of states if possible, while maintain-
ing same circuit behavior. (Similar to simplification of Boolean functions.)
Why? Fewer states → fewer FF’s → simpler comb. logic → smaller circuit
State Equivalency Rule. Two states are equivalent if and only if:
- Outputs are identical for each input combination, and
- Next-states are identical for each input combination.
Ex. States A and C have identical rows ⇒ A ≡ C (A and C are equivalent)
Present Next State Output Present Next State Output
State x = 0 x = 1 x = 0 x = 1 State x = 0 x = 1 x = 0 x = 1
A A B 0 1 A A B 0 1
B C D 0 0 B A D 0 0
C A B 0 1 D D A 1 0
D D C 1 0 Reduced State Table (3 states)
Ex. States B and D have same outputs. Identical Next State under x=1.
Cross-reference each other under x=0 ⇒ B ≡ D (B and D are equivalent)
Present Next State Output Present Next State Output
State x = 0 x = 1 x = 0 x = 1 State x = 0 x = 1 x = 0 x = 1
A B C 0 1 A B C 0 1
B D A 0 0 B B A 0 0
C C A 0 1 C C A 0 1
D B A 0 0 Reduced State Table (3 states)
Page 2 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
State
A 111 000
B 110 111
C 101 100
D 100 011
E 011 010
Page 4 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
Ex. Given the following state table, assign states using Gray Code Assignment.
State Table Binary State Table
Present Next State Output Present Next State Output
State x=0 x=1 Y State x=0 x=1
q1 q2 q3 q1* q2* q3* q1* q2* q3* Y
A A B 0
B C D 0
C A D 1
D E D 0
E A D 1
n = 3 flip-flops ⇒ 8 combinations total
⇒ 3 unused combinations
Page 5 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
Function Tables – Given F/F input and Pres. State → determines Next State
Input Next State Inputs Next State Input Next State
D Q* J K Q* T Q*
0 0 0 0 No change 0 No change
1 1 0 1 0 1 Complement
1 0 1
1 1 Complement
Q* = D Q* = J Q’ + K’Q Q* = T ⊕ Q
Excitation Tables – Given P.S. and N.S. → determines required F/F input value
PS NS FF input PS NS FF inputs PS NS FF input
Q Q* D Q Q* J K Q Q* T
0 0 0 0 0 0 x 0 0 0
0 1 1 0 1 1 x 0 1 1
1 0 0 1 0 x 1 1 0 1
1 1 1 1 1 x 0 1 1 0
D = NS If PS=0 ⇒ J=NS, K=x If PS=NS ⇒ T=0
If PS=1 ⇒ J=x, K=NS’ If PS=NS ⇒ T=1
x y
Your circuit
Clock
Page 6 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
2) State Reduction
Transition Excitation
Table Table
DA (qA, qB, x) = Σ( [Optional minterm lists]
DB (qA, qB, x) = Σ(
z (qA, qB, x) = Σ(
Page 7 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
00 01 11 10 00 01 11 10
0 0
1 1
00 01 11 10
Page 8 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
Page 9 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
JA (qA, qB, x) =
KA (qA, qB, x) =
JB (qA, qB, x) =
KB (qA, qB, x) =
z (qA, qB, x) =
Page 10 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
Page 11 of 12
EE244 – Digital Logic Design – Fall 2012 Semester Lecture Notes Set #10
Dr. Kam F. Yee Nov 28, 2012
TA (qA, qB, x) =
TB (qA, qB, x) =
z (qA, qB, x) =
Points to Remember:
• A sequential circuit may be Mealy or Moore type
• A sequential circuit can be designed using D, JK, T, or a mixture of F/F’s
• Number of flip-flops in circuit is independent of F/F type
• F/F input equations depends on type of F/F used
• Output equation is the same regardless of type of F/F used
• Complexity of logic equations depends on F/F type used. Usually, JK flip-
flop gives the least-complex circuit, but it is not always guaranteed.
Page 12 of 12