Sequential Circuits - Module 5
Sequential Circuits - Module 5
Combinational Memory
logic elements
External inputs
Sequential circuits are digital circuits in which the outputs depend not only
on the current inputs, but also on the previous state of the output.
Example Needing Bit Storage
Memory Q
command element stored value
▪ Characteristic table:
Command Q(t) Q(t+1)
(at time t) Q(t): current state
Set X 1
Q(t+1) or Q+: next state
Reset X 0
Memorise / 0 0
No Change 1 1
SR Latch
Latches
• SR Latch
S R Q0 Q Q’
0 0 0 0 1 Q = Q0
R 0 0
Q
S Q
0 1
Initial Value
Latches
• SR Latch
S R Q0 Q Q’
0 0 0 0 1 Q = Q0
0 0 1 1 0 Q = Q0
R 0 1
Q
S Q
0 0
Latches
• SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1 Q=0
R 1 0
Q
S Q
0 1
Latches
• SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1 Q=0
R 1 1
Q
0 1 1 0 1 Q=0
S Q
0 0
Latches
• SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1
R 0
Q=0
0 0 1 1 0 1
Q 1 0 0 1 0 Q=1
S Q
1 1
Latches
• SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1
R 0
Q=0
1 0 1 1 0 1
Q 1 0 0 1 0 Q=1
1 0 1 1 0 Q=1
S Q
1 0
Latches
• SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1
R 1
Q=0
0 0 1 1 0 1
Q 1 0 0 1 0
Q=1
1 0 1 1 0
1 1 0 0 0 Q = Q’
S Q
1 10
Latches
• SR Latch
S R Q0 Q Q’
0 0 0 0 1
Q = Q0
0 0 1 1 0
0 1 0 0 1
R 1
Q=0
10 0 1 1 0 1
Q 1 0 0 1 0
Q=1
1 0 1 1 0
1 1 0 0 0 Q = Q’
1 1 1 0 0 Q = Q’
S Q
1 0
Latches
• SR Latch
S R Q
R Q Q0 No change
0 0
0 1 0 Reset
1 0 1 Set
S Q 1 1 Q=Q’=0 Invalid
S S R Q
Q
0 0 Q=Q’=1 Invalid
0 1 1 Set
1 0 0 Reset
R Q
1 1 Q0 No change
S-R Latch
▪ Complementary outputs: Q and Q'.
▪ When Q is HIGH, the latch is in SET state.
▪ When Q is LOW, the latch is in RESET state.
▪ For active-HIGH input S-R latch (also known as NOR
gate latch),
R=HIGH (and S=LOW) a RESET state
S=HIGH (and R=LOW) a SET state
both inputs LOW a no change
both inputs HIGH a Q and Q' both LOW (invalid)!
S-R Latch
▪ For active-LOW input S'-R' latch (also known as
NAND gate latch),
R'=LOW (and S'=HIGH) a RESET state
S'=LOW (and R'=HIGH) a SET state
both inputs HIGH a no change
both inputs LOW a Q and Q' both HIGH (invalid)!
En S R Q
0 x x Q0 No change
1 0 0 Q0 No change S S
Q
1 0 1 0 Reset
En
1 1 0 1 Set
R Q
1 1 1 Q=Q’ Invalid R
Controlled Latches
• NOR Based SR Latch with Control Input
E S R Q
0 x x Q0 No change
1 0 0 Q0 No change
1 0 1 0 Reset
1 1 0 1 Set
1 1 1 Q=Q’ Invalid
D Latch
• One way to eliminate the undesirable indeterminate
state in the RS flip flop is to ensure that inputs S and
R are never 1 simultaneously. This is done in the D
latch:
Gated D Latch
▪ When EN is HIGH,
❖ D=HIGH → latch is SET
❖ D=LOW → latch is RESET
▪ Hence when EN is HIGH, Q ‘follows’ the D (data)
input.
▪ Characteristic table:
EN D Q(t+1)
1 0 0 Reset
1 1 1 Set
0 X Q(t) No change
▪ Pulse-triggered/level triggering(Latches)
◆ High-level sensitive
◆ Low-level sensitive
▪ Edge-triggered (Flip-flops)
◆ Rising (positive) edge triggered(ON = from 0 to 1; OFF = other time)
◆ Falling (negative) edge triggered (ON = from 1 to 0; OFF = other time)
◆ Dual-edge triggered
Controlled Latches
• D Latch (D = Data/Delay) Timing Diagram
D S C
Q
C D
R Q
Q
C D Q Output may
0 x Q0 No change change
1 0 0 Reset
1 1 1 Set
CLOCK SIGNAL
➢ The clock signal is generally a rectangular pulse train that has
fixed interval.
➢ The clock signal used to synchronize the operations of an
electronic system.
Flip-flop:
➢ Bistable memory device with edge-triggering (with clock), samples its
inputs, and changes its output only at times determined by a clocking
signal.
➢ It works on basis of clock pulse.
Edge-Triggered Flip-flops
▪ Flip-flops: synchronous bistable devices
▪ Output changes state at a specified point on a triggering
input called the clock.
▪ Change state either at the positive edge (rising edge) or at
the negative edge (falling edge) of the clock signal.
Clock signal
D S CLK
Q
CLK D
R Q
Q
t
CLK D Q
Output may
0 x Q0 No change
change
1 0 0 Reset
1 1 1 Set
SR Flip-flop
• NAND Based SR Flip-flop
CLK S R Q
0 x x Q0 No change
1 0 0 Q0 No change S S
Q
1 0 1 0 Reset
CLK
1 1 0 1 Set
R Q
1 1 1 Q=Q’ Invalid R
Edge-Triggered Flip-flops
▪ S-R, D and J-K edge-triggered flip-flops. Note the “>” symbol at the
clock input.
S D J Q
Q Q
C C C
R K
Q' Q' Q'
S D Q J Q
Q
C C C
R K
Q' Q' Q'