Chapter 5 A - DLD (Dr. Nauman)
Chapter 5 A - DLD (Dr. Nauman)
Chapter 5 A - DLD (Dr. Nauman)
Chapter 5
Synchronous Sequential Logic
Combinational Memory
logic elements
External inputs
Synchronous
Inputs Outputs
Combinational
Circuit
Flip-flops
Clock
3
Memory Elements
▪Memory element: a device (latch) which can remember value
indefinitely, or change value on command from its inputs.
Memory Q
command element stored value
▪Characteristic table:
▪ Triggering/activation
clock
❖pulse-triggered
❖edge-triggered
Positive pulses
▪Pulse-triggered
❖latches
❖ON = 1, OFF = 0
▪Edge-triggered Positive edges Negative edges
❖flip-flops
❖positive edge-triggered (ON = from 0 to 1; OFF = other time)
❖negative edge-triggered (ON = from 1 to 0; OFF = other time)
Memory Elements
S-R Latch
▪Complementary outputs: Q and Q'.
S Q
▪When Q is HIGH, the latch is in SET state.
R Q'
▪When Q is LOW, the latch is in RESET state.
0 0 NC NC No change. Latch
remained in present state.
1 0 1 0 Latch SET.
0 1 0 1 Latch RESET.
1 1 0 0 Invalid condition.
S-R Latch
10 100 R S R 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
10 001 S 0 0 0 1 (after S=0, R=1)
1 1 0 0 invalid!
Latches
▪Active-HIGH input S-R 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
C 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 9
1 1 1 Q=Q’ Invalid
Controlled Latches
Gated D Latch (D = Data)
Timing Diagram
▪Make R input equal to S' → gated D latch.
C
▪D latch eliminates the undesirable condition
of invalid state in the S-R latch.
D
D S
Q Q
C
R Q t
Output may
C D Q change
0 x Q0 No change
1 0 0 Reset 10
1 1 1 Set
Controlled Latches
D Latch (D = Data) Timing Diagram
S
C
D
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
11
Latch Circuits: Suitability
Clock signal
13
Triggering - Latches and Flip-Flops
Controlled latches are level-triggered
14
S-R Flip-flop