SR latch
The set-reset latch is a circuit that stores a value in a bistable circuit using two NOR gates. It is the fundamental building block for memory cells.
Behavior
As pictured in Figure 1, it latches a bit value when the input is 0,0, saving it (and its complement) in the outputs of the NOR gates.
Pressing Set (1,0) or Reset (0,1)will change the value of the saved bit accordingly
If both Set and Reset are input (1,1), the circuit oscillates.
Principle
The simplest form of storing a bit value is two NOT gate linked together. This will store a HIGH and a LOW in a loop.
By sending a HIGH pulse to the previous LOW, we can swap them. The pulse is sent by an OR gate. The circuit is shown in Figure 2. This is trivially equivalent to the circuit shown in Figure 1.
An enabler can be integrated with AND gates. By fluctuating the enabler at set time intervals, we get a clocked D-latch.
Note that it is an abstraction and may be astable
The D-latch acts on level. This messes up the clock cycle.