01 Memory Unit - Flip-Flops (DLP-2022-2023)
01 Memory Unit - Flip-Flops (DLP-2022-2023)
Inputs Outputs
Combinational
Circuit
Flip-flops
Clock
2
11/12/22 Source: Confidential 3
Memory Unit
• The flip-flop is the basic unit of digital memory.
• Sets of flip-flops are called registers and can hold bytes of data.
11/12/22
LATCH
• A latch is an electronic logic circuit that has two inputs
and one output.
• One of the inputs is called the SET input; the other is
called the RESET input.
• Output depends not only on the current inputs, but also
on previous outputs.
• It has two stable states (HIGH or LOW).
• They act as memory devices and can store one bit of
data.
11/12/22 Source: Confidential 5
Types of LATCHES
NOR LATCH NAND LATCH
8
Working of S R LATCH with NOR Gate (Q to S & Qbar to R)
Case 1: Case 3: Case 4:
1 0 1
0 1 0
Reset Set Not Allowed
0 1 1 0 1 0
1 0 1 0 1 0 Set
0 0 1 1 0 0 NA
Case 2: R = 0 and S = 0
• In this case, the inputs of both the NOR gates are Logic ‘0’. As neither of them are
dominating inputs, they have no effect on the output. So, the output retains their
previous states i.e., there is no change in the output. This condition is called as Hold
Condition or No Change Condition.
Case 2: R = 0 and S = 0
• In this case, the inputs of both the NOR gates are Logic ‘0’. As neither of them are
dominating inputs, they have no effect on the output. So, the output retains their
previous states i.e., there is no change in the output. This condition is called as Hold
Condition or No Change Condition.
1 1 1
Set
0 0 1
1 1
S R Q State
No Change 0 0 1 1 NA
0 1 1 0 Set
0 0 1 0 0 1 Reset
1 1 Q NC
CLK
CLK
R*
S* R* Q State
0 0 1 1 NA
0 1 1 0 Set
1 0 0 1 Reset
1 1 Q NC
S* R* Q State
0 0 1 1 NA
0 1 1 0 Set
1 0 0 1 Reset
1 1 Q NC
S* R* Q State
0 0 1 1 NA
0 1 1 0 Set
1 0 0 1 Reset
1 1 Q NC
S* R* Q State
0 0 1 1 NA
0 1 1 0 Set
1 0 0 1 Reset
1 1 Q NC
CLK
CLK J K State
1 0 0 NC
1 0 1 0 1 Reset
1 1 0 1 0 Set
1 1 1 X 1,0 Toggle
48