D flip-flop 2026-10-24
At the active clock edge, . An asynchronous clear, when provided and asserted, takes precedence over this data-sampling rule.
Flip-flop 2026-10-24
A flip-flop stores one bit and updates it at a specified clock edge; an asynchronous clear can override that clocked update. Signal polarity is part of the specification, not something inferred from the name alone.
Keep the two history D flip-flops and add an output D flip-flop with previous value . Its next value is one if all three inputs are one, or if the output was one and at least one of the three inputs is one. In the latter case the samples are not all zero, so the previous one must be retained. This gives
If , the first product sets the output. If , every product vanishes and the output clears. For every mixed input triple, at least one of equals , so the output is retained. Feed this sum of products to the output D input, use for the history, and use asynchronous clear or an appropriate initialization to establish .
Minimality can be seen directly from the truth table. At , the only one-entry is , forcing the product or a narrower term. At , the triples , and must all produce one; combining any two in one product would also admit , which must produce zero. Thus three more products are needed. The displayed four products achieve the minimum; removing any Boolean literal from would include a zero-entry.
With , a JK flip-flop obeys at its positive clock edge: holds its old state and sets it. Thus each original stage is a sticky record of a previously sampled high input until Start clears it. A D flip-flop instead obeys , so a later sample of zero can clear the output.
Connect each replacement D input where the corresponding J input was connected, preserving the clocks and asynchronous clear. The first valid sequence after Start still sets both outputs. Afterwards, let fall and apply another rising clock edge to . The D version clears ; the JK version retains . A subsequent rising clock edge of can therefore clear only in the D version. Neither circuit continuously tracks its data input between clock edges.