Lect4-Sequential-Ckt
Lect4-Sequential-Ckt
Lect4-Sequential-Ckt
Combinational Memory
logic elements
External 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 Elements
Memory element with clock. Flip-flops are memory
elements that change state on clock signals.
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)
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)!
Drawback of S-R latch: invalid condition exists and
must be avoided.
S-R Latch
Characteristics table for active-high input S-R 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.
S
Q S Q
EN EN
Q' R Q'
R
Gated S-R Latch
Outputs change (if necessary) only when EN is HIGH.
Under what condition does the invalid state occur?
Characteristic table:
EN=1
Q(t) S R Q(t+1) S R Q(t+1)
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 indeterminate
1 1 indeterminate
1 0 0 1
1 0 1 0
Q(t+1) = S + R'.Q
1 1 0 1
1 1 1 indeterminate S.R = 0
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'
Gated D Latch
When EN is HIGH,
D=HIGH latch is SET
D=LOW latch is RESET
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'
CLK' CLK'
CLK CLK* CLK CLK*
CLK CLK
CLK' CLK'
CLK* CLK*
CLK
Q'
X
Combinational Y D Q Q2 = Y*
logic circuit
Z CLK
Q'
D Q Q3 = Z*
Transfer CLK
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 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
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
Assignment