Sequential Circuit Analysis
Sequential Circuit Analysis
Analysis Procedure:
1. Obtain the equations at the inputs of the Flip-Flops
2. Obtain the output equations
3. Fill the state table for all possible input and state values
4. Draw the state diagram
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 3
Analysis Example
Is this a clocked sequential circuit?
YES!
What type of Memory?
D Flip-Flops
How many state variables?
Two state variables: and
What are the Inputs?
One Input:
What are the Outputs?
One Output:
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 4
Flip-Flop Input Equations
What are the equations on the inputs of the flip-flops?
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 6
State Table
State table shows the Next State and Output in a tabular form
Output Equation: ′
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 7
State Diagram
State diagram is a graphical representation of a state table
The circles are the states
Two state variable Four states (ALL values of and )
Arcs are the state transitions
Labeled with: Input / Output
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 8
Combinational versus Sequential Analysis
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 9
Example with Output = Current State
Analyze the sequential circuit shown below
Two inputs: and
One state variable
No separate output Output = current state
Obtain the next state equation, state table, and state diagram
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 10
Example with Output = Current State
⨁ ⨁
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 11
Sequential Circuit with T Flip-Flops
For JK Flip-Flop: +1 = + ( )
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 13
Sequential Circuit with T Flip-Flops
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 14
From Next State Equations to State Table
T Flip-Flop Input Equations:
+1 ⨁
1 ⨁
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 17
JK Input and Next State Equations
JK Flip-Flop Input Equations:
= and = ′
= ′ and = ⨁
Substituting:
1
1 ⨁ ′
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 18
From JK Input Equations to State Table
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 19
From State Table to State Diagram
Four states: = 00, 01, 10, !" 11 (drawn as circles)
Arcs show the input value on the state transition
Analysis of Clocked Sequential Circuits COE 202 – Digital Logic Design © Muhamed Mudawar – slide 20