The NOT gate (also called an inverter) flips its input.
Input | Output |
---|---|
0 | 1 |
1 | 0 |
The AND gate only outputs 1 when both inputs are 1.
Input A | Input B | Output |
---|---|---|
0 | 0 | 0 |
0 | 1 | 0 |
1 | 0 | 0 |
1 | 1 | 1 |
The OR gate outputs 1 if either input is 1.
Input A | Input B | Output |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
The XOR gate (exclusive OR) outputs 1 when only one input is 1.
Input A | Input B | Output |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |