- What a logic gate is
A gate takes binary inputs and produces one binary output by a fixed rule.
A logic gate is an electronic building block that takes one or more binary inputs (each 0 or 1) and produces a single binary output (0 or 1) according to a fixed logical rule. Gates are how a computer makes decisions in hardware.
There are six gates in the 9618 syllabus:
| Gate | Inputs | Output is 1 when… |
|---|---|---|
| NOT | 1 | the input is 0 (it inverts) |
| AND | 2 | both inputs are 1 |
| OR | 2 | at least one input is 1 |
| NAND | 2 | NOT both inputs are 1 |
| NOR | 2 | both inputs are 0 |
| XOR (EOR) | 2 | the inputs are different |
Important: only the NOT gate has a single input. Every other gate has exactly two inputs.
Throughout these notes we use a consistent notation: A.B means A AND B, A+B means A OR B, and Ā (a bar over A) or NOT(A) means NOT A.
- A gate: binary input(s) → one binary output by a fixed rule.
- Six gates: NOT, AND, OR, NAND, NOR, XOR.
- NOT has 1 input; all others have exactly 2 inputs.
- Notation: A.B = AND, A+B = OR, Ā / NOT(A) = NOT.