OR
| input A |
input B |
output C |
| 0 |
0 |
0 |
| 0 |
1 |
1 |
| 1 |
0 |
1 |
| 1 |
1 |
1 |
- Note: When the input is 1, the output must 1.
NOR
| input A |
input B |
output C |
| 0 |
0 |
1 |
| 0 |
1 |
0 |
| 1 |
0 |
0 |
| 1 |
1 |
0 |
- Note: When the input is 1, the output must 0.
AND
| input A |
input B |
output C |
| 0 |
0 |
0 |
| 0 |
1 |
0 |
| 1 |
0 |
0 |
| 1 |
1 |
1 |
- Note: When the all input is 1, the ouput must 1.
NAND
| input A |
input B |
output C |
| 0 |
0 |
1 |
| 0 |
1 |
1 |
| 1 |
0 |
1 |
| 1 |
1 |
0 |
- Note: When the all input is 1, the ouput must 0.
XOR
| input A |
input B |
output C |
| 0 |
0 |
0 |
| 0 |
1 |
1 |
| 1 |
0 |
1 |
| 1 |
1 |
0 |
- Note: When the input is 0 and 1, the output must 1
Operation precedence