Visual
Concept overview
Logic gates are the physical implementation of Boolean operations. In silicon, each gate is a small network of NMOS and PMOS transistors that produces a defined output voltage level based on its input voltages. NAND and NOR gates are considered universal because any Boolean function can be built from either type alone. In practice, combinational circuits built from logic gates compute arithmetic, select data paths, encode and decode signals, and generate control signals throughout a digital system.
Real-world applications
How it works in practice
A 1-bit full adder takes three inputs: A, B, and carry-in Cin. The sum output is A XOR B XOR Cin. The carry-out is (A AND B) OR (B AND Cin) OR (A AND Cin). In a 32-bit ripple-carry adder, 32 full adders are chained so carry-out of bit 0 feeds carry-in of bit 1, and so on. The critical path delay equals 32 times the gate delay of one full adder. A carry-lookahead adder computes generate (G = A AND B) and propagate (P = A XOR B) for all bit positions simultaneously, then computes all carries in parallel using a two-level AND-OR network, reducing the critical path to a constant. In FPGA LUTs, a 6-input LUT is loaded with the truth table of the desired function during configuration. The six inputs address one of 64 SRAM cells, and the stored bit appears at the output. Chaining LUTs allows implementation of functions with more than six inputs.
Examples
Future scope
Gate-level simulation is being replaced at the verification stage by formal methods that prove correctness for all possible input combinations, removing the need to enumerate test vectors for complex arithmetic circuits. At the physical level, nanosheet and gate-all-around transistor geometries at 2 nm and below are changing how standard cells are designed because drive strength and leakage trade-offs shift compared to FinFET. Adiabatic logic families that recover switching energy from capacitive nodes rather than dissipating it as heat are an active research area for low-power wearable SoCs.