Electrical engineering

OR gate

A logic gate performing a Boolean logic OR operation.

OR gate: any input high makes output high

An OR gate is a digital logic circuit that outputs a high signal (1) whenever at least one of its inputs is high. With two inputs, the output is low only when both inputs are simultaneously low. This simple rule makes OR gates fundamental building blocks in digital systems, from basic control circuits to complex processors.

OR gates come in different physical forms depending on the technology. In TTL (transistor-transistor logic) and CMOS families, a standard 2-input OR gate occupies a single logic package alongside other gates. Larger integrated circuits may contain dozens of OR functions embedded within more complex structures. The actual implementation uses transistors arranged so that a high voltage at either input creates a conductive path to the output. Practical OR gates have rise and fall times measured in nanoseconds; typical CMOS variants switch in under 10 nanoseconds.

OR gates scale beyond two inputs. A 3-input OR outputs high if any one or more of its three inputs is high; a 4-input OR works the same way. However, cascading multiple 2-input gates to create higher-input OR functions introduces propagation delay, so direct multi-input versions are preferred when speed matters. The Boolean expression for a 2-input OR is written as Y = A + B, where the plus sign denotes logical OR, not arithmetic addition.

Where OR gates work in practice

OR gates appear wherever multiple conditions should trigger a single action. In industrial control, an alarm output might go high if any one of several sensors detects a fault. In priority encoding, OR functions combine lower-priority interrupt signals so any interrupt reaching the processor causes a response. In safety circuits, OR gates can aggregate warning signals from different machine sections. They also form part of arithmetic circuits, particularly in adders and multiplexers.

Common faults in OR gate circuits stem from input loading, where too many gates drawing current from a single output line cause voltage droop. Improper termination on long signal lines can create reflections that mask the intended logic level. Since OR gates have high input impedance in CMOS but lower input impedance in TTL, mixing families without buffers causes logic errors. Designers must verify that output sourcing or sinking current stays within the gate's rated limits, typically 20 to 50 milliamperes for standard logic families.

More from Electrical engineering

See all

Get the Word of the Day

One industrial term every weekday, with the trade it belongs to and why it is worth knowing. No advertising.