Log in Sign up
Back to Discover
💻

XNOR gate

technology Maturity 11-13

A tiny part helps computers think.

XNOR ANSI Labelled.svg
XNOR ANSI Labelled.svg
It looks at two things. It checks if they are the same. If they match, it sends a signal. This helps machines work well. Do you like how things match?

39 words

A tiny part helps computers think.

XNOR ANSI Labelled.svg
XNOR ANSI Labelled.svg

This part looks at two signals. It checks if they are the same. If both signals match, it sends a signal out.

3 gate XNOR.svg
3 gate XNOR.svg

If the signals are different, it does not send a signal. One part can be on and one can be off. This makes the output low.

Builders can make this part using other small parts. They can use three parts or even five parts. It is like building with blocks.

These parts help machines follow rules. It is cool how they work together.

97 words

An XNOR gate is a tiny part in a computer.

XNOR ANSI Labelled.svg
XNOR ANSI Labelled.svg
It works by looking at two signals. We call these signals inputs. The gate checks if the inputs are the same. If both inputs are high, the output is high. If both inputs are low, the output is also high.
3 gate XNOR.svg
3 gate XNOR.svg
But if the inputs are different, the output is low. This is why some people call it an equivalence gate. It only gives a high signal when things match.

Engineers can build an XNOR gate in many ways. They can use other parts like NAND or NOR gates. A NAND gate is a type of logic gate. You can even make an XNOR gate using only four NOR gates.

XNOR from NAND.svg
XNOR from NAND.svg
Some ways use more parts but work faster. Others use fewer parts to save space. Some chips, like the 4077, have four XNOR gates inside.
XNOR from NOR.svg
XNOR from NOR.svg
These parts help machines follow rules to think and work.

166 words

An XNOR gate is a special part used in digital logic. It is also known by names like ENOR or EXNOR. Some people call it an equivalence gate. This name comes from how it works with two inputs. It checks if those two inputs are exactly the same. This gate is the opposite of an XOR gate.

XNOR ANSI Labelled.svg
XNOR ANSI Labelled.svg

How does this gate work? It looks at two signals, which we call inputs. If both inputs are high, the output is high. If both inputs are low, the output is also high. This happens because the inputs match. However, if one input is high and the other is low, the output is low.

3 gate XNOR.svg
3 gate XNOR.svg
The gate only gives a high output when the inputs are identical. This is why it is used to find equality.

Engineers can build these gates in many different ways. One way is to use an XOR gate and then add a NOT gate. You can also use a mix of AND, OR, and NOT gates. Some people use four NOR gates to make one XNOR gate. There are also ways to use only NAND gates.

XNOR from NAND.svg
XNOR from NAND.svg
Some designs are faster than others. Others use fewer parts to save space.
XNOR from NOR.svg
XNOR from NOR.svg

Many companies make these parts for computers. Texas Instruments and NXP are names of such manufacturers. You can find them in different formats like DIP or SOIC. The 4000 series CMOS chip called the 4077 is a common one. It contains four independent XNOR gates inside. Another chip is the 74266, which is a TTL version.

XNOR from NAND 2.svg
XNOR from NAND 2.svg

These gates are part of a much bigger system. They help machines follow rules to make decisions. While a two-input gate checks for equality, you can have more inputs too. For example, a three-input version might work differently. In that case, the output is high if an even number of inputs are high.

XNOR from NOR 2.svg
XNOR from NOR 2.svg
This helps us understand how complex computers can think through many steps.

341 words

An XNOR gate is a fundamental component used in digital logic systems. It is also known by several other names, such as ENOR, EXNOR, NXOR, or XAND. In mathematical logic, the XNOR gate represents the material biconditional. This means it functions as a logical connective that evaluates the relationship between two statements. Because it compares two inputs to see if they match, it is often called an "equivalence gate."

XNOR ANSI Labelled.svg
XNOR ANSI Labelled.svg

The mechanism of a two-input XNOR gate is based on logical equality. The gate receives two separate signals, which are called inputs, labeled A and B. The gate produces a high output, represented by the number 1, only if both inputs are identical. For example, if both input A and input B are high, the output will be high. If both inputs are low, the output will also be high. However, if one input is high and the other is low, the gate produces a low output, or 0.

3 gate XNOR.svg
3 gate XNOR.svg

Engineers can implement XNOR logic using several different hardware configurations. One simple method is to use an XOR gate followed by a NOT gate, which inverts the result. Another method uses a combination of AND, OR, and NOT gates. While a direct construction using these three types of gates requires five separate gates, Boolean algebra and de Morgan's Law can reduce this. By applying these mathematical rules, a circuit can be built using only three gates.

XNOR from NAND.svg
XNOR from NAND.svg

There are also ways to build XNOR gates using universal gates. Universal gates are types of gates, like NAND or NOR, that can be used to create any other logical function. An XNOR gate can be constructed using exactly four NOR gates. It can also be built using a specific arrangement of five NAND gates. This five-NAND topology is useful because it can offer a shorter propagation delay. Propagation delay is the time it takes for an input change to result in an output change.

XNOR from NAND 2.svg
XNOR from NAND 2.svg

Different circuit designs offer different advantages depending on the needs of the machine. For instance, some NOR-based constructions require fewer gates to function. This can save space on a circuit board. Other designs might prioritize speed or the availability of certain parts. In CMOS technology, which is a common way to build chips, an XNOR gate can be realized with 10 transistors. If the design uses both normal and inverted inputs, it might use 8 transistors. If inverters must be added to the circuit, the count rises to 12 transistors.

XNOR from NOR.svg
XNOR from NOR.svg

Various semiconductor manufacturers produce XNOR gates in different integrated circuit families. The 4000 series CMOS IC family includes the 4077 chip, which contains four independent, two-input XNOR gates. The TTL family includes the 74266, which is an open-collector implementation. Another older device, the 74S135, was able to implement four two-input XOR/XNOR gates or two three-input XNOR gates. Companies like Texas Instruments and NXP manufacture these components. They are typically available in formats like through-hole DIP or SOIC-14 and TSSOP-14.

XNOR from NOR 2.svg
XNOR from NOR 2.svg

While two-input gates are common, the concept can be extended to more inputs. A three-input version, such as that found in the SN74S135, follows a different rule. In this case, the output is high if an even number of inputs are high. This is expressed by the formula Q = NOT ((A XOR B) XOR C). Unlike the two-input version, this three-input version does not implement a simple logical equivalence function. Instead, it serves as a way to process multiple signals through a single logical process.

594 words
🖼️ Images & Media (6)
File:3 gate XNOR.svg
3 gate XNOR.svg
File:XNOR ANSI Labelled.svg
XNOR ANSI Labelled.svg
File:XNOR from NAND.svg
XNOR from NAND.svg
File:XNOR from NOR.svg
XNOR from NOR.svg
File:XNOR from NAND 2.svg
XNOR from NAND 2.svg
File:XNOR from NOR 2.svg
XNOR from NOR 2.svg
Up Next
💻
XOR gate
Technology
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.