Draw the Truth Table of a JK Flip-Flop
A JK flip-flop is described by its characteristic (truth) table, which specifies the next state from the present state and inputs and . The table is typically drawn for the combinations of and the two possible present values of (i.e., or ). For a JK flip-flop: holds ; sets ; resets ; and toggles .
To verify/derive the toggling row, use the fact that when the flip-flop acts like a controlled inverter: if then , and if then .
Mermaid depiction of the “case” logic:
Step-by-step: draw the JK flip-flop truth (characteristic) table
- 1Step 1
Write as a function of present state and inputs .
- 2Step 2
Use columns: , , , and .
- 3Step 3
When and , the flip-flop is in the hold mode: .
- 4Step 4
When and , the flip-flop is in the set mode: (independent of ).
- 5Step 5
When and , the flip-flop is in the reset mode: (independent of ).
- 6Step 6
When and , the flip-flop toggles: if then , and if then .
- 7Step 7
You’ll end with 8 rows total (all combinations of with ).
- 8Step 8
Present the completed characteristic table as the “truth table” of the JK flip-flop’s state transition.
JK flip-flop truth/characteristic table
| Mode | ||||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | Hold |
| 0 | 0 | 1 | 1 | Hold |
| 1 | 0 | 0 | 1 | Set |
| 1 | 0 | 1 | 1 | Set |
| 0 | 1 | 0 | 0 | Reset |
| 0 | 1 | 1 | 0 | Reset |
| 1 | 1 | 0 | 1 | Toggle |
| 1 | 1 | 1 | 0 | Toggle |
Hold and Set and Reset and Toggle are the four essential behaviors.
Mermaid view of toggle:
Pro Tip: quick mental rule for the 11 row
For and , do not “set” or “reset”—instead invert the present state: (toggle).
Common mistake: mixing up toggling vs set/reset
A frequent error is writing for . That is only the set case (). The case must depend on and produce inversion.
(Optional) Next-state Boolean form
Many textbooks also express the next-state equation of a JK flip-flop as:
This equation is consistent with the characteristic table:
- if , then (hold)
- if , then (set)
- if , then (reset)
- if , then (toggle)
Key terms: Next state and Characteristic table and Present state.
Knowledge Check
In a JK flip-flop, what is when and ?