D-flipflop with preset and clear.
The flip flop is a circuit that has two stable states and can store one bit of state information. The output changes state by signals applied to one or more control inputs.
The basic D Flip Flop has a D (data) input and a clock input and outputs Q and Q (the inverse of Q). Optionally it may also include the PR (Preset) and CLR (Clear) control inputs.
Notice that there is now a subtle difference between the active low Set (S) and Reset (R) inputs, and the D input. The D input is SYNCHRONOUS, that is its action is synchronised with the clock, but the S and R inputs are ASYNCHRONOUS i.e. their action is NOT synchronised with the clock. The SET and RESET inputs in Fig 5.3.4 are ‘low activated’, which is shown by the inversion circles at the S and R inputs to indicate that they are really S and R. The flip-flop is positive edge triggered, which is shown on the CK input in Fig 5.3.4 by the wedge symbol. A wedge accompanied by an inversion circle would indicate negative (falling) edge triggering, though this is generally not used on D Type flip-flops.
Equation: $$D=Q$$.
D flip-flop symbol
D flip-flop circuits
D flip-flop truth table
CLK | D | Q | Q' | Description |
---|---|---|---|---|
↓ » 0 | X | Q | Q' | Memory no change |
↑ » 1 | 0 | 0 | 1 | Reset Q » 0 |
↑ » 1 | 1 | 1 | 0 | Set Q » 1 |