What if either choice is enough?
Imagine your teacher says:
βYou can join the sports club if you play football OR basketball.β
You do not need to play both sports. Either one is enough.
The OR gate produces an output of 1 when either input, or both inputs, are 1.
Imagine your teacher says:
βYou can join the sports club if you play football OR basketball.β
You do not need to play both sports. Either one is enough.
An OR gate has two inputs and one output.
The output is 1 when input A, input B, or both inputs are 1.
Two input lines enter the left side of the gate. One output line leaves the right side.
The inputs are labelled A and B. The output is labelled X.
A truth table shows every possible pair of inputs and the output produced.
| A | B | X |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
The inputs are labelled A and B. The output is labelled X.
This means X is 1 when A, B, or both inputs are 1.
An OR gate receives A = 0 and B = 1. What is the output X?
A = 1 and B = 1 gives X = 0.
A = 1 and B = 1 gives X = 1.