Logic Gates
Logic Gates
Below is a presentation of logic gates used in combinatorial logic, along with their truth tables.
You can manipulate these gates using a simulator, for example the one from CircuitVerse: https://circuitverse.org/simulator
NOT
The NOT gate is the simplest: it produces as output the inverse of its input.
| input | output |
|---|---|
| 1 | 0 |
| 0 | 1 |
AND
| input1 | input2 | output |
|---|---|---|
| 1 | 1 | 1 |
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 0 | 0 | 0 |
OR
| input1 | input2 | output |
|---|---|---|
| 1 | 1 | 1 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 0 | 0 | 0 |
NAND
| input1 | input2 | output |
|---|---|---|
| 1 | 1 | 0 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 0 | 0 | 1 |
XOR
| input1 | input2 | output |
|---|---|---|
| 1 | 1 | 0 |
| 1 | 0 | 1 |
| 0 | 1 | 1 |
| 0 | 0 | 0 |
NOR
| input1 | input2 | output |
|---|---|---|
| 1 | 1 | 0 |
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 0 | 0 | 1 |