| Gate | Algebraic Symbol | Gate Symbol | Meaning |
|---|---|---|---|
| AND | \(A\cdot B\) | ![]() | True only when both inputs are 1 |
| OR | \(A + B\) | ![]() | True when at least one input is 1 |
| NOT | \(\overline{A}\) | ![]() | Inverts the input (1→0, 0→1) |
| XOR | \(A\oplus B\) | ![]() | True when exactly one input is 1 |
| NAND | \(\overline{A\cdot B}\) | ![]() | True except when both inputs are 1 |
| NOR | \(\overline{A + B}\) | ![]() | True only when both inputs are 0 |
| Gate | Inputs | Output |
|---|---|---|
| AND | 00, 01, 10, 11 | 0, 0, 0, 1 |
| OR | 00, 01, 10, 11 | 0, 1, 1, 1 |
| NOT (single input) | 0, 1 | 1, 0 |
| XOR | 00, 01, 10, 11 | 0, 1, 1, 0 |
| NAND | 00, 01, 10, 11 | 1, 1, 1, 0 |
| NOR | 00, 01, 10, 11 | 1, 0, 0, 0 |
When two operators have the same precedence, evaluate from left to right.
The syllabus limits every gate to two inputs (the NOT gate has one). If a circuit needs more than two inputs, combine them using additional two‑input gates.
| A | B | C | A·B | \(\overline{C}\) | (A·B)+\(\overline{C}\) |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 1 |
Inputs: A, B, C
| A | B | C | D = A·B | E = \(\overline{C}\) | F = D+E |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 1 |
| A | B | C | Y |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
| 1 | 1 | 1 | 0 |
Rows 2, 3 and 5 give the minterms:
\[
\begin{aligned}
m_2 &: \overline{A}\,\overline{B}\,C \\
m_3 &: \overline{A}\,B\,\overline{C} \\
m_5 &: A\,\overline{B}\,\overline{C}
\end{aligned}
\]
Combined:
\[
Y = \overline{A}\,\overline{B}\,C \;+\; \overline{A}\,B\,\overline{C} \;+\; A\,\overline{B}\,\overline{C}
\]
The circuit uses three two‑input AND gates feeding a three‑input OR, which is implemented as two two‑input OR gates (to respect the two‑input rule).
Problem: “A home‑security alarm should sound when motion is detected AND the door is open OR when smoke is detected.”
\[
\text{Alarm} = (M\cdot D) + S
\]
(Both gates are two‑input, so no extra splitting is required.)
These identities let you replace a NOT of a compound expression with a combination of opposite gates, which is useful when the exam limits you to NAND or NOR gates only.
Example: \(\overline{(A + B)}\cdot(A\oplus B)\) becomes \((\overline{A}\cdot\overline{B})\cdot(A\oplus B)\) using the first law.
Complete the truth table for \(\overline{(A + B)}\cdot(A\oplus B)\).
Required columns: A, B, \(A+B\), \(\overline{(A+B)}\), \(A\oplus B\), Result.
The circuit below has inputs X, Y.
Construct a truth table with columns X, Y, P, Q, Z.
Explain why the expression \(A\cdot\overline{A}\) always yields 0 and relate this to the logical concept of a contradiction.
| A | B | A+B | \(\overline{(A+B)}\) | A⊕B | Result |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 |
All rows give 0 → the expression is a contradiction.
| X | Y | P = \(\overline{X\cdot Y}\) | Q = \(\overline{X}\) | Z = \(\overline{P+Q}\) |
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 1 |
\(A\cdot\overline{A}\) requires A to be 1 and 0 at the same time – an impossibility. Therefore the expression always evaluates to 0. In logical terminology this is a contradiction, i.e. a statement that can never be true.
Reference: Cambridge IGCSE Computer Science (0478) – Topic 10: Boolean Logic, Specification 2024.