Logic gates are the fundamental building blocks of digital circuits that perform Boolean logic operations. Each gate produces a deterministic output based on its input signals. Modern CPUs, memory, and all digital circuits are built from combinations of logic gates.
1. Select the logic gate type to simulate
2. Click input switches to toggle between 0 and 1
3. View real-time output and complete truth table
Digital Circuit Learning: Understand gate operations and verify truth tables through interactive experimentation.
Circuit Design Verification: Quickly verify logic gate combinations for digital circuit design.
Programming Logic: Understand the gate-level principles behind bitwise operations (&, |, ^, ~).
Fundamental building blocks of digital circuits performing Boolean operations. Common types: AND, OR, NOT, XOR, NAND, NOR, XNOR.
AND outputs 1 only when all inputs are 1. OR outputs 1 when any input is 1. AND(1,0)=0, OR(1,0)=1.
NAND can implement all other gates: NOT=NAND(A,A), AND=NOT(NAND(A,B)), OR=NAND(NOT(A),NOT(B)). NOR has the same property.
Parity checking, adder circuits, cryptography, controlled inverters.
Half adder: Sum=A XOR B, Carry=A AND B. Full adders cascade into multi-bit adders, the foundation of CPU arithmetic.
Propagation delay (nanoseconds) through each gate. Cumulative delays determine max frequency and can cause glitches.