Logic gates and truth tables
At a Glance
- Frequency: 2 sub-parts across 2 of 13 years (2014, 2022)
- Priority tier: T3
- Marks (count): 10 (1), 15 (1)
- Average solve time: ~5 min
- Difficulty mix: easy 2
- Section: B | Dominant type: derivation
Why This Chapter Matters
Logic circuit questions test Boolean algebra and gate-level circuit construction. The 2014 question (10 marks) asks for the circuit for a sum-of-products expression using only AND and OR gates — a direct realisation with no simplification needed. The 2022 question (15 marks) involves a more complex expression with NOT and asks for both the circuit and the truth table; critically, the expression simplifies dramatically (to ), and spotting that simplification earns the full 15 marks efficiently. Both questions are among the fastest in the paper once you know the procedure.
Minimum Theory
Gate types. AND gate: output 1 iff all inputs are 1. OR gate: output 1 iff at least one input is 1. NOT gate (inverter): output is the complement .
Sum-of-products (SOP) realisation. Any Boolean expression in disjunctive normal form (DNF) — a sum of product terms — is directly realised by one AND gate per product term and one OR gate combining all products. No simplification is needed unless specifically asked.
Hierarchy of evaluation. Parentheses first, then NOT, then AND, then OR. For : evaluate , then , then , then add .
Key Boolean identities. (absorption–consensus): . Also (absorption); .
Question Archetypes
| Archetype | Recognition |
|---|---|
| logic-circuit | ”Construct a logic circuit for [Boolean expression]; write its truth table” |
logic-circuit (2 question(s); 2014, 2022)
Recognition Cues
- “Use only AND and OR logic gates to construct a circuit for …”
- “Find a combinatorial circuit for … and write its input/output table.”
- A Boolean expression over 2–4 variables is given.
Solution Template
- Identify the expression’s structure. Draw the operator hierarchy (precedence: NOT > AND > OR).
- Design the circuit layer by layer. First layer: NOT gates for any complements. Second layer: AND gates for product terms. Third layer: OR gates for sums.
- List components. Count gates and state inputs/outputs.
- Write the truth table. For variables, enumerate all rows. Fill intermediate columns (one per gate output), then the final output column.
- Check for simplification using Boolean identities. State the simplified expression if it exists.
Worked Example
2014 Paper 2, 2014-P2-Q5d (10 marks)
Use only AND and OR logic gates to construct a logic circuit for the Boolean expression .
Structure. is already in sum-of-products form: two AND terms combined by OR. No complements needed.
Circuit.
- AND gate 1: inputs — output .
- AND gate 2: inputs — output .
- OR gate: inputs , — output .
Total: 2 AND + 1 OR = 3 gates.
Truth table (selected rows; full table has 16 rows):
| 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 | 0 |
2022 Paper 2, 2022-P2-Q6b (15 marks)
Find a combinatorial circuit for and write its input/output table.
Operator hierarchy.
- NOT gate: .
- OR gate: .
- AND gate: .
- OR gate: .
Components: 1 NOT + 2 OR + 1 AND = 4 gates.
Truth table:
| 0 | 0 | 0 | 1 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 1 | 1 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 | 1 | 1 | 1 |
Simplification. . Since (key identity): .
The simplified circuit needs only 1 OR gate. The truth table confirms: only when and .
Common Traps
- Not simplifying. The 2022 expression simplifies to , eliminating entirely. Always apply Boolean absorption after drawing the circuit; the question implicitly rewards simplification.
- Key identity. . This is a specific case of the consensus/absorption theorem; memorise it.
- AND vs. OR gate order. In sum-of-products, AND gates come before the OR gate. Reversing the order (OR gates feeding an AND) gives a product-of-sums (POS) circuit and produces wrong outputs.
- “Only AND and OR” constraint. In 2014, no NOT gates are available. The expression has no complemented literals, so this is not a problem — but always check before designing.
Marks-Aware Writing
A 10-mark answer must show: the circuit described (gate types, inputs, outputs) and a truth table with intermediate columns. A 15-mark answer must additionally show: the operator hierarchy of the expression, the full truth table for all input combinations, and the Boolean simplification with algebraic steps.
Practice Set
- 2014-P2-Q5d (10 m) — — Hint: SOP form, 2 AND + 1 OR; no complements needed.
- 2022-P2-Q6b (15 m) — — Hint: simplify via ; full truth table has 8 rows.