Electrical engineering · also Computer engineering
Logic gates and Boolean algebra
A logic gate takes one or more bits as inputs and produces an output bit according to a fixed rule. AND outputs 1 only when all inputs are 1; OR outputs 1 when any input is 1; NOT inverts its input; XOR outputs 1 when its inputs differ. A truth table lists the output for every possible input, so it describes a gate completely. Boolean algebra lets engineers simplify logic before building it. Combining gates produces useful circuits such as adders, which add binary numbers, and multiplexers, which select one of several signals.
Why it mattersA safety interlock that lets a robot cell run only when the door is closed AND the emergency stop is released is a logic gate in action.