Electrical & Computer
Logic Gate Lab
Digital logic you can poke. Click the inputs A, B and C to flip them, cycle each gate through AND / OR / XOR / NAND / NOR / XNOR (shown in IEC notation), and watch the wires light up with their signal. The 8-row truth table fills in and highlights your current input combination — so the gate ↔ table mapping finally clicks.
Truth table
| A | B | C | Out |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
Click A, B or C in the diagram to toggle inputs; the highlighted row is your current state. Cycle each gate to compare logic.
How to use this simulation
Digital logic you can poke. Click the inputs A, B and C to flip them, cycle each gate through AND / OR / XOR / NAND / NOR / XNOR (shown in IEC notation), and watch the wires light up with their signal. The 8-row truth table fills in and highlights your current input combination — so the gate ↔ table mapping finally clicks.
Everything runs in your browser — no sign-up, no download. Change a value and the result updates instantly, so you can build a feel for how each input shapes the outcome. It pairs with Crameleon's practice exams and step sheets when you want to go from intuition to working the problems.