Skip to content
Digital Electronics•Unit 2• ECE1001

Boolean Algebra and Logic Gates

Boolean theorems, De Morgan's laws, canonical SOP/POS forms, universal NAND/NOR gates, and noise margins.

Learning Mode Filter (#29):Personalize View
Skills Built:Boolean SimplificationNAND/NOR Universal ConstructionCanonical SOP/POS FormsNoise Margin Analysis

1. Intuition First: The Algebra of Electronic Switches

Boolean algebra is fundamentally the mathematics of electrical switches. Every digital computer—from an ultra-low-power biomedical implant to a multi-billion transistor GPU—is built by combining simple switching elements governed by two binary states: 1 (TRUE, closed circuit, high potential) and 0 (FALSE, open circuit, reference ground).

To build reliable intuition before manipulating symbols, consider basic physical switch topologies:

  • AND Operation (A⋅BA \cdot B): Two switches placed in series. Electric current reaches the load if and only if switch AA and switch BB are simultaneously closed.
  • OR Operation (A+BA + B): Two switches placed in parallel. Current reaches the load if switch AA or switch BB (or both) are closed.
  • NOT Operation (A′A' or A‾\overline{A}): A normally-closed contact, or a pull-down transistor switch that shunts current away to ground when activated. When the control input is 00, the path remains open to supply; when input is 11, it is pulled to 00.
    Series (AND):         Parallel (OR):               Inverter (NOT):
    --[ A ]---[ B ]--     ------+--[ A ]--+-----       V_DD --[ R ]--+-- Output
                                |         |                          |
                                +--[ B ]--+                     [ Transistor A ]
                                                                     |
                                                                    GND

From Abstract Math to Physical Silicon

Simplifying a Boolean algebraic equation is directly equivalent to removing physical transistors from silicon. Fewer logic gates mean smaller die area, reduced dynamic power dissipation (P=CV2fP = C V^2 f), and shorter propagation delays.

However, physical digital gates do not operate on mathematical abstractions. A real gate never outputs exactly 0.00 V0.00\text{ V} or 5.00 V5.00\text{ V}. Because of transistor on-resistance, power rail IR-drops, and ambient electromagnetic interference, output voltages vary across a band:

  • A standard 5V TTL gate guarantees an output voltage of at least VOH(min⁡)=2.4 VV_{OH(\min)} = 2.4\text{ V} for a logic HIGH.
  • The receiving gate accepts anything above VIH(min⁡)=2.0 VV_{IH(\min)} = 2.0\text{ V} as a valid logic HIGH.
  • The positive difference, VOH(min⁡)−VIH(min⁡)=0.4 VV_{OH(\min)} - V_{IH(\min)} = 0.4\text{ V}, forms an essential noise margin cushion that protects the system from spurious switching caused by ground bounce or inductive ringing.

2. Formula & Unit Quick-Reference Strip

Formula & Unit Quick-Reference Strip
De Morgan Theorem 1Identity
(A · B)' = A' + B'

Complement of a product equals the sum of individual complements (NAND to inverted-OR).

De Morgan Theorem 2Identity
(A + B)' = A' · B'

Complement of a sum equals the product of individual complements (NOR to inverted-AND).

Absorption LawIdentity
A + A · B = A

Redundant dependent terms are absorbed: A(1 + B) = A(1) = A.

Redundancy LawIdentity
A + A' · B = A + B

Eliminates inverted literal when paired with uncomplemented variable.

Consensus TheoremIdentity
AB + A'C + BC = AB + A'C

The term BC is redundant because it is covered by AB and A'C across all values of A.

XOR EquivalenceIdentity
A ⊕ B = A · B' + A' · B

Exclusive-OR evaluates to 1 when inputs differ, and 0 when inputs match.

High-Level Noise MarginVolts (V)
NM_H = V_OH(min) - V_IH(min)

Allowable spurious negative noise voltage superimposed on a logic HIGH signal.

Average Propagation DelayNanoseconds (ns)
t_pd = (t_PHL + t_PLH) / 2

Mean transition latency between high-to-low and low-to-high gate switching events.


3. Mathematical Derivation: Redundancy Law


4. Typical Bench Values & Electrical Interface Limits

In laboratory measurements and production hardware design, logic gates are characterized by standardized DC voltage thresholds and AC switching timings.

Typical Laboratory Hardware Ranges
Parameter / PartTypical ValueLab RangePractical Notes
TTL High Output (V_OH min)2.7V to 3.4V2.4V minMinimum output potential guaranteed under maximum rated load current I_OH = -400µA.
TTL Low Output (V_OL max)0.2V to 0.35V0.4V maxMaximum output potential when sinking nominal rated load current I_OL = 16mA.
TTL High Input (V_IH min)2.0V2.0V to 5.0VLowest input voltage guaranteed to be recognized reliably as logic 1.
TTL Low Input (V_IL max)0.8V0.0V to 0.8VHighest input voltage guaranteed to be recognized reliably as logic 0.
TTL Noise Margins (NM_H, NM_L)0.4V (400 mV)0.3V - 0.7VCalculated as NM_H = 2.4 - 2.0 = 0.4V and NM_L = 0.8 - 0.4 = 0.4V.
CMOS 3.3V Noise Margins0.8V to 1.0V0.6V - 1.2VCMOS circuits feature rail-to-rail drive and significantly larger noise cushions.
Gate Propagation Delay (t_pd)9 ns to 12 ns (74LS)1.5 ns (74ACT) - 30 ns (74HC)Time elapsed from 50% input voltage transition to 50% output response.

5. Worked Problems & Circuit Synthesis

Problem 1: Algebraic SOP Simplification (Easy)

Step-by-Step Worked Problem

Simplify the Boolean expression F = AB + AB' + A'B to its minimal Sum of Products (SOP) form and verify using truth table analysis.

Step 1: Factor adjacent minterms with common literals
Group the first two terms sharing the literal A: AB + AB' = A(B + B'). By the complement axiom, B + B' = 1. Therefore, A · 1 = A. The expression reduces to F = A + A'B.
Step 2: Apply the redundancy theorem
Applying A + A'B = A + B directly eliminates the complemented literal A'. The expression collapses to F = A + B.
Step 3: Verification via canonical minterm inspection
Minterms present: m3 (AB = 11), m2 (AB' = 10), and m1 (A'B = 01). Only m0 (A'B' = 00) is absent. Thus F is 0 only when A=0 and B=0, which is the definition of the two-input OR gate F = A + B.

Problem 2: Universal NAND Gate Synthesis (Medium)

Step-by-Step Worked Problem

Implement the function F = AB + C using only 2-input NAND gates. Show all algebraic steps using involution and De Morgan's laws, and compute the total gate count.

Step 1: Apply double complementation (Involution)
Because (X')' = X for any Boolean expression, complement the entire target function twice: F = ((AB + C)')'.
Step 2: Expand the inner expression with De Morgan's theorem
Treat AB as term X and C as term Y. Applying (X + Y)' = X' · Y' gives: F = ((AB)' · C')'. The entire expression now consists exclusively of NAND operations.
Step 3: Map each sub-expression to 2-input NAND hardware
Gate 1 computes the product complement: NAND1(A, B) = (AB)'. Gate 2 inverts variable C by tying inputs together: NAND2(C, C) = C'. Gate 3 combines the two intermediate signals: NAND3((AB)', C') = ((AB)' · C')' = AB + C = F.

Problem 3: Digital Interface Timing & Noise Margin Calculation (Exam Level)

Step-by-Step Worked Problem

A high-speed digital receiver IC specifies the following TTL electrical characteristics: V_OH(min) = 2.4 V, V_OL(max) = 0.4 V, V_IH(min) = 2.0 V, and V_IL(max) = 0.8 V. The propagation times are measured as t_PHL = 8 ns and t_PLH = 12 ns. (a) Determine both DC noise margins NM_H and NM_L. (b) Calculate the average propagation delay per gate. (c) Determine the typical latency and worst-case delay through a critical logic path composed of 4 such gates cascaded in series.

Step 1: Calculate High and Low Noise Margins
NM_H = V_OH(min) - V_IH(min) = 2.4 V - 2.0 V = 0.4 V (400 mV). NM_L = V_IL(max) - V_OL(max) = 0.8 V - 0.4 V = 0.4 V (400 mV). The driver and receiver pair maintains symmetric 400 mV noise protection.
Step 2: Compute Average Gate Propagation Delay
t_pd = (t_PHL + t_PLH) / 2 = (8 ns + 12 ns) / 2 = 20 ns / 2 = 10 ns.
Step 3: Evaluate Cascaded Critical Path Propagation Latency
For 4 cascaded gates in series: Typical latency = N × t_pd = 4 × 10 ns = 40 ns. Worst-case latency occurs when all transitions on the critical path execute through the slower low-to-high transition path: Worst-case delay = N × t_PLH = 4 × 12 ns = 48 ns.

6. Common Exam Traps & Pitfalls

Common Exam Traps & Where Marks Are Lost

Avoid these classic calculation errors frequently spotted on semester examination answer scripts:

  • Treating Boolean '+' as Arithmetic Addition: In ordinary algebra, 1 + 1 = 2. In Boolean algebra, 1 + 1 = 1 (idempotent law). Never introduce numerical coefficients into Boolean equations.
  • Partial De Morgan Expansion: When evaluating (A · B · C)', students frequently write A' · B' · C'. De Morgan requires changing EVERY operator: (A · B · C)' = A' + B' + C'.
  • Assuming NAND and NOR Gates Are Associative: While AND and OR are associative ((A·B)·C = A·(B·C)), NAND and NOR are NOT associative: (A NAND B) NAND C ≠ A NAND (B NAND C).
  • Minterm vs Maxterm Indexing Confusion: Minterm m_i represents the input combination that produces a 1 (product of literals), while Maxterm M_i represents the combination that produces a 0 (sum of inverted literals). Note that M_i = (m_i)'.
  • Leaving Unused CMOS/TTL Inputs Floating: On physical ICs, floating inputs pick up stray electrostatic fields, oscillate uncontrollably, and draw high shoot-through supply currents. Unused AND/NAND inputs must be tied to V_CC; unused OR/NOR inputs must be tied to GND.

7. Interactive Logic Simulator & 'Try Breaking It'

Experiment with basic logic gates, truth table configurations, and composite network paths in the live simulation tool below:

Interactive Engineering Simulator
logic-gates

Simulator will mount when scrolled into view (conserving CPU & memory)

Try Breaking It: Predict Before You Test

Tie both inputs of a 2-input NAND gate together and predict its output behavior before switching the inputs.


8. Parametrised Practice Problem

Test your quantitative mastery of logic gate voltage transfer characteristics and noise margin boundaries:

Parametrised Practice Problem

Thévenin Equivalent of a Loaded Voltage Divider

A 12 V DC voltage source powers a divider with R1 = 20 Ω and R2 = 60 Ω. Calculate the open-circuit Thévenin voltage V_th (in Volts) appearing across terminals of R2.

V
Progressive Hints:

9. Unit Mastery Quiz

5-Question Mastery Check

Unit Quiz: Boolean Algebra and Logic Gates

Q1.Which pair of logic gates is considered 'universal' because either gate alone can synthesize any Boolean function?

Q2.Simplify the Boolean expression A + AB according to fundamental Boolean algebra theorems:

Q3.According to De Morgan's laws, what is the exact logical complement of the expression (A + B)?

Q4.How many unique minterms and how many total possible distinct Boolean functions exist for n = 4 binary input variables?

Q5.A logic driver has V_OH(min) = 2.7 V and drives an input gate with V_IH(min) = 2.0 V. What is the high-level noise margin NM_H?

0 of 5 answered