Latches_and_Flip_flops
Latches_and_Flip_flops
11.1 Introduction
11.2 Set-Reset Latch
11.3 Gated D Latch
11.4 Edge-Triggered D Flip-Flop
11.5 S-R Flip-Flop
11.6 J-K Flip-Flop
11.7 T Flip-Flop
11.8 Flip-Flops with Additional Inputs
Sequential Circuits
• Sequential switching circuits have the property that the
output depends not only on the present input but also on
the past sequence of inputs.
• The oscillator waveform has a high and a low time that is the
sum of the propagation times of the inverters. For example, with
n inverters and with all having the same delay, the oscillator
waveform high time is (n + 1)/2 times the high-to-low (or low-
to-high) inverter propagation delay plus (n − 1)/2 times the low-
to-high (or high-to-low) inverter propagation delay.
Simple Memory Elements
• A feedback loop which has two inverters in it has two stable
conditions (stable states).
Inverter 2
Next-State Equation of S-R Latch
• Q(t + ε) = R(t)′[S(t) + Q(t)] = R(t)′S(t) +R(t)′Q(t)
• P(t) = S(t)′Q(t)′
Q+ = S + R′Q
(SR = 0)
A useful application of the S-R latch
• An useful application of the S-R latch is for de-bouncing
switches.
Example 1: 若所有的gates延遲相同,產生震盪(左圖)。
Example 2: 當左上角的NAND gate有較短的延遲則Q的值最終為0(中圖)。
Example 3: 當左下角的NAND gate有較短的延遲則Q的值最終為1(右圖)。
1→1 1→0
1→0→1→… 0→0→1
0→1 0→1→1
Karnaugh Map for Q+ (II)
• The race condition 也可用Q+ 有static 1-hazard 來說明。當 SRGQ: 1111→ 1101.
Thus, when G: 1 → 0, it is possible to cause Q to remain at 0. That is, SRGQ :
1111→ 1101→ 1100 → 1100