Basic
Basic
Basic
Sequential Circuits
1
Synchronous Clocked
Sequential Circuit
A sequential circuit may use many flip-flops to store
as many bits as necessary. The outputs can come
either from the combinational circuit or from the flip-
flops or both.
2
Latches SR Latch
3
SR Latch with NAND Gates
4
SR Latch with Control Input
The operation of the basic SR latch can be modified
by providing an additional control input that
determines when the state of the latch can be
changed. In Fig. 5-5, it consists of the basic SR latch
and two additional NAND gates.
5
D Latch
One way to eliminate the undesirable condition of
the indeterminate state in SR latch is to ensure that
inputs S and R are never equal to 1 at the same time
in Fig 5-5. This is done in the D latch.
6
Graphic Symbols for latches
7
Flip-Flops
8
Clock Response in Latch
9
Clock Response in Flip-Flop
10
Edge-Triggered D Flip-Flop
D 110011…
Y 110011…
Q ? 1 1 0 0 1 ….
CLK
11
D-Type Positive-Edge-Triggered Flip-
Flop
12
Graphic Symbol for Edge-Triggered D Flip-
Flop
13
Other Flip-Flops JK Flip-
Flop
There are three operations that can be performed
with a flip-flop: set it to 1, reset it to 0, or
complement its output. The JK flip-flop performs all
three operations. The circuit diagram of a JK flip-flop
constructed with a D flip-flop and gates.
14
JK Flip-Flop
The J input sets the flip-flop to 1, the K input resets it
to 0, and when both inputs are enabled, the output is
complemented. This can be verified by investigating
the circuit applied to the D input:
D = J Q` + K` Q
15
T Flip-Flop
The T(toggle) flip-flop is a complementing flip-flop
and can be obtained from a JK flip-flop when inputs
J and K are tied together.
16
T Flip-Flop
17
Characteristic
Equations
D flip-flop Characteristic Equations
Q(t + 1) = D
18
Direct Inputs
19
D Flip-Flop with Asynchronous
Reset
20
D Flip-Flop with Asynchronous
Reset
21
Analysis of Clocked Sequential Circuits
22
State Equations
23
Fig. Example of Sequential Circuit
24
State Equation
A(t+1) = A(t) x(t) + B(t)
x(t)
25
State Table
26
State Diagram
27
Flip-Flop Input
Equations
The part of the combinational circuit that
generates external outputs is descirbed algebraically
by a set of Boolean functions called output equations.
The part of the circuit that generates the inputs to
flip-flops is described algebraically by a set of
Boolean functions called flip-flop input equations. The
sequential circuit of Fig. 5-15 consists of two D flip-
flops A and B, an input x, and an output y. The logic
diagram of the circuit can be expressed algebraically
with two flip-flop input equations and an output
equation: DA = Ax + Bx
DB = A`x
y = (A + B)x`
28
Analysis with D Flip-
Flop
29
Analysis with D Flip-
Flop
The binary numbers under Axy are listed from 000
through 111 as shown in Fig. 5-17(b). The next state
values are obtained from the state equation A(t+1)
=A x y
The state diagram consists of two circles-one for
each state as shown in Fig. 5-17(c)
30
Analysis with JK Flip-Flops
31
Analysis with JK Flip-
Flop
32
Analysis with JK Flip-
Flops
A(t + 1) = JA` + K`A
B(t + 1) = JB` + K`B
Substituting the values of JA and KA from the input
equations, we obtain the state equation for A:
33
Analysis with JK Flip-
Flops
34
Analysis With T Flip-
Flops
Characteristic equation
Q(t + 1) = T Q = T`Q +
TQ`
00/0 : means
state is 00
output is 0
35
Analysis With T Flip-Flops
Consider the sequential circuit shown in Fig. 5-20.
It has two flip-flops A and B, one input x, and one
output y. It can be described algebraically by two
input equations and an output equation: Use present state
as inputs
TA = Bx
TB = x
y = AB
A(t+1)=(Bx)’A+(Bx)A’
=AB’+Ax’+A’Bx
B(t+1)=xB
36
Mealy and Moore Models
(1)
37
Mealy and Moore Models
(2)
38
5-6 State Reduction and
Assignment
39
State Reduction
Example :
state a a b c d e f f g f ga
input 0 1 0 1 0 1 10 10 0
output 0 0 0 0 0 1 1 0 1 0 0
Initial point
41
State Reduction
We now proceed to reduce the number of states for
this example. First, we need the state table; it is
more convenient to apply procedures for state
reduction using a table rather than a diagram. The
state table of the circuit is listed in Table 5-6 and is
obtained directly from the state diagram.
42
State Reduction
States g and e are two such states: they both go to
states a and f and have outputs of 0 and 1 for x=0 and
x=1, respectively. Therefore, states g and e are
equivalent and one of these states can be removed.
The procedure of removing a state and replacing it by
its equivalent is demonstrated in Table 5-7. The row
with present g is
removed and state
g is replaced by state
e each time it occurs
in the next-state
columns.
43
State Reduction
Present state f now has next states e and f and
outputs 0 and 1 for x=0 and x=1, respectively. The
same next states and outputs appear in the row with
present state d. Therefore, states f and d are
equivalent and state f can be removed and replaced
by d. The final reduced table is shown in Table 5-8. The
state diagram for the reduced table consists of only
five
states and is shown
in Fig. 5-23.
44
State Reduction
45
State Assignment
46
Design Procedure
48
Synthesis Using D Flip-Flops
A(t + 1) = DA(A, B, x) = ∑ (3, 5,
7)
B(t + 1) = DB(A, B, x) = ∑ (1, 5,
7)
y(A, B, x) = ∑ (6, 7)
49
Synthesis Using D Flip-Flops
DA = Ax +Bx
DB = Ax + B`x
y = AB
50
Synthesis Using D Flip-Flops
51
Synthesis Using JK Flip-Flops
52
Synthesis Using JK Flip-Flops
53
Synthesis Using JK Flip-Flops
54
Synthesis Using T Flip-Flops
The synthesis using T flip-flops will be demonstrated
by designing a binary counter. An n-bit binary
counter consists of n flip-flops that can count in
binary from 0 to 2n-1. The state diagram of a 3-bit
counter is shown in Fig. 5-29.
56
Synthesis Using T Flip-Flops
57
Synthesis Using T Flip-Flops
58