Unit II-Sequential-Ckt
Unit II-Sequential-Ckt
Unit II-Sequential-Ckt
Ckt
Lecture 11: Sequential
Logic Latches & Flip-
flops
Introduction
Memory Elements
Pulse-Triggered Latch
S-R Latch
Gated S-R Latch
Gated D Latch
Edge-Triggered Flip-
flops
S-R Flip-flop
D Flip-flop
J-K Flip-flop
T Flip-flop
Asynchronous Inputs
Introduction
A sequential circuit consists of a feedback path,
and employs some memory elements.
Combinational
output Memory
s outputs
Combinational Memory
logic elements
External inputs
Memor Q
comman y stored
d eleme value
nt
Characteristic
table: Comman Q(t) Q(t+1)
d (at Q(t): current state
time t)
Set X 1 Q(t+1) or Q+: next
Reset X 0 state
Memorise 0 0
/ No 1 1
Change
Memory
Memory element with clock. Flip-flops are
Elements
memory elements that change state on
clock signals.
Memor Q
comman y stored
d eleme value
nt
clock
Clock is usually a
square wave.
Positive
pulses
Positive Negative
edges edges
Memory
Two types of triggering/activation:
Elements
pulse-triggered
edge-triggered
Pulse-triggered
latches
ON = 1, OFF = 0
Edge-triggered
flip-flops
positive edge-triggered (ON = from 0 to 1; OFF =
other time)
negative edge-triggered (ON = from 1 to 0; OFF =
other time)
S-R
Complementary outputs: Q and Q'.
Latch
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) ->
RESET state S=HIGH (and
R=LOW)-> SET
state both inputs LOW ->no
change
both inputs HIGH ->Q and Q' both
LOW (invalid)!
Block Diagram:
Circuit Diagram:
S-R
For active-LOW input S'-R' latch (also known as
LatchNAND gate latch),
R'=LOW (and S'=HIGH) - RESET
state S'=LOW (and R'=HIGH) - SET
state both inputs HIGH - no
change
both inputs LOW - Q and Q' both
HIGH (invalid)!
Drawback of S-R latch: invalid condition
exists and must be avoided.
S-R
Characteristics table for active-high input S-
LatchR latch:
S R Q Q'
0 0 NC NC No change. Latch
remained in present state. S Q
1 0 1 0 Latch SET.
0 1 0 1 Latch RESET. R Q'
1 1 0 0 Invalid condition.
D
Q D Q
EN EN
Q' Q'
Gated D
When EN is HIGH,
Latch D=HIGH latch is SET
D=LOW latch is RESET
Clock signal
Positive Negative
edges edges
Edge-Triggered Flip-
S-R, D and J-K edge-triggered flip-flops. Note
flopsthe “>” symbol at the clock input.
S Q D Q J Q
C C C
R Q' Q' K Q'
S Q D Q J Q
C C C
R Q' Q' K Q'
CLK' CLK'
CLK CLK* CLK CLK*
CLK CLK
CLK' CLK'
CLK* CLK*
Positive-going Negative-going
transition transition
(rising edge) (falling edge)
D Flip-
D flip-flop: single input D (data)
flop D=HIGH 🢧 SET state
D=LOW 🢧 RESET state
CLK
Q'
X
Combinational Y D Q Q2 = Y*
logic circuit
Z CLK
Q'
D Q Q3 = Z*
Transfer CLK
Q'
Characteristic Q J K Q(t+1)
table.
J K CLK Q(t+1) Comments 0 0 0 0
0 0 Q(t) No change 0 0 1 0
0 1 0 Reset 0 1 0 1
1 0 1 Set 0 1 1 1
1 1 Q(t)' Toggle 1 0 0 1
1 0 1 0
1 1 0 1
Q(t+1) = J.Q' +
1 1 1 0
K'.Q
T Flip-
T flip-flop: single-input version of the J-K
flop flip flop, formed by tying both inputs
together.
T
Q T J
Pulse Q
CLK transition CLK C
detector
Q' K Q'
Characteristic
table.
T CLK Q(t+1) Comments Q T Q(t+1)
0 Q(t) No 0 0 0
change 0 1 1
1
Q(t)' Toggle 1 0 1
1 1 0
Q(t+1) = T.Q' +
T'.Q
T Flip-
Application: Frequency
flop division.
High
High J QA QB
Q J J
CLK High C CLK C C
K K K
CLK CLK
Q QA
QB
J
Q
J Q Pulse
C transition
CLK
detector
K Q' Q'
K
CLR CLR
CLK
PRE
CLR
Q
J=K= Preset Toggle Clear
HIGH
Assignment