15CS202 DSD Unit4
15CS202 DSD Unit4
3
15CS202 – DIGITAL SYSTEM DESIGN
(Regulations 2015)
UNIT -IV
SYNCHRONOUS SEQUENTIAL
CIRCUITS
OUTLINE
• FlipFlops SR,D,JK,T
• Analysis of Synchronous Sequential Circuit
• State Reduction and Assignment
• Design-Sequence Detector
• BCD Counter
• Registers-Shift Register
• Analysis
Sequential Circuits
3
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.
4
Latches --SR Latch
The SR latch is a circuit with two cross-coupled NOR gates or
two cross-coupled NAND gates. It has two inputs labeled S
for set and R for reset.
5
SR Latch with NAND Gates
6
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.
7
D Latch
8
Graphic Symbols for latches
A latch is designated by a rectangular block with inputs on
the left and outputs on the right. One output designates the
normal output, and the other designates the complement
output.
9
Flip-Flops
10
Clock Response in Latch
11
Clock Response in Flip-Flop
12
Edge-Triggered D Flip-Flop
The first latch is called the master and the second the
slave. The circuit samples the D input and changes its output
Q only at the negative-edge of the controlling clock.
D 110011…
Y 110011…
Q ? 1 1 0 0 1 ….
CLK
13
D-Type Positive-Edge-Triggered Flip-
Flop
Another more efficient construction of an edge-triggered D
flip-flop uses three SR latches. Two latches respond to the
external D(data) and CLK(clock) inputs. The third latch
provides the outputs for the flip-flop.
14
Graphic Symbol for Edge-
Triggered D Flip-Flop
15
Other Flip-Flops -JK Flip-Flop
16
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
17
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.
18
T Flip-Flop
The T flip-flop can be constructed with a D flip-flop and
an exclusive-OR gates as shown in Fig. (b). The
expression for the D input is
D=T Q = TQ` + T`Q
19
Characteristic Equations
Q(t + 1) = D
20
Direct Inputs
Some flip-flops have asynchronous inputs that are used to
force the flip-flop to a particular state independent of the clock.
The input that sets the flip-flop to 1 is called present or direct
set. The input that clears the flip-flop to 0 is called clear or
direct reset. When power is turned on a digital system, the state
of the flip-flops is unknown. The direct inputs are useful for
bringing all flip-flops in the system to a known starting state
prior to the clocked operation.
21
D Flip-Flop with Asynchronous Reset
22
D Flip-Flop with Asynchronous Reset
23
Analysis of Clocked Sequential Circuits
24
Example of Sequential Circuit
25
State Equation
26
State Equations
27
State Table
The time sequence of inputs, outputs, and flip-flop states
can be enumerated in a state table (sometimes called
transition table).
28
State Diagram
29
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`
30
Analysis with D Flip-Flop
31
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)
32
Analysis with JK Flip-Flops
33
Analysis with JK Flip-Flop
JA = B KA = Bx`
JB = x` KB = A`x + Ax` = A x
34
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:
The state equation provides the bit values for the column
under next state of A in the state table. Similarly, the state
equation for flip-flop B can be derived from the characteristic
equation by substituting the values of JB and KB:
35
Analysis with JK Flip-Flops
36
Analysis With T Flip-Flops
Characteristic equation
Q(t + 1) = T Q = T`Q + TQ`
00/0 : means
state is 00
output is 0
37
Analysis With T Flip-Flops
A(t+1)=(Bx)’A+(Bx)A’
=AB’+Ax’+A’Bx
B(t+1)=xB
38
Synthesis Using T Flip-Flops
39
State Reduction and Assignment
State Reduction and Assignment
(Contd.)
State Reduction and Assignment
(Contd.)
State Reduction and Assignment
(Contd.)
State Reduction and Assignment
(Contd.)
State Assignment
JK Flip-Flop T Flip-Flop
Present Next
State Input State Flip-Flop Inputs
A B x A B JA KA JB KB
0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0
0 1 0 0 1 0 1 0 1
1 0 1 1 0 1 0 1 0
1 0 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1
1 1 1 0 0 0 0 0 0
Maps for J and K Input Equations
JK Flip-Flop Sequence Detector
Registers and Counter
56
UP-DOWN COUNTER
BCD Counter
58
BCD Counter
61
An Example of Counter
Registers
64
Shift Registers
65
Shift Registers
66
THANK YOU