A synchronous RS flip-flop adds a clock gate to the basic RS so set and reset act only while the clock is active. This page shows how the clock cures the random flipping of the plain latch.
A basic RS changes state whenever Sbar or Rbar says so, so noise flips it and several latches cannot step in step. The synchronous RS puts an AND gate in series with each of S and R and feeds the clock CP into the other input. Only while CP is 1 can S and R pass into the inner latch; when CP is 0 the inputs are blocked and the state freezes. When to change is now scheduled by one common clock.
While CP is 1 the behavior matches the basic RS: S 1 sets, R 1 resets, both 0 holds. But S and R both 1 with CP 1 is still forbidden and drives an undefined state, so the constraint that S and R never equal 1 together must hold. Note it is level triggered: the whole CP 1 window is live, and if the inputs move inside that window the output follows, which is the seed of multiple toggling.
Limitations lead onward: the gated RS buys a common beat but level triggering can still toggle many times during one long CP high, and the forbidden input pair is not removed. Edge-triggered D flip-flops and master-slave structures were invented precisely to sample on an edge and kill both problems. Understanding the gated RS is the first step toward clocked design.
| CP | S | R | Next Q |
|---|---|---|---|
| 0 | X | X | Hold |
| 1 | 0 | 0 | Hold |
| 1 | 1 | 0 | 1 set |
| 1 | 0 | 1 | 0 reset |
| 1 | 1 | 1 | Forbidden undefined |
| 1 | change | change | Follows inputs |
Inputs must stay stable during CP 1; do not change S or R inside the clock high level or the latch toggles repeatedly. S and R both 1 remains forbidden; only the next generation of devices cures it.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Clocked logic devices per GB/T 4728 and IEC 60748 series. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.