RSFlipFlop
The RS flip-flop, also known as an SR latch, is a basic bistable memory circuit that stores a single bit. It consists of two cross-coupled logic gates and has two inputs labeled S (set) and R (reset), along with two outputs, Q and Q̄ (the complement of Q). The device changes state in response to the inputs and holds its state when the inputs are inactive.
There are two common realizations. The NOR-based RS latch uses two cross-connected NOR gates. In this configuration,
The NAND-based RS latch uses two cross-connected NAND gates and active-low inputs, often labeled S̄ and R̄.
RS flip-flops are asynchronous memory elements and are level-sensitive; they respond directly to input levels rather