Documente Academic
Documente Profesional
Documente Cultură
Combinational circuit
Next state logic
Output logic Mealy and Moore
Inputs
Current
State
Combinational
circuit
State Memory
Clock
Outputs
Next
State
Mealy Model
Moore Model
Analysis - Goals
Present State
Q1
Q0
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
Inputs
X
0
1
0
1
0
1
0
1
Next State
Q1
Q0
Outputs
Z
Output Equations
Present State
Q1
Q0
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
Inputs
X
0
1
0
1
0
1
0
1
Next State
Q1
Q0
Outputs
Z
0
0
0
0
0
0
0
1
8
J1 = X Q0
K 1 = X + Q0
J0 = X + Q 1
K0 = X
Excitation equations:
J1 = X Q0 and K1 = X + Q0
J0 = X + Q1 and K0 = X
10
0
0
1
1
0
0
1
1
Inputs
X
0
1
0
1
0
1
0
1
Next State
Q1
Q0
0
Outputs
Z
0
0
0
0
0
0
0
1
11
0
0
1
1
0
0
1
1
Inputs
X
0
1
0
1
0
1
0
1
Next State
Q1
Q0
0
Outputs
Z
0
0
0
0
0
0
0
1
12
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
0
1
0
1
1
1
0
1
0
0
0
0
0
0
0
1
13
We can also determine the next state for each input/current state
combination directly from the characteristic table
J
Q(t+1)
Operation
0
0
1
1
0
1
0
1
Q(t)
0
1
Q(t)
No change
Reset
Set
Complement
14
J0 = X + Q 1
K1 = X + Q 0
K0 = X
Present State
Q1
Q0
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
Inputs
X
J1
0
1
0
1
0
1
0
1
0
0
1
0
0
0
1
0
Flip-flop Inputs
K1
J0
0
1
1
1
0
1
1
1
0
1
0
1
1
1
1
1
K0
1
0
1
0
1
0
1
0
15
16
17
A different look
Present State Inputs Next State Outputs
Q1
Q0
X
Q1
Q0
Z
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
0
1
0
1
1
1
0
1
Output
Next State
Present State
Q1
Q0
0
0
0
0
0
0
0
1
Input
Input
X= 0
X= 1
X= 0
X= 1
18
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
0
0
0
1
0
1
1
1
0
1
0
0
0
0
0
0
0
1
output
0/0
00
0/0
11
1/0
1/0
1/1
0/0
01
1/0
0/0
10
state
19
1/0
1/0
1/1
0/0
01
1/0
0/0
10
20
21
Excitation Equations
D0 = EN Q0 + EN Q0
D1 = EN Q1 + EN Q1 Q0 + EN Q1 Q0
22
Q0(t+1) = D0 = EN Q0 + EN Q0
Q1(t+1) = D1 = EN Q1 + EN Q1 Q0 + EN Q1 Q0
MAX= EN Q1 Q0
23
Next State
Present State
Q1
Q0
MAX
Input
Input
EN= 0
EN= 1
X= 0
X= 1
1
24
Output
Next State
Present State
Q1
Q0
MAX
Input
Input
EN= 0
EN= 1
X= 0
X= 1
25
Moore Circuit
Remove input
connection to
output logic =>
Moore machine
26
Q0(t+1) = D0 = EN Q0 + EN Q0
Q1(t+1) = D1 = EN Q1 + EN Q1 Q0 + EN Q1 Q0
MAX= Q1 Q0
27
Output
Input
Input
Q0
EN= 0
EN= 1
Q1
MAX
28
Output
Next State
Present State
Q1
Q0
MAX
Input
Input
EN= 0
EN= 1
X= 0
X= 1
29
State Transitions
Find Boolean expressions for the outputs of the circuit and the
flip-flop inputs
Use these expressions to fill in the output and flip-flop input columns
in the state table
Finally, use the characteristic equation or characteristic table of the
flip-flop to fill in the next state columns.
31