Lecture9 Fall24
Lecture9 Fall24
M. ZAIN UDDIN 1
Sequential Circuit Analysis
DIGITAL LOGIC DESIGN
Presentation Outline
Analysis of Clocked Sequential circuits
◦ State Table
◦ State Diagram
1. Inputs
Analysis Procedure:
5. Fill the state table for all possible input and state values
Output Equation:
⨁ ⨁
Substituting:
From JK Input Equations to State
Table
JK Input Equations: , , and ⨁
From State Table to State
Diagram
Four states: (drawn as circles)
Arcs show the input value on the state transition
Mealy versus Moore Sequential
Circuits
There are two ways to design a clocked sequential circuit:
1. Mealy Machine: Outputs depend on present state and inputs
2. Moore Machine: Outputs depend on present state only
Mealy Machine
The outputs are a function of the present state and Inputs
The outputs may change if inputs change during the clock cycle
The correct outputs are present just before the edge of the clock
Mealy State Diagram
An example of a Mealy state diagram is shown on the
right
Input x 0 1 1 0 1 1 1 1 0
Present ? 0 0 1 0 0 1 1 1
State A B ? 0 1 0 0 1 0 0 0
Output z 0 0 0 0 0 0 1 1 0
Even though the initial state is unknown, the input x = 0 forces a transition to
state AB = 00, regardless of the present state
Sometimes, a reset input is used to initialize the state to 00
False Output in the Timing
Diagram
Cycle 0 1 2 3 4 5 6 7 8
Input x 0 1 1 0 1 1 1 1 0
Present ? 0 0 1 0 0 1 1 1
State A B ? 0 1 0 0 1 0 0 0
Output z 0 0 0 0 0 0 1 1 0
Negative edge-triggered
A
B
Moore Machine
The outputs are a function of the Flip-Flop outputs only
Cycle 0 1 2 3 4 5 6 7 8 0 0 1
Input x 0 1 1 0 1 1 1 1 0
11 10
Present ? 0 0 1 0 0 1 1 1 1 1 0
State A B ? 0 1 0 0 1 0 1 1
Output z ? 0 0 0 0 0 0 1 1 1
Timing Diagram of a Moore
Machine
Cycle 0 1 2 3 4 5 6 7 8
The output is
Input x 0 1 1 0 1 1 1 1 0
synchronized with the
Present ? 0 0 1 0 0 1 1 1
State A B clock. No false output
? 0 1 0 0 1 0 1 1
Output z ? 0 0 0 0 0 0 1 1 (or glitch) can appear.
Negative edge-triggered
A
B
Summary
To analyze a clocked sequential circuit:
1. Obtain the equations at the Inputs of the flip-flops
2. Obtain the Next State equations
◦ For a D Flip-Flop, the Next State = D input equation
◦ For T and JK, use the characteristic equation of the Flip-Flop