- Asked 2/22
- 2080 Bhadra · 2+4 marks
Positive/negative logic; XNOR using NAND
Short answer
Positive logic: HIGH=1, LOW=0; negative logic: HIGH=0, LOW=1. An XNOR gate is built with five NAND gates: four gates form XOR (G4 = A⊕B), and a fifth NAND with both inputs tied to G4 inverts it, yielding Y = ¬(A⊕B) = A⊙B.
Define positive and negative logic. Realize X-NOR gate using NAND gates only.
Positive and negative logic
- Positive logic: HIGH voltage = logic 1, LOW voltage = logic 0 (e.g. TTL: +5 V = 1, 0 V = 0).
- Negative logic: HIGH voltage = logic 0, LOW voltage = logic 1 (e.g. +5 V = 0, 0 V = 1).
The same physical gate performs a different logic function in the two systems, because changing the convention complements every input and output. Example: a gate whose output is HIGH only when both inputs are HIGH is an AND gate in positive logic but an OR gate in negative logic.
XNOR using NAND gates only
. First build XOR with 4 NAND gates, then invert it with a fifth NAND gate whose two inputs are tied together (). Minimum: 5 NAND gates.
A --+-----------[NAND G2]--+
| | |
+--[NAND G1]---+ +--[NAND G4]--+--[NAND G5]-- Y
| | | +--|
B --+-----------[NAND G3]--+ (inputs tied: NOT)
| A | B | Y | ||||
|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1 | 0 | 1 |
| 0 | 1 | 1 | 1 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 | 1 | 0 |
| 1 | 1 | 0 | 1 | 1 | 0 | 1 |
Y is 1 when both inputs are equal, which is XNOR.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Positive/negative logic; Ex-NOR using NOR · Digital Logic, chapter 2 · asked 2×
- 3-input XNOR using NOR gates only · Digital Logic, chapter 2
- De Morgan; positive NAND equals negative NOR · Digital Logic, chapter 2
- Universal gates; positive and negative logic · Digital Logic, chapter 2
- De Morgan's laws; XNOR using NOR gates · Digital Logic, chapter 2
- De Morgan; NOR gate from NAND gates · Digital Logic, chapter 2
- 3-input XOR using NAND gates only · Digital Logic, chapter 2 · asked 2×
- X-OR gate using NAND gates only · Basic Electronics Engineering, chapter 6
- Why NOR and NAND are universal gates · Basic Electronics Engineering, chapter 6
- CMOS NAND, NOR (and NOT) circuits · Embedded System, chapter 8 · asked 2×