In previous circuits we have seen, the flow of power has gone strictly left to right. But we can take the output of a gate and feed it back in as the inputs to earlier gates. This is the secret behind building a โmemoryโ circuit: feeding the output back into the circuit produces a loop that โremembersโ a value. The circuit below uses two NOR gates (NOR is short for Not OR, which is a NOT gate that comes right after an OR). Notice how the output of each NOR gate feeds back as an input to the other gate.
Essentially, the circuit remembers which input, Set or Reset, was most recently on. This is a form of memory: If we want to remember 1, we flip Input1 on briefly. To remember 0, we flip Input2 on briefly.
Many other circuits can โrememberโ a value, but they all use this same basic idea of feeding outputs back in as inputs. To remember more than one bit, we would simply need to make multiple copies of this circuit, one for each bit we need to store.