LEC7 (2)
LEC7 (2)
LEC
Sequential Circuits and FSM
7 Textbook chapter 3
D = JQ + K Q
J=1, K=0, D = Q + Q=1
J=0, K=1, D = 0
J=0, K=0, D = Q
J=1, K=1, D = Q
4
JK flip-flop
Q
6
Characteristic Equations
• The characteristic equation states the next state in
terms of inputs and the present state
• For the D flip-flop:
Q(t+1) =D
• For the JK flip-flop:
Q(t+1) = JQ + K Q
• For the T flip-flop:
Q(t+1) = TQ + T Q= TQ
7
Direct Inputs
1
1
• The bubble along the input indicates that the reset is active at the logic-0
level, i.e. when R = 0, the output is reset to 0
• The upward arrow indicate that the flip-flop triggers on the positive edge
of the clock
10
ANALYSIS OF CLOCKED SEQUENTIAL
CIRCUITS
• Analysis describes what a given circuit will
do under certain operating conditions
• The analysis of a clocked sequential circuit
consisting of obtaining a State diagram
11
State Equations: transition equation
• The behavior of a clocked sequential
circuit can be described algebraically
by means of state equations. A
• A state equation specifies the next
state as a function of the present state
and inputs.
A(t + 1) = A(t) x(t) + B(t) x(t)
B(t + 1) = A(t)’x(t)
B
y(t) = [A(t) + B(t)] x(t)’
OR SIMPLY
A(t + 1) = A x + B x
B(t + 1) = A’x
The state table
A(t+1) = Ax + Bx
B(t+1) = A x
y = x [B + A]
13
• State diagram :
– circle : the state name
– directed arc : transition from the Present State to the
Next State
– The directed lines are labeled with two binary numbers
separated by a slash.
input /output
14
State diagram
• Define all possible states
• Determine the flow from state to another
according to the state table.
Qn J K Qn+1
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1 S0=0 and S1=1
1 0 1 0
1 1 0 1
1 1 1 0
15
0/0 0/1 1/0
State Diagram 00 10
0/1
0/1 means x=0/y=1
1/0
1/0
INPUT OUTPUT 0/1
01 11
1/0
16
Example
Now consider the sequential circuit
shown in Fig. 5.20 . It can be described
algebraically by two input equations and
an output equation:
TA = Bx
TB = x
y = AB
26