LOGIC
GATES
LOGIC GATES
A logic gate is a device that acts as a building block for
digital circuits. They perform basic logical functions
that are fundamental to digital circuits. Most electronic
devices we use today will have some form of logic
gates in them. For example, logic gates can be used in
digital electronics such as smartphones and tablets or
in memory devices.
TYPES OF GATES
OR
NOT
AND NOR
XNOR
XOR
NAND
TYPES OF GATES
AND OR NOT XOR XNOR NAND NOR
AND GATE
The AND gate is named so because, if 0 is false and 1 is true, the gate acts in the same way
as the logical "and" operator. The following illustration and table show the circuit symbol and
logic combinations for an AND gate.
OR GATE
The OR gate gets its name from behaving like the logical inclusive "or." The output is
true if one or both of the inputs are true. If both inputs are false, then the output is
false.
NOT GATE
A logical inverter, sometimes called a NOT gate to differentiate it from other types of electronic inverter
devices, has only one input. A NOT gate reverses the logic state. If the input is 1, then the output is 0. If
the input is 0, then the output is 1.
XOR GATE
The XOR (exclusive-OR) gate acts in the same way as the logical "either/or." The output is true if
either, but not both, of the inputs are true. The output is false if both inputs are "false" or if both
inputs are true.
XNOR GATE
The XNOR (exclusive-NOR) gate is a combination of an XOR gate followed by an inverter. Its output is
true if the inputs are the same and false if the inputs are different.
NAND GATE
The NAND (Negated AND) gate operates as an AND gate followed by a NOT gate. It acts
in the manner of the logical operation "and" followed by negation. The output is false if
both inputs are true. Otherwise, the output is true.
NOR GATE
The NOR (NOT OR) gate is a combination OR gate followed by an inverter. Its output is true if
both inputs are false. Otherwise, the output is false.