Sequential Circuit Analysis
Sequential Circuit Analysis
State tables show the inputs, outputs, and flip-flop state changes
for sequential circuits. State diagrams are an alternative but equivalent way of showing the same information.
Inputs
Outputs
Finding the next states is harder. To do this, we have to figure out how the flip-flops are changing. Step 1: Find Boolean expressions for the flip-flop inputs. I.e. How do the inputs (say, J & K) to the flip-flops depend on the current state and input Step 2: Use these expressions to find the actual flip-flop input values for each possible combination of present states and inputs. I.e. Fill in the state table (with new intermediate columns) Step 3: Use flip-flop characteristic tables or equations to find the next states, based on the flip-flop input values and the present states.
J
Q1
K 0 1 0 1
J1 K1
S J Q C KR Q
Q0
J Q C K2 K R Q
J2
0 0 1 1
Z
We can also determine the next state for J K each input/current state combination 0 0 directly from the characteristic table.
0 1 1
Sequential circuit analysis
1 1
Blank Sheet
Q (t) 0 0 1 1 Q (t+1) 0 1 0 1 D 0 1 0 1 Ope ation r Re t se St e Re t se St e
Input:X,Y. Input Sequence: a binary number of arbitrary length. Sequence represented by sequential values of X. Output: Z, the corresponding bit in the twos complement. When y=1 => the sequence is complete, Y=0 => Sequence ongoing.
Solution: The trick is in identifying that whenever we compute a 2's complement, we complement each bit and add a 1. So as long as we keep receiving 0's, we complement them to convert to 1's and then we add a 1. So until we hit our first 1, we stay on the same state outputting 0's. As soon as we hit a 1, the complement for that is a 0 to which we add a 1 getting a 1. And then we have no carry so we move onto a state where we just complement each bit we receive.
10
Blank Sheet
Q(t) 0 0 1 1 Q(t+1) 0 1 0 1 J 0 1 x x K x x 1 0 Operation No change/reset Set/complement Reset/complement No change/set
11
Q (t) 0 0 1 1
Q (t+1) 0 1 0 1
J 0 1 x x
K x x 1 0
Q (t) 0 0 1 1
Q (t+1) 0 1 0 1
T 0 1 1 0
Summary
The basic sequential circuit design procedure: Make a state table and, if desired, a state diagram. This step is usually the hardest. Assign binary codes to the states if you didnt already. Use the present states, next states, and flip-flop excitation tables to find the flip-flop input values. Write simplified equations for the flip-flop inputs and outputs and build the circuit. Next, well look at common examples of sequential circuits, including different types of counters.
13