SetReset
Setreset, often abbreviated as S/R or SR, refers to a control scheme used to store a binary state in sequential logic. It is implemented with a latch or flip-flop that has distinct set and reset inputs. The set input forces the stored value to 1, while the reset input forces it to 0. In a basic SR latch built from cross-coupled NOR gates, applying a high signal to S sets the output Q to 1; applying a high signal to R resets Q to 0. When both inputs are low, the latch preserves its previous state; when both inputs are high, the condition is invalid for NOR-based designs and can produce an indeterminate state.
A latch built from cross-coupled NAND gates uses active-low S and R inputs, where S=0 sets Q
Asynchronous versus synchronous operation is a key consideration. Many devices provide asynchronous set or reset lines,
Set/reset functionality is foundational in SR latches, SR and D flip-flops, registers, and memory elements. It