# Logic gate (AND, OR, XOR, NOT, NAND, NOR and XNOR)

A logic gate is an electronic circuit that performs a logical operation on one or more input signals and produces an output signal. The most common types of logic gates are AND, OR, XOR, NOT, NAND, NOR, and XNOR.

AND gates require all of their inputs to be high (1) in order to produce a high output. OR gates require just one of their inputs to be high in order to produce a high output. XOR gates require either one or the other (but not both) of their inputs to be high in order to produce a high output. NOT gates simply invert their input; a high input produces a low output, and vice versa.

NAND and NOR gates are the universal gates; that is, any logic function can be implemented using only NAND or only NOR gates.

XNOR gates are the exclusive-OR gates with inverted output.

##### Are XOR and NAND the same?

No, XOR and NAND are not the same.

XOR is a digital logic gate that takes two input signals and outputs a signal that is the exclusive OR of the two inputs.

NAND is a digital logic gate that takes two input signals and outputs a signal that is the inverse of the AND of the two inputs.

#### What is XOR gate and XNOR gate?

An XOR gate (sometimes referred to as an exclusive OR gate) is a digital logic gate that outputs a true (1 or HIGH) signal when the number of true inputs is odd. An XOR gate implements an exclusive or; that is, a true output results if one, and only one, of the inputs to the gate is true. If both inputs are false (0/LOW) or both are true, a false output results. XOR represents the inequality function, i.e., the output is true if the inputs are not equal. A HIGH output (1) results if the inputs to the XOR gate are not alike, either 0/LOW/FALSE or 1/HIGH/TRUE. If both inputs are the same, a LOW output (0) results.

An XNOR gate (sometimes referred to as an exclusive NOR gate) is a digital logic gate that outputs a true (1 or HIGH) signal when both of its inputs are false (0/LOW/FALSE) or when both of its inputs are true (1/HIGH/TRUE). An XNOR gate is made by connecting together an XOR gate and an inverter. It implements a logical equivalence function; the output is true if the inputs are the same, false otherwise.

#### Which of these sets of logic gates are known as universal gates a XOR NAND OR B OR not XOR XNOR NAND NOR and NOR NAND?

There is no definitive answer to this question, as there is no agreed-upon definition of "universal gates." However, a common definition of universal gates is any set of logic gates that can be used to implement any Boolean function. Under this definition, the most commonly cited sets of universal gates are NAND and NOR. What are the 5 logic gates? The 5 logic gates are the AND gate, the OR gate, the NOT gate, the NAND gate, and the NOR gate. How many types of gate are there? There are three types of basic gates: AND, OR, and NOT. These are the basic building blocks of all digital circuits. More complex circuits can be built by combining these basic gates in different ways.