EuraStudy
Digital electronics is built from a handful of logic gates whose behaviour is captured entirely by their truth tables. This chapter defines the gates, develops Boolean algebra and De Morgan's theorems, and shows how to design a combinational circuit from a truth table and then minimise it with Boolean algebra or a Karnaugh map, finishing with adders and the universal NAND gate.
5 sections~18 min reading time3 competenciesLevel Foundation 1 · Standard 2 · Advanced 2
basic level
At AS the focus is the gates and their truth tables, Boolean algebra including De Morgan, and building a circuit from a truth table.
higher level
The full A-Level develops Karnaugh-map minimisation, adders and the use of universal NAND/NOR gates in economical designs.
Reading depth: In depth
Text size: Standard
Truth tables of the two-input gates
Number of input combinations
A gate or circuit with n inputs has 2^n rows in its truth table.
A network computes (a NAND of A and B, ORed with C). Find for the inputs and for .
, so the NAND output is . Then .
, so the NAND output is . Then .
Result: for and for — the NAND detects the 'not both A and B' condition, which C can then override.
Typical mistakes
Active revision
Write the complete truth table for a two-input NAND gate and for a two-input XOR gate, and state one situation in which each gives a different output from a plain AND gate.
Active recall
Recall the key points — then reveal.
Sources: WJEC/Eduqas GCE Electronics specification (WJEC / Eduqas)
Verifying De Morgan's first theorem
De Morgan's theorems
Breaking an inversion bar swaps AND and OR and inverts each term.
Absorption laws
Redundant terms are removed, reducing gate count.
Simplify using Boolean algebra, naming each identity.
by the distributive law.
, so . The expression is now .
by the second absorption law.
Result: — a three-term, four-gate expression reduced to a single OR gate with the identical truth table.
Typical mistakes
Active revision
Use Boolean algebra to simplify , naming the identities used, and verify your result with a truth table.
Active recall
Recall the key points — then reveal.
Sources: WJEC/Eduqas GCE Electronics specification (WJEC / Eduqas)
Exclusive-OR built from AND, OR and NOT
Sum of products
OR together one product term per input row that gives an output of 1.
Design a circuit whose output is 1 when at least two of the three inputs are 1. Derive the sum-of-products expression and simplify it.
for and .
, one minterm per winning row.
Pairing terms with (using so can be reused) gives — each pair of inputs contributes one AND term.
Result: : three two-input AND gates feeding a three-input OR gate — the majority (two-of-three) voter.
Typical mistakes
Active revision
A circuit outputs 1 only when exactly two of its three inputs A, B, C are 1. Write the truth table, derive the sum-of-products expression and describe the gate circuit.
Active recall
Recall the key points — then reveal.
Sources: WJEC/Eduqas GCE Electronics specification (WJEC / Eduqas)
Three-variable Karnaugh map
Grouping rule
The larger the group, the simpler the resulting product term.
Simplify (three variables ) using a Karnaugh map.
Place 1s at minterms 3 (), 5 (), 6 () and 7 (). On the versus map these are the column and the cells for .
Three overlapping pairs cover all four 1s: the column (minterms 3 and 7) gives ; the pair (5 and 7) gives ; the pair (6 and 7) gives .
OR the three group terms: .
Result: — the same majority function reached by algebra, but read straight off the map.
Typical mistakes
Active revision
Plot the function of three variables on a Karnaugh map, group the 1s and write the minimal sum-of-products expression.
Active recall
Recall the key points — then reveal.
Sources: WJEC/Eduqas GCE Electronics specification (WJEC / Eduqas)
Full adder from two half adders
Full adder
Sum is the three-way exclusive-OR; carry-out is generated or propagated.
NOT from NAND
The NAND gate is universal; a NOT is a NAND with its inputs joined.
Full adder truth table
Using the full-adder expressions, add , with a carry-in , and confirm the result against binary arithmetic.
.
.
In binary , which is a sum bit of 1 and a carry of 1 — exactly the outputs found.
Result: , , i.e. binary (decimal 3), confirming the full adder correctly adds three bits.
Typical mistakes
Active revision
Write the truth table of a full adder for inputs , give the Boolean expressions for the sum and carry-out, and show how a NOT gate is made from a NAND gate.
Active recall
Recall the key points — then reveal.
Sources: WJEC/Eduqas GCE Electronics specification (WJEC / Eduqas)
References & sources
WJEC / Eduqas