P08-Digital Systems - Lecture - 29-32
P08-Digital Systems - Lecture - 29-32
19CSE203
III Semester
B. Tech. CSE
Amrita School of Engineering,
Chennai
Combinational Circuit and Sequential Circuit
Sequential circuits include storage elements that store the values of the previous state of the system.
The contents of the storage elements are said to represent the state of the circuit.
A Simple Memory Element
If we assume that A = 0, then B = 1. The
circuit will maintain these values
indefinitely. If we assume that A = 1, then B
= 0, and the circuit will remain in this
second state indefinitely. Thus, the circuit
has two possible states. This circuit is not
useful, because it lacks some practical
means for changing its state.
A Memory Element with NOR gates
S Q
Symbol of SR Latch
R Q’
Clock
• A clock is that which continuously
alternates between 0 and 1. i.e. it is
continuous train of pulses
• The time it takes the clock to
change from 1 to 0 and back to 1
(or vice versa) is called the clock
period or clock cycle time.
• i.e. Cycle time of a clock is the sum
of its high duration and its low
duration. The length of the time the
clock is high before changing states
is it high duration and the length of
the time the clock is low before
changing states is it low duration
• The clock frequency is the inverse
of the clock period. The unit of
measurement for frequency is the
Hertz
• Clocks are often used to
synchronize circuits
Gated SR Latch with NAND gates
Clk S R Q(t+1) Q’(t+1) Remarks
0 x x Q(t) Q’(t) No change. Same as that of
the previous state
1 0 0 Q(t) Q’(t) No change. Same as that of
the previous state
1 0 1 0 1 Reset state
1 1 0 1 0 Set state
1 1 1 1 1 Invalid
Gated D (Data) Latch Clk D Q Q’ Remarks
0 x Q Q’ No change. Same as that
of the previous state
1 0 0 1 Q will be same as that
of D input
Clk D Qm Qs = Q Remarks
1 -ve 1 1 Previous At negative edge,
edge on output = Q whatever is value of D
0 Clk x 1 1 data input the same
value will appear on Q
Latch is a level
triggered one bit
storage device.
Master-Slave D flip-flop with Clear and Preset
Preset Clear D Input Q Output Remarks
0 0 Don’t Care Don’t Care Invalid
0 1 Don’t Care 1 Preset Condition
1 0 Don’t Care 0 Clear or Reset Condition
Clock = C = Clk
• When clk = 1 Mater Latch is active and when clk = 0 Slave latch is active. J K Flip-flop
(Master Slave)
• a) When J = 0 and K = 0, Master Latch input S = R = 0 therefore QM and QM’ will be
same as that of the previous value. Therefore, based on previous value on QM = 0/1 and
QM’ = 1/0, the output QS = 0/1 and QS’ = 1/0.
• b) When J = 0 and K = 1, Master Latch input S = 0 and R can not be defined hence we
assume
• Case i) If we assume at this time Q = 0 and Q’ = 1, then R = 0 hence QM and
QM’ will have the same previous value QM = 0 and QM’ = 1. This causes the
QS and QS’ to be 0 and 1 respectively (same as previous).
• Case ii) If we assume at this time Q = 1 and Q’ = 0, then R = 1 hence QM and
QM’ will have the value as QM = 0 and QM’ = 1. This causes the QS and QS’ to
be 0 and 1 respectively.
• Hence, we conclude that when J = 0 and K = 1, then Q = 0 and Q’ = 1
• c) When J = 1 and K = 0, Master Latch input R = 0 and S can not be defined hence we
assume
• Case i) If we assume at this time Q = 0 and Q’ = 1, then S = 1 hence QM = 1
and QM’ = 0. This causes the QS and QS’ to be 1 and 0 respectively.
• Case ii) If we assume at this time Q = 1 and Q’ = 0, then S = 0 hence QM and
QM’ will have the same previous value QM = 1 and QM’ = 0. This causes the
QS and QS’ to be 1 and 0 respectively (same as previous).
• Hence, we conclude that when J = 1 and K = 0, then Q = 1 and Q’ = 0
d) When J = 1 and K = 1, Master Latch input S and R inputs can not be defined
hence we assume
• Case i) If we assume at this time Q = 0 and Q’ = 1, then S = 1 and R = 0, hence
QM = 1 and QM’ = 0. This causes the QS and QS’ to be 1 and 0 respectively.
• Case ii) If we assume at this time Q = 1 and Q’ = 0, then S = 0 and R = 1, hence
QM = 0 and QM’ = 1. This causes the QS and QS’ to be 0 and 1 respectively.
• Hence, we conclude that when J = 1 and K = 1, then Q and Q’ toggles with
respect to the previous value and hence it is a valid output and removes the
drawback of the Master Slave SR flipflop where for S=R= 1, the output is
invalid as discussed before.
T (Toggle) Flip Flop
• As an exercise, derive the state table, K-map, and excitation table for an SR flip-flop from the
characteristic table.
SR = SR = SR = SR =
00 01 11 10
Q=0 0 0 x 1
Q=1 1 0 x 1
D=0 D=1
Characteristic Equation for D ff = Qnext = Q+ = D
Q=0 0 1
Q=1 0 1