Explore the fundamental building blocks of digital electronics. Toggle inputs, watch signals propagate through gates, and understand how simple logic operations power every computer.
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Outputs 1 only when ALL inputs are 1. The AND gate performs logical conjunction -- both conditions must be true for the result to be true.
Used in security systems where multiple conditions must be met (e.g., both key card AND PIN required), alarm systems, and enable circuits.
| Gate | Expression | Inputs | Universal | Output for 0,0 | Output for 1,1 |
|---|---|---|---|---|---|
AND | Y = A . B | 2 | No | 0 | 1 |
OR | Y = A + B | 2 | No | 0 | 1 |
NOT | Y = A' | 1 | No | 1 | - |
NAND | Y = (A . B)' | 2 | Yes | 1 | 0 |
NOR | Y = (A + B)' | 2 | Yes | 1 | 0 |
XOR | Y = A ^ B | 2 | No | 0 | 0 |
XNOR | Y = (A ^ B)' | 2 | No | 1 | 1 |