Logic Gates &
Circuit Simplification
Master the fundamental building blocks of digital circuits and learn how Boolean algebra simplifies complex logic into elegant designs.
What Are Logic Gates?
A logic gate is an idealized device that performs a Boolean function: it takes one or more binary inputs (0 or 1) and produces exactly one binary output. Gates are the physical foundation of every digital system: computers, phones, and calculators.
The Three Primary Gates
Gate Symbols & Truth Tables
Derived Gates: NAND, NOR, XOR
Boolean Algebra: The Language of Circuits
Every logic circuit corresponds to a Boolean expression. Boolean algebra gives us rules for manipulating these expressions, just as ordinary algebra gives rules for numbers. The key difference: variables take only the values 0 and 1.
Core Laws of Boolean Algebra
De Morgan's Theorems
De Morgan's two laws are the most powerful tools for circuit simplification. They let you swap between AND and OR by moving the complement:
"Break the bar, change the sign."
"Break the bar, change the sign."
AND vs OR: Key Distinction
| AND (\( \cdot \)) | OR (\( + \)) | |
|---|---|---|
| Output = 1 when | All inputs = 1 | Any input = 1 |
| Output = 0 when | Any input = 0 | All inputs = 0 |
| Identity element | 1 | 0 |
| Annihilator | 0 | 1 |
| Real-world analogy | Series circuit | Parallel circuit |
How to Simplify a Circuit
Example 1: Basic Simplification
Simplify: \( F = A \cdot B + A \cdot \overline{B} \)
\( F = A(B + \overline{B}) \)
\( F = A \cdot 1 \)
\( \boxed{F = A} \)
Example 2: De Morgan's in Action
Simplify: \( F = \overline{\overline{A} \cdot \overline{B}} \)
\( F = \overline{\overline{A}} + \overline{\overline{B}} \)
\( \boxed{F = A + B} \)
Example 3: Multi-Step Simplification
Simplify: \( F = AB + A\overline{B}C + \overline{A}BC \)
\( F = A(B + \overline{B}C) + \overline{A}BC \)
\( F = A(B + C) + \overline{A}BC \)
\( F = B(A + C) + AC = AB + BC + AC \)
Reading a Circuit Diagram
Why Simplification Matters
Common Mistakes
Boolean Laws Summary
| Law | AND Form | OR Form |
|---|---|---|
| Identity | \( A \cdot 1 = A \) | \( A + 0 = A \) |
| Null | \( A \cdot 0 = 0 \) | \( A + 1 = 1 \) |
| Complement | \( A \cdot \overline{A} = 0 \) | \( A + \overline{A} = 1 \) |
| Idempotent | \( A \cdot A = A \) | \( A + A = A \) |
| De Morgan's | \( \overline{A \cdot B} = \overline{A} + \overline{B} \) | \( \overline{A + B} = \overline{A} \cdot \overline{B} \) |
| Absorption | \( A(A + B) = A \) | \( A + AB = A \) |
Question 1 of 5
What is the output of an AND gate when \( A = 1 \) and \( B = 0 \)?
Question 2 of 5
By De Morgan's Theorem, \( \overline{A + B} \) equals:
Question 3 of 5
Simplify: \( F = A + AB \)
Question 4 of 5
Which gate is functionally complete on its own (can implement any Boolean function)?
Question 5 of 5
Simplify: \( F = \overline{A} \cdot B + A \cdot B \)