Skip to content

D-Type Flip-Flops

1.4.3 Boolean algebra · Paper 1 · 1 flashcard · 2 questions

Flip-flops are the basic memory units in digital circuits - they can store one bit of data.

Definition
A D-type flip-flop is a memory device that captures the value of the D input at a specific moment (the clock edge) and holds it at the Q output.
Key Point
D Flip-Flop Signals:
• D (Data) - The input value to be stored
• CLK (Clock) - Controls WHEN to capture D
• Q - The output (stored value)
• ¬Q - The inverted output (complement of Q)
Worked Example
Worked Example: D Flip-Flop Behaviour

Rising-edge triggered flip-flop:
Clock edgeD at edgeQ after edge
T1 (↑)11
T2 (↑)00
T3 (↑)11
T4 (↑)11
T5 (↑)00
At each rising edge (↑):
• Q takes the value currently on D
• Q then holds that value until the next clock edge
• Changes to D between clock edges are ignored

Key point: The flip-flop only samples D when the clock edge occurs.
Key Point
Flip-Flop Applications:
• Registers - Store multiple bits (8 flip-flops = 8-bit register)
• Counters - Count clock pulses
• Memory - Building block of RAM
• State machines - Store current state
• Frequency division - Divide clock speed by 2
Exam Tip
D flip-flop exam phrasing:
• "Q takes the value of D on the active clock edge"
• "Q holds that value between edges"
• "Changes on D between edges do not affect Q"