The D flip-flop is the workhorse sequential cell: when the clock comes, the data on D is stored into Q. This page explains the principle, why it beats the RS latch, and how latching and shifting are built from it.
Internally a D flip-flop is a gated RS whose R input is driven by the inverse of S, leaving a single data pin D. The forbidden input pair disappears, so every input is legal. On the active clock edge, rising or falling depending on the part, Q takes the value present on D; at all other times Q holds. One D flip-flop is one bit of storage.
Key timing: setup time t_su is how long D must be stable before the clock edge, hold time t_h how long after, and t_pd the clock-to-output delay. Parts like the 74LS74 specify hard limits, and violating them means a wrong sample. In the symbol the clock input carries a small triangle marking edge sensitivity, and Q and Qbar are complementary outputs.
Applications: eight D flip-flops sharing one clock form an 8-bit latch or register, which is how bus data is stabilized in a CPU. Cascade them, Q of one stage into D of the next, and you have a shift register that moves one bit per clock, the basis of serial links and delay lines. With no forbidden state it is far less fussy than the basic RS.
| Parameter | Meaning | Typical 74LS | Violation result |
|---|---|---|---|
| t_su | Setup time | About 20ns | Wrong sample |
| t_h | Hold time | About 5ns | Wrong sample |
| t_pd | Propagation delay | About 25ns | Timing shift |
| f_max | Max clock | About 25MHz | Lost data |
| V_ih | High input threshold | 2V or more | Misjudge |
| V_il | Low input threshold | 0.8V or less | Misjudge |
In a register all D flip-flops share one clock and data must be stable inside the setup and hold window. The longer the shift chain, the lower the maximum clock rate.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Sequential devices per GB/T 4728 symbols 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.