Professional Documents
Culture Documents
Sequential Digital Systems: Memory Devices: Pinit Kumhom
Sequential Digital Systems: Memory Devices: Pinit Kumhom
Sequential Digital Systems: Memory Devices: Pinit Kumhom
Pinit Kumhom
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 1 / 26
Outline
1 What are expected to be learnt?
2 Bistable Element
3 SR Type Memory Devices
Basic SR Latch
SR Latches with Enable (Gated SR Latch)
Mater-Slave SR Flip-Flops
4 D Type Memory Devices
D Latches
D Flip-Flops
5 JK Type Memory Devices
Master-Slave JK Flip-Flops
Edge-Triggered JK Flip-Flops
6 Toggle (T) Flip-Flops
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 2 / 26
What are expected to be learnt after this learning session?
Be able to answer the following questions or describe the following terms from own
understanding.
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 3 / 26
To be able to remember a digital value (’0’ or ’1’), we need a bistable element.
In digital system, a bistable element can be achieved by the cross configuration of 2
inverters
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 4 / 26
Outline
1 What are expected to be learnt?
2 Bistable Element
3 SR Type Memory Devices
Basic SR Latch
SR Latches with Enable (Gated SR Latch)
Mater-Slave SR Flip-Flops
4 D Type Memory Devices
D Latches
D Flip-Flops
5 JK Type Memory Devices
Master-Slave JK Flip-Flops
Edge-Triggered JK Flip-Flops
6 Toggle (T) Flip-Flops
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 5 / 26
Want bistable element that can be set (S) or Reset (R), but the inverter cross
configuration is cannot do that.
Cross configuration of NORs or NANDs is such bistable element. It is called a SR Latch
Function Table
S R Q Qn Action
0 0 Qold Q̄old Rember
0 1 0 1 Reset
1 0 1 0 Set
1 1 0 0 Not allowed
Characteristic Equation: Q′ = S + R̄Q
Function Table
Sn Rn Q Qn Action
0 0 1 1 Not allowed
0 1 1 0 Set
1 0 0 1 Reset
1 1 Qold Q̄old Remember
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 6 / 26
The characteristic equation of a memory device decribes next output, Q′ , as a
logic function of its excitation inputs and current output,Q.
It can be derived from the truth table (the characteristic table) describing how it works
The term “−” is called “don’t care” term ⇒ its value can be either ’0’ or ’1’.
Don’t care terms at an output ⇒ it can be assigned as either ’0’ or ’1’
during the synthesis process (e.g. Kmap, QM) based on the design
constraints.
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 7 / 26
Cross configuration of NANDs gives the active-low SR latch
Function Table
Sn Rn Q Qn Action
0 0 1 1 Not allowed
0 1 1 0 Set
1 0 0 1 Reset
1 1 Qold Q̄old Remember
Characteristic Equation:
Q′ = S̄n + Rn Q
For both active-low and active high, we can say that “SR-latch Operation or
Characteristics” is as follows:
If S is active and R is not active, Q is Set to ’1’.
If S is not active and R is active, Q is Reset to ’0’.
If both S and R are not active, Q stays the same as the previous value.
If both S and R are active, Q and Qn are the same, which is conflicted.
Hence, it is NOT Allowed.
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 8 / 26
We control memory device output by controlling its excitation inputs.
SR Latch Excitation
For both active-low and active high, we state about “SR-latch excitation” as
follows:
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 9 / 26
Outline
1 What are expected to be learnt?
2 Bistable Element
3 SR Type Memory Devices
Basic SR Latch
SR Latches with Enable (Gated SR Latch)
Mater-Slave SR Flip-Flops
4 D Type Memory Devices
D Latches
D Flip-Flops
5 JK Type Memory Devices
Master-Slave JK Flip-Flops
Edge-Triggered JK Flip-Flops
6 Toggle (T) Flip-Flops
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 10 / 26
Problem with the basic SR Latches:
Sometimes, small gliches on S or R or both can lead to remembering (or
latching) a wrong data.
Solution: Adding a control input, denoted by C, to control the effect of S and R.
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 11 / 26
Outline
1 What are expected to be learnt?
2 Bistable Element
3 SR Type Memory Devices
Basic SR Latch
SR Latches with Enable (Gated SR Latch)
Mater-Slave SR Flip-Flops
4 D Type Memory Devices
D Latches
D Flip-Flops
5 JK Type Memory Devices
Master-Slave JK Flip-Flops
Edge-Triggered JK Flip-Flops
6 Toggle (T) Flip-Flops
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 12 / 26
Master-Slave SR Flip-Flop is controlled by a pulse in place of level-controlled
method used in SR Latch.
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 13 / 26
Outline
1 What are expected to be learnt?
2 Bistable Element
3 SR Type Memory Devices
Basic SR Latch
SR Latches with Enable (Gated SR Latch)
Mater-Slave SR Flip-Flops
4 D Type Memory Devices
D Latches
D Flip-Flops
5 JK Type Memory Devices
Master-Slave JK Flip-Flops
Edge-Triggered JK Flip-Flops
6 Toggle (T) Flip-Flops
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 14 / 26
Problem with the SR Latches with Enable:
The case of both S and R active simultaneously still is possible.
Solution: Forcing S and R to always be opposite (inverting).
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 15 / 26
Outline
1 What are expected to be learnt?
2 Bistable Element
3 SR Type Memory Devices
Basic SR Latch
SR Latches with Enable (Gated SR Latch)
Mater-Slave SR Flip-Flops
4 D Type Memory Devices
D Latches
D Flip-Flops
5 JK Type Memory Devices
Master-Slave JK Flip-Flops
Edge-Triggered JK Flip-Flops
6 Toggle (T) Flip-Flops
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 16 / 26
Problem with the D Latches:
The glitches on D are also passed through the output Q during C =′ 1′ .
Solution: Applying the concept of master-slave doors to allow D to pass through only
during the small window.
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 17 / 26
D Flip-Flops
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 18 / 26
D Flip-Flops with Asynchronous Controls
D-FF with active-low asynchronous reset (R) or clear (CLR) and
active-low asynchronous set (S) or preset (PR).
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 19 / 26
D Type Memory Devices’ Characteristic Equation and Excitation Table
Characteristic Equation: Q′ = D
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 20 / 26
Outline
1 What are expected to be learnt?
2 Bistable Element
3 SR Type Memory Devices
Basic SR Latch
SR Latches with Enable (Gated SR Latch)
Mater-Slave SR Flip-Flops
4 D Type Memory Devices
D Latches
D Flip-Flops
5 JK Type Memory Devices
Master-Slave JK Flip-Flops
Edge-Triggered JK Flip-Flops
6 Toggle (T) Flip-Flops
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 21 / 26
JK Type Memory Devices:
Two excitation inputs, denoted by J and K, that is similar to S and R,
respectively, but causing Q to toggle when J and K are active simultaneously.
Matster-Slave JK Flip-Flop
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 22 / 26
Outline
1 What are expected to be learnt?
2 Bistable Element
3 SR Type Memory Devices
Basic SR Latch
SR Latches with Enable (Gated SR Latch)
Mater-Slave SR Flip-Flops
4 D Type Memory Devices
D Latches
D Flip-Flops
5 JK Type Memory Devices
Master-Slave JK Flip-Flops
Edge-Triggered JK Flip-Flops
6 Toggle (T) Flip-Flops
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 23 / 26
JK Type Memory Devices:
Two excitation inputs, denoted by J and K, that is similar to S and R,
respectively, but causing Q to toggle when J and K are active simultaneously.
Positive edge-triggered JK Flip-Flop
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 24 / 26
JK Type Memory Devices’ Characteristic Equation and Excitation Table
1 0 0 1 Set
1 0 1 1 Set
1 1 0 1 Toggle
1 1 1 0 Toggle
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 25 / 26
T Flip-Flop can be implemented by forcing a JK FF to be only in the Toggle
case, or by feeding back Qn of D-FF back to its input D.
Pinit Kumhom (vDeSi Lab, KMUTT) Memory Devices September 16, 2016 26 / 26