A Consists of A, and Employs Some .: Sequential Circuit
A Consists of A, and Employs Some .: Sequential Circuit
A Consists of A, and Employs Some .: Sequential Circuit
Combinational Memory
logic elements
External inputs
CS1104-11 Introduction 1
Memory Elements
Memory element: a device which can remember
value indefinitely, or change value on command
from its inputs.
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
Memory Q
command element stored value
clock
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)
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'
CS1104-11 SR Flip-flop 14
S-R Flip-flop
It comprises 3 parts:
a basic NOR latch
a pulse-steering circuit
a pulse transition detector (or edge detector) circuit
CS1104-11 SR Flip-flop 15
S-R Flip-flop
The pulse transition detector.
S
Q
Pulse
CLK transition
detector
Q'
R
CLK' CLK'
CLK CLK* CLK CLK*
CLK CLK
CLK' CLK'
CLK* CLK*
CS1104-11 D Flip-flop 17
D Flip-flop
Application: Parallel data transfer.
To transfer logic-circuit outputs X, Y, Z to flip-flops Q1,
Q2 and Q3 for storage.
D Q Q1 = X*
CLK
Q'
X
Combinational Y D Q Q2 = Y*
logic circuit
Z CLK
Q'
D Q Q3 = Z*
Transfer CLK
Q'
CS1104-11 D Flip-flop 18
J-K Flip-flop
J-K flip-flop: Q and Q' are fed back to the pulse-
steering AND gates.
No invalid state.
Include a toggle state.
J=HIGH (and K=LOW) SET state
K=HIGH (and J=LOW) RESET state
both inputs LOW no change
both inputs HIGH toggle
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
CS1104-11 T Flip-flop 22
T Flip-flop
Application: Frequency division.
High High High
J J QA J QB
Q
CLK C CLK C C
K K K
CLK CLK
Q QA
QB
CS1104-11 T Flip-flop 23
Master Slave Flip Flop
J
Q
J Q Pulse
C transition
CLK
detector
K Q' Q'
K
CLR CLR
CLK
PRE
CLR
Q
J = K = HIGH Preset Toggle Clear