CSC116 ยท 2081 ยท 5 marks
Write about D flip flop with necessary circuit, block diagram, characteristic table and equation.
Write about D flip flop with necessary circuit, block diagram, characteristic table and equation. [5]
Quick answer
The D flip flop (Data or Delay flip flop) is a modification of the SR flip flop. It eliminates the ambiguous condition (S=R=1) by ensuring that the two inputs are always complementary. The single input D is connected directly to S and through an inverter to R, so S and R can never be equal simultaneously.
D Flip Flop
Introduction
Circuit Diagram
+-------+
D --+---S |
| NOR FF----> Q
D --[INV]--R|
| |-----> Q'
CLK -+--CLK |
+-------+
A more detailed gate-level circuit:
+-----+
D -->| |
| AND |----> S ---+
CLK ---->| | | +-----+ Q
+-----+ +-->| NOR |--+---->
| | |
+-----+ +-->| NOR |--+----> Q'
D -->|INV |--> D' | | +-----+
+-----+ | | |
+-----+ v | |
D'-->| | | |
| AND |----> R----+
CLK ---->| |
+-----+
Key point: The inverter between D and the R-input ensures R = D' and S = D at all times.
Block Diagram
+-------------+
| |
D -->| D FF Q |----> Q
| |
CLK -->| CLK Q' |----> Q'
| |
+-------------+
Characteristic Table
| CLK | D | Q (next state) | Operation |
|---|---|---|---|
| 0 | X | Q (no change) | Latch (no clock) |
| 1 | 0 | 0 | Reset |
| 1 | 1 | 1 | Set |
X = don't care
When the clock pulse is active (1):
- If D = 0, output Q becomes 0 (Reset)
- If D = 1, output Q becomes 1 (Set)
The output simply follows the D input on the active clock edge.
Characteristic Equation
$$Q(t+1) = D$$
This means the next state of the flip flop is exactly equal to the present value of input D, regardless of the current state Q(t).
Excitation Table
| Q(t) | Q(t+1) | D (required) |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
The required D input is simply equal to the desired next state Q(t+1).
Summary
| Feature | Detail |
|---|---|
| Inputs | D (single data input), CLK |
| Outputs | Q, Q' |
| Characteristic Equation | Q(t+1) = D |
| Advantage | Eliminates invalid state (S=R=1) of SR flip flop |
| Application | Data storage, shift registers, counters |
The D flip flop is widely used in registers and memory elements because it stores exactly one bit of data and transfers it to the output on each clock pulse.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.