HSC Physics · Semiconductor Devices
Logic Gates
What a logic gate, a truth table and a Boolean expression are, the basic NOT, OR and AND gates, and the NAND, NOR and X-OR gates built from them.
Why this matters
12 questions. Seven were set in board papers: name the gate that is high when at least one input is high (2019), write the Boolean expression of the X-OR gate (2022), name the gate whose expression is Y = NOT (A + B) (2023), what a logic gate is (2024), the gate that is high when both inputs are high (2025), define a logic gate and say why a NOT gate is called an inverter (2025), and the Boolean equation of the NOR gate (2026). The textbook adds truth tables, Boolean expressions and the uses of logic gates.
Concept 1 of 3: Logic gate, truth table and Boolean expression
Definition
- Analog signal: varies continuously, like a sine wave. Digital signal: has only two values, low (0, about 0 V) and high (1, about +5 V), like a square wave.
- Logic gate: a digital circuit with one or more inputs but only one output, which follows a definite logical relationship between input and output. Gates are so called because they control the flow of signal or information.
- Truth table: lists all possible combinations of the inputs with the output for each. A gate with inputs has rows.
- Boolean expression: the mathematical statement that gives the relationship between the inputs and the output of a gate.
- The five common gates are NOT, AND, OR, NAND and NOR; the X-OR gate is also in the book.
- Uses: logic gates are the building blocks of digital circuits; they take logical decisions. The X-OR gate compares two logic levels in computational circuits. NAND and NOR are universal gates: any gate can be built from NAND gates alone or from NOR gates alone.
| Term | Meaning |
|---|---|
| Logic gate | A digital circuit with one or more inputs and only one output, following a definite logical relationship between themQ Board 2024 asked what a logic gate is, and 2025 asked you to define it. |
| Truth table | All possible combinations of the inputs, with the output for each |
| Boolean expression | The mathematical statement relating the output of a gate to its inputs |
| Digital signal | A signal with only two values: low (0) and high (1) |
| Universal gate | A gate from which any gate can be built: NAND or NOR |
Practise this concept3 quick reps
A gate that lets current flow one way
Concept 2 of 3: The NOT, OR and AND gates
Definition
- NOT gate: one input, one output. Input 0 gives 1; input 1 gives 0. It produces a negated version of its input, which is why it is called an inverter. .
- OR gate: two or more inputs. The output is 1 when either input or both are 1; it is 0 only when all inputs are 0. Logical addition: . Outputs for AB = 00, 01, 10, 11: 0, 1, 1, 1.
- AND gate: two or more inputs. The output is 1 only when all inputs are 1. Logical multiplication: . Outputs for AB = 00, 01, 10, 11: 0, 0, 0, 1.
- For a definition question, give the symbol, the truth table and the Boolean expression together.
Boolean expressions
Worked example
Practise this conceptself-check · 3 quick reps
The same idea in a real exam question:
Example 2 · Semiconductor Devices · Logic Gates
Reading + as ordinary addition
Swapping 'at least one' and 'both'
Concept 3 of 3: The NAND, NOR and X-OR gates
Definition
- NAND gate: an AND gate whose output is fed to a NOT gate. Its output is the opposite of AND: 0 only when both inputs are 1. . Outputs for AB = 00, 01, 10, 11: 1, 1, 1, 0.
- NOR gate: an OR gate whose output is fed to a NOT gate. Its output is the opposite of OR: 1 only when both inputs are 0. . Outputs: 1, 0, 0, 0.
- X-OR (Exclusive-OR) gate: high only when its two inputs are at different logic levels (an odd number of 1s at the input). . Outputs: 0, 1, 1, 0.
- NAND and NOR are universal gates.
NAND, NOR and X-OR
Worked example
Practise this conceptself-check · 3 quick reps
The same idea in a real exam question:
Example 3 · Semiconductor Devices · Logic Gates
One bar or two
X-OR with both inputs high
The book's wording for NAND and NOR
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Formulas (2)
- The NOT, OR and AND gates
Boolean expressions
- The NAND, NOR and X-OR gates
NAND, NOR and X-OR
Reference tables (1)
Logic gate, truth table and Boolean expression5 rows
| Term | Meaning |
|---|---|
| Logic gate | A digital circuit with one or more inputs and only one output, following a definite logical relationship between themQ Board 2024 asked what a logic gate is, and 2025 asked you to define it. |
| Truth table | All possible combinations of the inputs, with the output for each |
| Boolean expression | The mathematical statement relating the output of a gate to its inputs |
| Digital signal | A signal with only two values: low (0) and high (1) |
| Universal gate | A gate from which any gate can be built: NAND or NOR |
Watch out for (6)
- A gate that lets current flow one way→ Logic gate, truth table and Boolean expression
- Reading + as ordinary addition→ The NOT, OR and AND gates
- Swapping 'at least one' and 'both'→ The NOT, OR and AND gates
- One bar or two→ The NAND, NOR and X-OR gates
- X-OR with both inputs high→ The NAND, NOR and X-OR gates
- The book's wording for NAND and NOR→ The NAND, NOR and X-OR gates
Test yourself on Semiconductor Devices
10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.