Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Logic Gates and Boolean Simplification

Lesson 3 of 17 in the free Computer Organization and Architecture notes on Siksha Sarovar, written by Rohit Jangra.

Logic Gate Family

---

Combined Truth Table (2-input gates)

ABAND (A·B)OR (A+B)NAND (A·B)'NOR (A+B)'XOR (A⊕B)XNOR (A⊙B)
00001101
01011010
10011010
11110001

NOT Gate (1-input): A=0 → NOT=1; A=1 → NOT=0

---

NAND Gate as Universal: Implementing NOT, AND, OR

---

SOP (Sum of Products) and POS (Product of Sums)

SOP = OR of AND terms. Each AND term is a minterm. Example: F = A'B + AB' + AB

POS = AND of OR terms. Each OR term is a maxterm. Example: F = (A+B)·(A'+B)

Minterm Table (3 variables A, B, C)

RowABCMintermSymbol
0000A'B'C'm₀
1001A'B'Cm₁
2010A'BC'm₂
3011A'BCm₃
4100AB'C'm₄
5101AB'Cm₅
6110ABC'm₆
7111ABCm₇

---

Boolean Simplification Worked Example

F = A'B + AB' + AB

Step 1: F = A'B + AB' + AB Step 2: Group AB' + AB = A(B'+B) = A·1 = A Step 3: F = A'B + A Step 4: By absorption, A + A'B = A + B Result: F = A + B ✓ (reduced from 5 gates to 1 OR gate)

---

Comprehensive Gate Comparison Table

GateExpressionFunctionCMOS TransistorsIC Chip (TTL)Universal?
ANDA·BOutput 1 only if all inputs 167408No
ORA+BOutput 1 if any input 167432No
NOTA'Inverts input27404No
NAND(A·B)'AND then invert47400Yes
NOR(A+B)'OR then invert47402Yes
XORA⊕BOutput 1 if inputs differ8–127486No
XNORA⊙BOutput 1 if inputs same8–1274266No

---

Study Deep: CMOS Technology and NAND Preference

In CMOS (Complementary Metal-Oxide-Semiconductor), a NAND gate requires only 4 transistors vs AND gate's 6. This is because:

  • NAND = series NMOS pull-down + parallel PMOS pull-up (4 transistors total)
  • AND = NAND + inverter = 4 + 2 = 6 transistors

This is why NAND gates are the preferred building block in VLSI design. Most standard cell libraries are NAND-based.

📝 Exam Tips: - XOR = 1 when inputs differ; XNOR = 1 when inputs are same - NAND is universal: NOT(A) = NAND(A,A); AND(A,B) = NAND(NAND(A,B), NAND(A,B)) - NOR(A,A) = NOT(A); NOR(NOT(A), NOT(B)) = AND(A,B)