Share to: share facebook share twitter share wa share telegram print page

XNOR gate

XNOR gate truth table
Input Output
A B A XNOR B
0 0 1
0 1 0
1 0 0
1 1 1

The XNOR gate (sometimes ENOR, EXNOR, NXOR, XAND and pronounced as Exclusive NOR) is a digital logic gate whose function is the logical complement of the Exclusive OR (XOR) gate.[1] It is equivalent to the logical connective () from mathematical logic, also known as the material biconditional. The two-input version implements logical equality, behaving according to the truth table to the right, and hence the gate is sometimes called an "equivalence gate". A high output (1) results if both of the inputs to the gate are the same. If one but not both inputs are high (1), a low output (0) results.

The algebraic notation used to represent the XNOR operation is . The algebraic expressions and both represent the XNOR gate with inputs A and B.

Symbols

There are two symbols for XNOR gates: one with distinctive shape and one with rectangular shape and label. Both symbols for the XNOR gate are that of the XOR gate with an added inversion bubble.

Distinctive symbol
Rectangular symbol

Hardware description

XNOR gates are represented in most TTL and CMOS IC families. The standard 4000 series CMOS IC is the 4077, and the TTL IC is the 74266 (although an open-collector implementation). Both include four independent, two-input, XNOR gates. The (now obsolete) 74S135 implemented four two-input XOR/XNOR gates or two three-input XNOR gates.

Both the TTL 74LS implementation, the 74LS266, as well as the CMOS gates (CD4077, 74HC4077 and 74HC266 and so on) are available from most semiconductor manufacturers such as Texas Instruments or NXP, etc.[2] They are usually available in both through-hole DIP and SOIC formats (SOIC-14, SOC-14 or TSSOP-14).

Datasheets are readily available in most datasheet databases and suppliers.

Implementation

AND-OR-Invert logic

An XNOR gate can be implemented using a NAND gate and an OR-AND-Invert gate, as shown in the following picture. [3] This is based on the identity

An alternative, which is useful when inverted inputs are also available (for example from a flip-flop), uses a 2-2 AND-OR-Invert gate, shown on below on the right.

CMOS

CMOS implementations based on the OAI logic above can be realized with 10 transistors, as shown below. The implementation which uses both normal and inverted inputs uses 8 transistors, or 12 if inverters have to be used.

Pinout

Both the 4077 and 74x266 devices (SN74LS266, 74HC266, 74266, etc.) have the same pinout diagram, as follows:

Pinout diagram of the 74HC266N, 74LS266 and CD4077 quad XNOR plastic dual in-line package 14-pin package (PDIP-14) ICs.

  1. Input A1
  2. Input B1
  3. Output Q1 (high if and only if A1 and B1 have the same logic level)
  4. Output Q2
  5. Input B2
  6. Input A2
  7. Vss (GND) common power and signal ground pin
  8. Input A3
  9. Input B3
  10. Output Q3
  11. Output Q4
  12. Input B4
  13. Input A4
  14. Vdd for CMOS (Vcc for TTL) positive power supply (see datasheets for acceptable voltage ranges)

Alternatives

XNOR gate circuit using three mixed gates

If a specific type of gate is not available, a circuit that implements the same function can be constructed from other available gates. A circuit implementing an XNOR function can be trivially constructed from an XOR gate followed by a NOT gate. If we consider the expression , we can construct an XNOR gate circuit directly using AND, OR and NOT gates. However, this approach requires five gates of three different kinds.

As alternative, if different gates are available we can apply Boolean algebra to transform as stated above, and apply de Morgan's Law to the last term to get which can be implemented using only three gates as shown on the right.

An XNOR gate circuit can be made from four NOR gates. In fact, both NAND and NOR gates are so-called "universal gates" and any logical function can be constructed from either NAND logic or NOR logic alone. If the four NOR gates are replaced by NAND gates, this results in an XOR gate, which can be converted to an XNOR gate by inverting the output or one of the inputs (e.g. with a fifth NAND gate).

Desired gate NAND construction NOR construction

An alternative arrangement is of five NAND gates in a topology that emphasizes the construction of the function from , noting from de Morgan's Law that a NAND gate is an inverted-input OR gate. Another alternative arrangement is of five NOR gates in a topology that emphasizes the construction of the function from , noting from de Morgan's Law that a NOR gate is an inverted-input AND gate.

Desired gate NAND construction NOR construction

For the NAND constructions, the lower arrangement offers the advantage of a shorter propagation delay (the time delay between an input changing and the output changing). For the NOR constructions, the upper arrangement requires fewer gates.

From the opposite perspective, constructing other gates using only XNOR gates is possible though XNOR is not a fully universal logic gate. NOT and XOR gates can be constructed this way.

More than two inputs

Although other gates (OR, NOR, AND, NAND) are available from manufacturers with three or more inputs per gate, this is not strictly true with XOR and XNOR gates. However, extending the concept of the binary logical operation to three inputs, the SN74S135 with two shared "C" and four independent "A" and "B" inputs for its four outputs, was a device that followed the truth table:

