Basic Logic Gates
Click any switch to toggle its value. Watch wires glow and LEDs respond instantly.
AND Gate
Truth Table
| A | B | Y = A AND B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
OR Gate
Truth Table
| A | B | Y = A OR B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
NOT Gate (Inverter)
Truth Table
| A | Y = NOT A |
|---|---|
| 0 | 1 |
| 1 | 0 |