Logic gate

In the simplest possible terms, a logic gate is a tiny electronic component that takes one or more electrical signals as input and produces a single electrical signal as output, based on specific rules.

For example, we may have one of these components which takes two input signals and produces an output signal that is only “on” if both input signals are “on”. The signals are binary - the input and output can only be made up of true or false value(s).

We can represent the different input and output combinations using a truth table

The key thing to remember is that a logic gate takes in one or more input signals and produces a single output signal based on specific rules.

Examples of logic gates