The Inclusive OR gate outputs “TRUE” whenever any of its inputs are true.
The truth table for a two-input OR gate is shown at right, with 0 = false, 1 = true.
The switch designations and positions should be familiar. They correspond to the two-switch LED Circuit explored in Simple LED Circuit: Challenge #1.
Typically, “inclusive” dropped is from its name and it is called simply an OR gate. It’s called an Inclusive OR gate only when there is need to distinguish it from a two-input Exclusive OR (XOR) gate.
Dynamic Simulation in ICircuit
The short video shows how an electronic OR gate can be switched with voltage levels, 5 volts equal to “1” or TRUE and 0 volts equal to “0” or FALSE. You should see that the LED is powered (blue trace) and lit whenever inputs A (yellow trace) OR B (green trace) are at 5 volts.
| Switch A | Switch B | LED |
| 0 | 0 | 0 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 1 | 1 |