The specification requires both conversions: create the expression for a circuit, and create a circuit from an expression.
Circuit → Boolean expression
Method: work left to right, writing the output of each gate as an expression.
Given a circuit where A and B feed an AND gate, C feeds a NOT gate, and both results feed an OR gate:
- The AND gate outputs
A.B
- The NOT gate outputs
C̅
- The OR gate combines them:
A.B + C̅
Label the output of each gate on the diagram as you go. Writing the intermediate expression next to each gate turns a confusing diagram into a simple assembly job.
Boolean expression → circuit
Method: work from the inside out — innermost brackets first.
Given (A + B).C̅:
A + B → an OR gate with inputs A and B
C̅ → a NOT gate with input C
. → an AND gate combining the two outputs
Draw it left to right: inputs on the far left, then the first-level gates, then the combining gate, then the output Q.
A three-input worked conversion
Expression: A ⊕ (B.C)
- Innermost:
B.C → AND gate taking B and C
- Outermost:
A ⊕ … → XOR gate taking A and the AND gate's output
Truth table:
| A | B | C | B.C | A ⊕ (B.C) |
|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 ⚠️ |
Note the final row. Both A and B.C are 1, and XOR of two 1s is 0 — the row that catches people out.
Modifying a circuit
The specification also requires you to modify circuits — for example, "change this circuit so the output is 1 only when all three inputs are 1." That means replacing a gate or adding one, so make sure you can redraw as well as read.
AQA tip. After converting either way, check with one or two input combinations. Pick a row of the truth table, trace it through your circuit, and confirm the output matches the expression. Thirty seconds, and it catches almost every error.