Input Output
A B C Q
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0

This is effectively Q = NOT ((A XOR B) XOR C). Another way to interpret this is that the output is true if an even number of inputs are true. It does not implement a logical "equivalence" function, unlike two-input XNOR gates.

See also

References

  1. ^ "Exclusive-NOR Gate Tutorial". Retrieved 6 May 2018.
  2. ^ "XNOR Logic Gates". Retrieved 6 May 2018.
  3. ^ Fischer, P. "Aussagenlogik und Gatter" (PDF). University of Heidelberg. Retrieved 2024-01-21.

Read other articles:

This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Find sources: Orders, decorations, and medals of the Kingdom of Hungary – news · newspapers · books · scholar · JSTOR (January 2023) Not to be confused with Orders, decorations, and medals of Hungary. Flag of the Supreme Warlord of the Royal Hungarian Defence Force...

Este artigo ou secção contém uma lista de referências no fim do texto, mas as suas fontes não são claras porque não são citadas no corpo do artigo, o que compromete a confiabilidade das informações. Ajude a melhorar este artigo inserindo citações no corpo do artigo. (Agosto de 2020) Hidróxido de rubídioAlerta sobre risco à saúde Identificadores Número CAS 1310-82-3 Propriedades Massa molar 102.48 g/mol Aparência sólido branco, higroscópico Densidade 3.203 g/cm3, sólido Po...

Wappen Deutschlandkarte ? Hilfe zu Wappen 51.31503110.31906Koordinaten: 51° 19′ N, 10° 19′ O Basisdaten (Stand 2018) Bestandszeitraum: 1991–2018 Bundesland: Thüringen Landkreis: Eichsfeld Fläche: 64,92 km2 Einwohner: 7492 (31. Dez. 2018) Bevölkerungsdichte: 115 Einwohner je km2 Kfz-Kennzeichen: EIC, HIG, WBS Verbandsschlüssel: 16 0 61 5003 Verbandsgliederung: 6 Gemeinden Adresse der Verbandsverwaltung: Geschwister-Scholl-Str. 2...

معهد ماكس بلانك لعلم الوراثة الجزيئيمعلومات عامةالبداية 1953 الاسم الرسمي Max-Planck-Institut für molekulare Genetik (بالألمانية) (1964 – ) الاسم المختصر MPI-MG (بالألمانية) مجال العمل علم الأحياء الجزيئي الرئيس التنفيذي Alexander Meissner (en) [1](2017 – ) البلد ألمانيا تقع في التقسيم الإداري برلين الإحداث...

إن حيادية وصحة هذه المقالة محلُّ خلافٍ. ناقش هذه المسألة في صفحة نقاش المقالة، ولا تُزِل هذا القالب من غير توافقٍ على ذلك. (نقاش) (مايو 2016)   الصحراء الغربية الجمهورية العربية الصحراوية الديمقراطية República Árabe Saharaui Democrática الجمهورية العربية الصحراوية الديمقراطيةعلم الجمهوري

CityList of historic properties in Queen Creek, ArizonaCityThe Schnepf HouseLocation in Maricopa County and the state of ArizonaPart of a series of theCities, towns and CDPs in Arizona with lists and images of historic properties, forts, cemeteries or historic districtsFlag of Arizona Lists of structures, etc. Adamsville Agua Caliente Ash Fork Avondale Benson Bisbee Black Canyon City Bouse Brigham City Buckeye Cameron Camp Verde Casa Grande Cave Creek Chandler Clarkdale Clifton Cottonwood Dat...

Cet article est une ébauche concernant le sport et le Cap-Vert. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations du projet sport. Comité Olímpico Cabo-verdiano Sigle COC Sport(s) représenté(s) Omnisports Création 1989 Président Serge Santos Siège Praia, Cap-Vert Site web http://www.coc.cv/ modifier  Le Comité olympique cap-verdien (en portugais : Comité Olímpico Cabo-verdiano), est le représentant du Cap-Vert au Comité...

American actor (born 1960) Arye GrossArye GrossBorn (1960-03-17) March 17, 1960 (age 63)Los Angeles, California, USEducationUniversity of California, IrvineOccupationActorYears active1982 - presentSpouse Lisa Schulz ​ ​(m. 1999)​Children1 Arye Gross (/ˈɑːri/; born March 17, 1960) is an American actor, who has appeared on a variety of television shows in numerous roles, most notably Adam Greene in the ABC sitcom Ellen. Personal life Gross was bor...

Extinct genus of carnivores BarbourofelisTemporal range: Middle to Late Miocene 13.6–7.3 Ma PreꞒ Ꞓ O S D C P T J K Pg N B. loveorum , Florida Museum of Natural History Fossil Hall at the University of Florida Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Mammalia Order: Carnivora Suborder: Feliformia Family: †Barbourofelidae Tribe: †Barbourofelini Genus: †BarbourofelisSchultz, Schultz & Martin, 1970 Type species †Barbourofelis fri...

