Skip to content

Boolean Constants and Variables

  • Boolean values are binary only: 0 or 1.

  • Boolean variables represent logic levels, not numeric quantities.

  • Logic levels correspond to voltage states in digital circuits.

  • Inputs are logic variables whose values determine output logic levels.

  • Boolean algebra is simpler than ordinary algebra:

    • No fractions, negatives, roots, logarithms, etc.
  • Three basic logic operations only:

    • OR
    • AND
    • NOT
  • Logic operations are implemented using logic gates (built from electronic components).

  • Boolean algebra expresses input–output relationships of logic circuits.

Truth Tables

  • A truth table lists:

    • All possible input logic combinations
    • Corresponding output logic levels
  • Used to fully describe a logic circuit's behavior.

OR Operation (OR Gate - 7432)

Expression:

X=A+B

  • Output is 1 if any input is 1.

  • When inputs transition simultaneously:

    • Inputs may briefly be in an undefined region
    • Output may show a glitch (spike)
  • Glitch characteristics depend on input transition speed.

AND Operation (AND Gate - 7408)

Expression:

X=AB

  • Output is 1 only when both inputs are 1.

  • Observations:

    • If B = 0 -> X = 0 regardless of A
    • If B = 1 -> X = A
  • AND gate can function as an inhibit/enable circuit:

    • B = 0 -> inhibit (output forced to 0)
    • B = 1 -> enable (A passes to output)

NOT Operation (Inverter Gate - 7404)

Expressions:

X=AorX=A

  • Output is the complement of the input.
  • Single-input logic operation.

NOR and NAND Gates

NOR Gate - 7402

Formula:

A nor B=(A + B)=AB
  • Equivalent to OR + NOT.
  • OR output HIGH -> NOR output LOW.
ABA+B
001
010
100
110
  • Output is HIGH only when all inputs are LOW.

NAND Gate - 7400

Formula:

A nand B=(A  B)=A+B
  • Equivalent to AND + NOT.
  • AND output HIGH -> NAND output LOW.
ABAB
001
011
101
110
  • Output is LOW only when all inputs are HIGH.

Exclusive-OR (XOR Gate - 7486) and Exclusive-NOR (XNOR Gate - 74266) Circuits

  • Two special logic circuits frequently used in digital systems.

XOR Gate

ABAB
000
011
101
110
  • Output is HIGH when the two inputs are different.
  • XOR gates have only two inputs (no 3- or 4-input versions).
  • XOR operation is:
    • Commutative
    • Associative

XOR Properties

  • Commutative: order of inputs does not affect output.
  • Associative: grouping of operations does not affect output.



Exclusive-NOR (XNOR) Gate

  • Produces the complement of XOR output.

Formula:

A xnor B=(A  B)=A  B=AB+AB
ABAB
001
010
100
111
  • Output is HIGH when inputs are at the same.

Algebraic Description of Logic Circuits

  • Any logic circuit can be fully described using OR, AND, NOT.
  • These three operations are the basic building blocks of digital systems.

Boolean Theorems (Rules)



  • Boolean expressions can be simplified using standard theorems.
  • Used to reduce circuit complexity and gate count.

DeMorgan's Theorems


  • Provide rules for complementing expressions.
  • Convert:
    • AND -> OR (with inverted inputs)
    • OR -> AND (with inverted inputs)

Universality of NAND and NOR Gates



  • NAND and NOR are universal gates.
  • Any logic function (AND, OR, NOT) can be implemented using only NAND or only NOR gates.

Alternative (Bubbled) Logic Gates

  • Alternative / Alternate / Bubbled gates produce the same output as standard gates.
  • Used when the original gate symbol is unavailable.

Deriving an Alternate Symbol

  1. Invert all inputs and outputs (add bubbles).
  2. Change AND <-> OR.
  3. Inverter: operation symbol does not change.

Active-HIGH and Active-LOW Signals

  • No bubble on a line -> Active-HIGH
  • Bubble present -> Active-LOW
  • Bubbles define how a circuit's operation is interpreted.

Output Activity

  • Action occurs at logic 1 -> output is active-HIGH
  • Action occurs at logic 0 -> output is active-LOW
  • If both states cause actions, either representation may be used.

Design Guideline

  • Prefer bubble-to-bubble and non-bubble-to-non-bubble connections.

Asserted Levels

  • Asserted = signal is in its active state
  • Unasserted = signal is inactive

Labeling Logic Signals

Active-LOW Signals

  • Indicated using an overbar
  • No overbar -> active-HIGH

Bistate Signals

  • Signal has two active meanings, one for HIGH and one for LOW.

Example:

  • HIGH -> Read (RD)
  • LOW -> Write (WR)

IEEE/ANSI Standard Logic Symbols

  • IEEE/ANSI Standard 91-1984 defines a newer set of logic symbols.

Sum-of-Products (SoP) Form

  • Logic expression written as OR of product (AND) terms.
  • Each product term contains variables in complemented or uncomplemented form.
  • Required for some simplification and design methods.

Product-of-Sums (PoS) Form

  • Logic expression written as AND of sum (OR) terms.
  • Each sum term contains variables in complemented or uncomplemented form.

Simplifying Logic Circuits

  • Goal: reduce terms, variables, gates, and connections.
  • Benefits:
    • Lower cost
    • Smaller size
    • Improved reliability

Methods

  1. Algebraic simplification
  2. Karnaugh Map (K-map)

Standard Forms

  • Product term: (XYZ) -> AND of literals
  • Sum term: (X + Y + Z) -> OR of literals

In Boolean algebra:

  • Product = AND
  • Sum = OR

Minterms and Maxterms

  • Minterm: output = 1 for one input combination, 0 for all others.
  • Maxterm: output = 0 for one input combination, 1 for all others.
  • Minterm and maxterm with the same subscript are complements.
  • Boolean functions can be written as a sum of minterms from the truth table.

Karnaugh Map (K-Map)

  • Graphical method to simplify logic expressions or derive circuits from truth tables.
  • Practical limit: 5–6 variables.


Looping in K-Maps

  • Adjacent 1s are grouped to simplify expressions.
  • Group sizes: pairs, quads, octets (2, 4, 8).

K-Map Simplification Steps

  1. Place 1s and 0s from the truth table.
  2. Loop isolated 1s.
  3. Loop pairs with single adjacency.
  4. Loop octets (8 squares) when possible.
  5. Loop quads (4 squares) using the fewest loops.
  6. Loop remaining pairs if needed.
  7. OR all terms generated by loops.

Don't-Care Conditions

  • Input combinations that never occur or have unspecified outputs.
  • Can be treated as 0 or 1 to achieve further simplification.