Professional Documents
Culture Documents
Introduction
A sequential
q circuit consists of a ffeedback ppath, and
employs some memory elements.
Combinational
outputs Memory outputs
Combinational Memoryy
logic elements
External inputs
Sequential circuit = Combinational logic + Memory Elements
Introduction
There are two types of sequential circuits:
synchronous:
h outputs
t t change
h only
l att specific
ifi ti
time
asynchronous: outputs change at any time
Multivibrator:
M lti ib t a class
l off sequential
ti l circuits.
i it Th They can bbe:
bistable (2 stable states)
monostable or one
one-shot
shot (1 stable state)
astable (no stable state)
Memory Q
command
d element
l t stored
d value
l
Characteristic table:
Command Q(t) Q(t+1)
(at time t) Q(t): current state
Reset X 0
Memorise / 0 0
No Change 1 1
Memory Elements
Memory element with clock
clock. Flip
Flip-flops
flops are memory
elements that change state on clock signals.
Memory Q
command
d element stored
t d value
l
clock
Clock
Cl k is usually
ll a square wave.
Positive pulses
10 100 R S R Q Q
Q'
Q 11000 1 0 1 0 initial
0 0 1 0 (afer S=1, R=0)
0 1 0 1
Q' 0 0 1 1 0 0 0 0 1 (after S=0, R=1)
10 001 S
Active-LOW input S’-R’ latch 1 1 0 0 invalid!
S' Q
S' R' Q Q'
R'
R Q'
S'
S 1 0 0 1 initial
Q 1 1 0 1 (afer S'=1, R'=0)
0 1 1 0
1 1 1 0 (after S'=0, R'=1)
Q'
Q
R' 0 0 1 1 i lid!
invalid!
Gated S-R Latch
S
Q S
Q
EN
EN
R Q'
Q'
Q
R
Gated D Latch
Make R input equal to S' → gated D latch.
D latch eliminates the undesirable condition of invalid state
in the S-R latch.
D
Q D
Q
EN
EN
Q'
Q'
Q
Gated D Latch
When EN is HIGH,
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)
Q(t 1)
1 0 0 Reset
1 1 1 Set
0 X Q(t) No change
Clock signal
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'
Negative
g edge-triggered
g gg flip-flops
p p
J-K Flip-flop
JJ-K
K flip
flip-flop:
flop: Q and Q
Q' are fed back to the pulse
pulse-steering
steering
NAND gates.
No invalid state.
Include a toggle state.
JJ=HIGH
HIGH (and K LOW) D SET state
K=LOW)
K=HIGH (and J=LOW) D RESET state
both inputs LOW D no change
both inputs HIGH D toggle
J-K Flip-flop
J-K flip-flop.
J
Q
Pulse
CLK transition
detector
Q'
K
Characteristic table.
Q J K Q(t+1)
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
1 1 ↑ Q(t)' Toggle 0 1 1 1
1 0 0 1
Q(t+1) = J.Q
J Q' + K
K'.Q
Q 1 0 1 0
1 1 0 1
1 1 1 0
T Flip-flop
T flip-flop: single-input version of the J-K flip flop,
formed by tying both inputs together.
T
Q T J
Pulse Q
CLK t
transition
iti CLK C
detector
Q' K Q'
Characteristic table.
T CLK Q(t+1) Comments Q T Q(t+1)
0 ↑ Q(t) No change 0 0 0
1 ↑ Q(t)' Toggle 0 1 1
1 0 1
1 1 0
Q(t+1) = T.Q
T Q' + T
T'.Q
Q
T Flip-flop
J J QA J QB
Q
CLK C CLK C C
K K K
CLK CLK
Q QA
QB
Application: Counter
Asynchronous Inputs
S-R, D and J-K inputs are synchronous inputs, as data on
these inputs are transferred to the flip-flop’s output only
on the triggered edge of the clock pulse.
pulse
Asynchronous inputs affect the state of the flip-flop
independent of the clock; example: preset (PRE) and clear
(CLR) [or direct set (SD) and direct reset (RD)]
When PRE=HIGH,, Q is immediatelyy set to HIGH.
When CLR=HIGH, Q is immediately cleared to LOW.
Flip-flop
Flip flop in normal operation mode when both PRE and
CLR are LOW.
Asynchronous Inputs
A J-K flip-flop with active-LOW preset and clear inputs.
PRE PRE
J
Q
J Q Pulse
C t
transition
iti
CLK
detector
K Q' Q'
K
CLR CLR
CLK
PRE
CLR
Q
J = K = HIGH Preset Toggle Clear
Introduction: Counters
J Q0 J Q1
CLK C C
Q0
K K
FF0 FF1
CLK 1 2 3 4
Q0 Timing diagram
Q0 0 1 0 1 0 00 → 01 → 10 → 11 → 00 ...
Q1 0 0 1 1 0
Asynchronous (Ripple) Counters
J Q0 J Q1 J Q2
CLK C Q0 C Q1 C
K K K
FF0 FF1 FF2
CLK 1 2 3 4 5 6 7 8
Q0 0 1 0 1 0 1 0 1 0
Q1 0 0 1 1 0 0 1 1 0
Q2 0 0 0 0 1 1 1 1 0
Recycles back to 0
Asynchronous (Ripple) Counters
CLK 1 2 3 4
Q0
Q1
Q2
tPHL (CLK to Q0) tPHL (CLK to Q0)
tPLH (Q0 to Q1) tPHL (Q0 to
t Q1)
tPLH
(CLK to Q0) tPLH (Q1 to Q2)
n
Asyn Counters with MOD no
Asyn. no. < 2
C B A
Q J Q J Q J
All J, K CLK CLK CLK
inputs Q K Q K Q K
CLR CLR CLR
are 1
(HIGH). B
C
n
Asyn Counters with MOD no
Asyn. no. < 2
Example (cont’d):
C B A
Q J Q J Q J
All J, K CLK CLK CLK
inputs Q K Q K Q K
CLR CLR CLR
are 1
(HIGH)
(HIGH). B
C
1 2 3 4 5 6 7 8 9 10 11 12
Clock MOD-6 counter
A produced by
clearing (a MOD-8
B
y counter))
binary
C when count of six
NAND 1 (110) occurs.
Output 0
n
Asyn Counters with MOD no
Asyn. no. < 2
HIGH
D C B A
J Q J Q J Q J Q
CLK C C C C
K K K K
CLR CLR CLR CLR
n
Asyn Counters with MOD no
Asyn. no. < 2
0
1 2 3 4 5 6 7 8 9 10 11
Clock 0
D 0 1 0 1 0 1 0 1 0 1 0
C 0 0 1 1 0 0 1 1 0 0 0
B 0 0 0 0 1 1 1 1 0 0
A 0 0 0 0 0 0 0 0 1 1
NAND
output
Cascading Asynchronous Counters
J Q J Q J Q J Q J Q
CLK C C C C C
Q' K Q' Q' K Q' K Q'
K K
CLK
Synchronous (Parallel) Counters
0 0 0 0 0 1 0 0 1
0 0 1 0 1 0 0 1 1
0 1 0 0 1 1 0 0 1
0 1 1 1 0 0 1 1 1
1 0 0 1 0 1 0 0 1
1 0 1 1 1 0 0 1 1
1 1 0 1 1 1 0 0 1
1 1 1 0 0 0 1 1 1
A1 A1 A1
1 1 1 1 1 1 1
A2 1 A2 1 1 A2 1 1 1 1
A0 A0 A0
Q Q Q
J K J K J K
CP
1
Synchronous (Parallel) Counters
1 A1.A0 A2.A1.A0
A0 J A1 J A2 J A3
J Q Q Q Q
C C C C
Q' K Q' K Q' K Q'
K
CLK
Synchronous (Parallel) Counters
Clock pulse Q3 Q2 Q1 Q0
Initially 0 0 0 0
1 0 0 0 1
2 0 0 1 0 T0 = 1
3 0 0 1 1
4 0 1 0 0 T1 = Q3'.Q0
5 0 1 0 1
6 0 1 1 0 T2 = Q1.Q0
7 0 1 1 1
8 1 0 0 0 T3 = Q2.Q1.Q0 + Q3.Q0
9 1 0 0 1
10 (recycle) 0 0 0 0
Synchronous (Parallel) Counters
Q0
1 T T Q1 T Q2 T Q3
Q Q Q Q
C C C C
Q' Q' Q' Q'
CLK
Up/Down Synchronous Counters
Q0 Q1
1 T T T Q2
Q Q Q
Up C C C
Q' Q' Q'
CLK
Introduction: Registers
A3 A2 A1 A0
Q Q Q Q
D D D D
CP
I3 I2 I1 I0
Registers With Parallel Load
D Q A1
I1
D Q A2
I2
D Q A3
I3
CLK
CLEAR
Using Registers to implement
S
Sequential
ti l Ci
Circuits
it
Register Combin-
Clock ational
circuit
Inputs Outputs
The external inputs and present states of the register
determine the next states of the register and the
external outputs, through the combinational circuit.
The combinational circuit mayy be implemented
p by
y any
y
of the methods covered in MSI components and
Programmable Logic Devices.
Shift Registers
(a) Serial in/shift right/serial out (b) Serial in/shift left/serial out
Data in Data in
Data in
Data out
Data out
(c) Parallel in/serial out (d) Serial in/parallel out
Data out
(e) Parallel in /
(g) Rotate left parallel out
(f) Rotate right
Serial In/Serial Out Shift Registers
Accepts data serially – one bit at a time – and also produces
output serially.
Serial
S i l data
d t Q0 Q1 Q2 Q3 Serial
S i l data
d t
D Q D Q D Q D Q
input output
C C C C
CLK
Serial In/Serial Out Shift Registers
Application: Serial transfer of data from one register to
another.
SI SO SI SO
Shift register A Shift register B
Clock CP
Shift control
Clock
Shift Wordtime
control
CP
T1 T2 T3 T4
P ll l In/Serial
Parallel I /S i l Out
O t Shift R
Registers
gi t
D0 D1 D2 D3
SHIFT/LOAD
Serial
D Q D Q D Q D Q data
Q0 Q1 Q2 Q3 out
C C C C
CLK
SHIFT.Q0 + SHIFT'.D1
P ll l In/Serial
Parallel I /S i l Out
O t Shift R
Registers
gi t
Data in
D0 D1 D2 D3
SHIFT/LOAD SRG 4
Serial data out
CLK C
Logic
g symbol
y
P ll l In/Parallel
Parallel I /P ll l Out
O t Shift R
Registers
gi t
D0 D1 D2 D3
D Q D Q D Q D Q
C C C C
CLK
Q0 Q1 Q2 Q3