Голова Служби безпеки України Штандарт Голови СБУ Посаду обіймаєВасиль Малюквід 18 липня 2022 — по 7 лютого 2023 т.в.о.з 7 лютого 2023 голова[1]Абревіатура Голова СБУЧлен РНБОУПідзвітний Президенту та Верховній РадіМісце м. КиївПризначає Верховна Рада Україниза поданн...

Xavier Musketeers Universidad Universidad XavierLiga División I de la NCAAConferencia principal Big East ConferenceEquipos 18Equipos masculinos 9Equipos femeninos 9Director deportivo Greg ChristopherApodo(s) MusketeersMascota D'ArtagnanColores      Azul PMS 289       ArgénInstalacionesFútbol XU Soccer ComplexBéisbol J. Page Hayden FieldBaloncesto Cintas Center Web oficial [editar datos en Wikidata] Cancha de baloncesto del C...

American basketball player Kyle BaroneFree agentPositionCenterPersonal informationBorn (1989-09-12) September 12, 1989 (age 34)Orange County, California, U. S.Listed height6 ft 10 in (2.08 m)Listed weight250 lb (113 kg)Career informationHigh school Pacifica (Garden Grove, California) Summit Prep (Redwood City, California) CollegeIdaho (2009–2013)NBA draft2013: undraftedPlaying career2013–presentCareer history2013PGE Turów Zgorzelec2014Alba Fehérvár2014–2...

Kentucky's gun law Location of Kentucky in the United States Gun laws in Kentucky regulate the sale, possession, and use of firearms and ammunition in the Commonwealth of Kentucky in the United States. Summary table Subject/Law Long Guns Hand Guns Relevant Statutes Notes State permit required to purchase? No No Firearm registration? No No Assault weapon law? No No Magazine capacity restriction? No No Owner license required? No No Permit required for concealed carry? N/A No KRS § 237.109KRS ...

Esta página cita fontes, mas que não cobrem todo o conteúdo. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW  • CAPES  • Google (N • L • A) (Janeiro de 2020) ItalianoItaliano Falado(a) em: Itália, Suíça, San Marino, Vaticano, Malta, Mônaco, Albânia, Líbia, Etiópia, Somália, Eritreia e TunísiaRegião: Europa ocidental Total de falantes: 69 milhões na União E...

Not to be confused with Coast Guard (film). 2002 South Korean filmThe Coast GuardThe Coast Guard movie posterKorean nameHangul해안선Revised RomanizationHaeanseonMcCune–ReischauerHaeansŏn Directed byKim Ki-duk[1]Written byKim Ki-dukProduced byKim Dong-jooLee Seung-jaeStarringJang Dong-gunPark Ji-aCinematographyBaek Dong-hyeonEdited byKim Sun-minDistributed byKorea PicturesCineclick AsiaRelease date November 22, 2002 (2002-11-22) Running time94 minutesCountrySouth K...

American bioethicist and science policy researcher Suzanne M. RiveraDr. Rivera speaking on March 3, 2023 at Macalester's annual pushball competition.17th President of Macalester CollegeIncumbentAssumed office June 1, 2020 (2020-06-01)Preceded byBrian C. Rosenberg Personal detailsBornSuzanne Marie Rivera (1969-12-02) December 2, 1969 (age 54)Jackson Heights, New York, U.S.Spouse(s)Michael Householder, Ph.D.Children2EducationBrown University (BA in American Civilization)...

This article consists almost entirely of a plot summary. Please help improve the article by adding more real-world context. (January 2018) (Learn how and when to remove this template message) 2013 filmSupercolliderFilm posterDirected byJeffery Scott LandoWritten by Phillip J. Roth Jeffery Scott Lando Produced by Jeffery Scott Lando Phillip J. Roth Starring Robin Dunne Amy Bailey Mia Nordstrom Brendan Beiser Enzo Cilenti Philip Rudy Yana Marinova CinematographyAlexander KrumovEdited byGigi Mor...

Храм Квирина на плане Рима Храм Квирина (лат. Aedes Quirinus или Templum Quirinus) ― ныне утраченное древнеримское культовое сооружение, посвящённое богу Квирину. Располагалось на холме Квиринал в Риме. Схема фронтона храма Квирина, изображённая на фрагменте рельефа ХартвигаХрам К...

Этот раздел выглядит как пресс-релиз или рекламный буклет. Пожалуйста, отредактируйте её с учётом нейтральной точки зрения и использованием независимых от предмета статьи авторитетных источников. В случаях вопиющей, безнадёжной рекламности страница может быть помечен...

Politics of Lazio Statute Regional Government President: Francesco Rocca Vice President: Roberta Angelilli Regional Council President: Antonio Aurigemma Elections Political parties Provinces Regions of Italy Politics of Italy Politics of the European Union Other countries vte This page gathers the results of elections in Lazio. Regional elections Latest regional election Main article: 2023 Lazio regional election In the latest regional election, which took place on 12–13 February 2023, Fran...

Kembali kehalaman sebelumnya