Logic Gates · Cambridge syllabus 10.1, 10.2 · Lesson 3 of 5
OR Gate
An OR gate outputs 1 when at least one input is 1. Its output is 0 only when every input is 0. This is inclusive OR: two true inputs still produce true.
By the end, you can
- Understand the OR gate.
- Construct and interpret an OR truth table.
- Determine the output for given inputs.
OR operation
An OR gate has two inputs and produces 1 when at least one of them is 1. It gives 0 only when both inputs are 0.
Its truth table is the mirror image of AND: 0 and 0 give 0; every other row gives 1. Learning it as one 0 at the top of the output column is the quick way.
The physical picture is two switches in parallel. Closing either one completes the circuit, and both must be open for the current to stop.
The symbol is a curved shield shape, pointed on the right, with no circle on the output. In a logic expression it is written in words: X = A OR B.
It is the gate for conditions where either one is enough. An alarm should sound if the front door OR the back door is opened; a fire alarm should trigger on smoke OR heat. In 0478 every gate except NOT has exactly two inputs, so a third condition needs a second OR gate.
This is inclusive OR, which is true when both inputs are true as well. Everyday English often means the exclusive kind — tea or coffee, not both — and that is a different gate.
Worth remembering
- OR gives 1 when at least one input is 1, and 0 only when both are 0.
- Written A OR B; 1 OR 1 is 1.
- It is inclusive: both inputs true still gives true.
Worked example
An alarm can activate if a door sensor OR a window sensor is triggered.
Practice
Warm-up · not marked
Check your understanding
Answer in your own words, then compare with the worked answer. Nothing here is saved or scored.
Worked answer
1.
Check your method, units and explanation against it.
Marked practice
Set 1 of 4 · easiest first · Checked as you go, with the worked answer. Sign in or create a free account to save your progress.