Mini Game · Digital Logic · Computer Science
Logic Gate Simulator
Drag gates from the palette onto the canvas, connect them with wires, toggle inputs, and watch signal propagation in real time.
Inputs
Input
Gates
AND
OR
NOT
NAND
NOR
XOR
XNOR
Output
Output LED
Actions
Drag gates from the palette → click inputs to toggle 0/1 → switch to Wire mode to connect gates
Selected Component
Click a component on the canvas to inspect it.
Truth Tables
AND
| A | B | OUT |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Keyboard Shortcuts
| S | Select mode |
| W | Wire mode |
| D | Delete mode |
| Del | Delete selected |
| Esc | Cancel wire |
CS Connection
Logic gates are the physical implementation of Boolean algebra. Every CPU, memory cell, and digital circuit is built from combinations of AND, OR, and NOT gates — NAND alone is functionally complete.