Level 4: At least one
Open the level →Where it fits in the machine →
Task
Goal: build a logical OR gate.
OR outputs 1 if at least one input is 1. It outputs 0 only when both inputs are 0.
The main idea: OR is built from what you already have. Invert both inputs, combine them with AND, then invert again. This is De Morgan's law: at least one is on means it is not true that both are off.
Path to this level
The competencies this level develops and their formation levels.
Related Materials
- OR — logical addition
Solution for self-check
Try building the circuit yourself first. The solution below is a way to check yourself if you're stuck or have already solved it.
What you should get: the output is 1 when at least one input is 1.
Formula: A OR B = NOT(NOT A AND NOT B). In words: at least one is on means it is not true that both are off.
- Place two NOT gates and feed A and B into them separately.
- Feed both NOT outputs into the AND inputs.
- Pass the AND output through a third NOT.
- Connect the third NOT output to Output.
Why it works: AND outputs 1 only when both inputs are 0, which means A and B are both 0. The third NOT flips that result, so 1 appears in all other cases.
Check yourself
What happens if you remove the third NOT?
You get NOR: 1 only when both inputs are 0, and 0 whenever at least one input is 1.