DLD Module-6
DLD Module-6
The present state and the external circuit determine the output
and the next state of sequential circuits.
The output variable, at all times The output variable depends not only on
1 depends on the combination of the present input but also depend upon the
input variables. past history of inputs.
5 Eg. MUX, Decoder, Parallel adder Eg. Counter, Shift Register, Serial adder
S R Qn Qn+1 State
0 0 0 x
Indeterminate*
0 0 1 x
0 1 0 1
Set
0 1 1 1
1 0 0 0
Reset
1 0 1 0
1 1 0 0
No Change (NC)
1 1 1 1
Truth table
EN S R Qn Qn+1 State
1 0 0 0 0
No Change (NC)
1 0 0 1 1
1 0 1 0 0
Reset
1 0 1 1 0
1 1 0 0 1
Set
1 1 0 1 1
1 1 1 0 x Indeterminate
1 1 1 1 x *
0 x x 0 0
No Change (NC)
0 x x 1 1
Truth table
Therefore, only two input conditions exists, either S=0 and R=1 or
S=1 and R=0.
EN D Qn Qn+1 State
1 0 x 0 Reset
1 1 x 1 Set
0 x x Qn No Change (NC)
Truth table
In this case, the term synchronous means that the output changes
state only at a specified point on the triggering input called the
clock (CLK), i.e., changes in the output occur in synchronization
with the clock. It can have only two states, either the 1 state or the
0 state.
When both S and R are LOW, the output does not change
from its prior state.
The D (delay or data) Flip-Flop has one input called delay input
and clock pulse input.
The data input J and the output Q’ are applied to the first AND
gate and its output (JQ’) is applied to the S input of SR Flip-Flop.
Case2: J= 0, K= 1
When J= 0 and K= 1, AND gate 1 is disabled i.e., S= 0 and R= 1. This
condition will reset the Flip-Flop to 0.
Case3: J= 1, K= 0
When J= 1 and K= 0, AND gate 2 is disabled i.e., S= 1 and R= 0. Therefore
the Flip-Flop will set on the application of a clock pulse.
Case4: J= K= 1
When J=K= 1, it is possible to set or reset the Flip-Flop. If Q is High, AND
gate 2 passes on a reset pulse to the next clock. When Q is low, AND gate 1 passes
on a set pulse to the next clock. Either way, Q changes to the complement of the last
state i.e., toggle. Toggle means to switch to the opposite state.
MODULE-6 ECE2003 – DIGITAL LOGIC DESIGN 46
FLIP-FLOPS
JK Flip flops
The function of JK flip flop using SR flip flop and AND gate can
also be performed by adding extra input terminal to input
terminals of NAND gates. Figure (b) shows the modified circuit of
JK flip flop which has only NAND gates.
In this shift register, data bits are entered into the register
in the same as serial-in serial-out shift register. But the
output is taken in parallel. Once the data are stored, each
bit appears on its respective output line and all bits are
available simultaneously instead of on a bit-by-bit.
There are four data input lines, X0, X1, X2 and X3 for
entering data in parallel into the register.
The number of Flip-Flops used and the way in which they are
connected determine the number of states (called the
modulus) and also the specific sequence of states that the
counter goes through during each complete cycle.
1/0 1/1
0/0
A B C
1/0 0/0
0/0
NOTE: For state C when input X=1 then it move to state B and produce the
output as 1. For all other cases the output remains 0.
MODULE-6 ECE2003 – DIGITAL LOGIC DESIGN 119
MEALY MODEL – EXAMPLE-1
STEPS TO DESIGN MEALY MODEL – SEQUENCE DETECTOR “101”
3. Construct state table with state values
Present Next
State Input State Output
Q1 Q0 X Q1 Q0 Z
0 0 0 0 0 0
0 0 1 0 1 0
0 1 0 1 0 0
0 1 1 0 1 0
1 0 0 0 0 0
1 0 1 0 1 1
D1 = Q0X’
D0 = X
Z = Q1X
NOTE: For state D when input X=1 then it move to state B and produce the
output as 1. For all other cases the output remains 0.
MODULE-6 ECE2003 – DIGITAL LOGIC DESIGN 126
MEALY MODEL – EXAMPLE-2
STEPS TO DESIGN MEALY MODEL – SEQUENCE DETECTOR “1001”
3. Construct state table with state values
NOTE: Number of flip flops required for the design is calculated based on number of
states. In this case number state is 4, so we need 2 flip flop for the design (22=4).
MODULE-6 ECE2003 – DIGITAL LOGIC DESIGN 129
MEALY MODEL – EXAMPLE-2
STEPS TO DESIGN MEALY MODEL – SEQUENCE DETECTOR “1001”
6. K-Map simplification procedures for driving expressions
Q0X Q0X
00 01 11 10 00 01 11 10
Q1 Q1
0 0 0 0 1 0 X X X X
1 X X X X 1 0 1 1 1
J1 = Q0X’ K1 = X + Q0
Q0X Q0X
00 01 11 10 00 01 11 10
Q1 Q1
0 0 1 X X 0 X X 0 1
1 1 1 X X 1 X X 0 1
J0 = Q1+X K0 = X’
Q0X
00 01 11 10
Q1
0 0 0 0 0
Z = Q1Q0X
1 0 0 1 0
MODULE-6 ECE2003 – DIGITAL LOGIC DESIGN 131
MEALY MODEL – EXAMPLE-2
STEPS TO DESIGN MEALY MODEL – SEQUENCE DETECTOR “1001”
7. Draw the logic diagram
1 1
0
A B C D
0 1 0 0 0 1 1
0
0
NOTE: In the given state table, the output will be 1 whenever its present
state is “D” irrespective of input X(0 or 1). For all other states output
remains 0.
MODULE-6 ECE2003 – DIGITAL LOGIC DESIGN 137
MOORE MODEL – EXAMPLE-1
STEPS TO DESIGN MOORE MODEL – SEQUENCE DETECTOR “101”
3. Construct state table with state values
Present Next
State Input State Output
Q1 Q0 X Q1 Q0 Z
0 0 0 0 0 0
0 0 1 0 1 0
0 1 0 1 0 0
0 1 1 0 1 0
1 0 0 0 0 0
1 0 1 1 1 0
1 1 0 1 0 1
1 1 1 0 1 1
Q0X
Q2Q1 00 01 11 10
00 0 0 0 0
01 0 0 0 0
11 X X X X
X’
X
MODULE-6 ECE2003 – DIGITAL LOGIC DESIGN 152