๐Ÿ”ฒ Chip Design Institute
Educational Resources

Digital Logic Fundamentals

From Boolean algebra to gate-level design. The mathematical and physical foundation of every digital system ever built.

Boolean Algebra

Boolean algebra, formalized by George Boole in 1854, is the mathematics of binary logic. Every digital circuit is ultimately an implementation of Boolean functions in silicon. Variables take only two values: 0 (false) and 1 (true).

AND
A · B
OR
A + B
NOT
~A
XOR
A ⊕ B
NAND
Universal

Fundamental Operations

Key Theorems

Truth Table
K-Map / Quine-McCluskey
Minimized SOP/POS
Gate-level circuit

Canonical Forms

💡 A computer chip is made of billions of tiny switches called transistors. They only understand ON (1) and OFF (0). Logic gates combine these switches to make decisions โ€” AND means "both must be on," OR means "at least one on," and NOT flips the answer. Every app, game, and video you've ever used runs on just these three ideas!

Truth Tables

A truth table exhaustively lists every possible input combination and the corresponding output. For n inputs, the table has 2^n rows. Truth tables completely specify a combinational function.

Basic Gates

ABANDORNANDNORXORXNOR
00001101
01011010
10011010
11110001

Full Adder Truth Table

The full adder computes Sum = A XOR B XOR Cin, and Cout = AB + BCin + ACin. It adds three single-bit inputs and produces a sum bit and a carry-out bit.

ABCinSumCout
00000
00110
01010
01101
10010
10101
11001
11111

Don't-Care Conditions

In many real designs, certain input combinations never occur (e.g., BCD digits only go 0-9, leaving 6 unused combinations in a 4-bit encoding). These "don't-care" entries (marked X or d) can be treated as either 0 or 1 during minimization, allowing simpler circuits. Don't-cares are critical for efficient Karnaugh map reduction.

Karnaugh Maps

Maurice Karnaugh introduced K-maps in 1953 as a graphical method for simplifying Boolean functions. They exploit the spatial arrangement of minterms so that adjacent cells differ by exactly one variable โ€” enabling visual identification of simplification opportunities.

How K-Maps Work

2-Variable K-Map

For f(A,B) = A'B + AB = B, the K-map shows both cells in column B=1 are 1. Grouping those two cells eliminates A, leaving f = B.

4-Variable K-Map

For 4 variables (A, B, C, D), the K-map is a 4x4 grid with 16 cells. Corner grouping is common: the four corners (0000, 0010, 1000, 1010) form a valid group of 4, giving B'D'. K-maps work well up to 5-6 variables; beyond that, use the Quine-McCluskey algorithm or Espresso heuristic minimizer.

Quine-McCluskey Algorithm

A tabular method for exact Boolean minimization. Systematically finds all prime implicants, then solves a covering problem for the minimum set. Guaranteed optimal but exponential time complexity (NP-hard in general). Tools like Espresso (developed at UC Berkeley) use heuristic approaches that produce near-optimal results in practical time.

Logic Gates in Hardware

Logic gates are the physical building blocks of digital circuits. In CMOS technology (Complementary Metal-Oxide-Semiconductor), gates are built from pairs of pMOS and nMOS transistors.

CMOS Gate Implementation

Fan-In and Fan-Out

Propagation Delay

The time from input change to stable output. Measured as t_pHL (high-to-low transition) and t_pLH (low-to-high). Total delay through a circuit is the sum of gate delays along the critical path. In modern 5nm processes, inverter delay is approximately 10-15 picoseconds.

Combinational vs Sequential Logic

Combinational Logic

Output depends only on current inputs. No memory, no feedback, no clock. Given the same inputs, a combinational circuit always produces the same outputs (after propagation delay).

Sequential Logic

Output depends on current inputs AND stored state. Uses feedback and clock signals. Sequential circuits have memory โ€” they can be in different states even with the same inputs.

🕒 Sequential logic is what gives computers memory! Combinational circuits are like a calculator โ€” put in numbers, get an answer, done. But sequential circuits remember things. A flip-flop is like a tiny Post-it note that stores one bit (0 or 1). Your computer's RAM is millions of these Post-it notes working together!

Standard Cell Design

Standard cell methodology is the dominant approach for ASIC design. A library of pre-characterized logic cells (INV, NAND2, NOR2, DFF, etc.) with fixed heights and variable widths is provided by the foundry. The designer works at the gate level; place-and-route tools handle physical layout.

What's in a Standard Cell Library

Cell Characterization

From RTL to GDSII

Resources

MIT 6.004: Computation Structures

Full course covering digital logic, Boolean algebra, combinational and sequential circuits, FSMs, and computer architecture.

MIT OpenCourseWare | Free

Nand2Tetris

Build a computer from NAND gates. Hands-on projects progress from gates to ALU to CPU to assembler. The best way to internalize digital logic.

Hebrew University | Free

Harris & Harris: Digital Design and Computer Architecture

Gold-standard textbook covering combinational logic, sequential logic, Verilog, SystemVerilog, and processor design.

Textbook | Beginner to Intermediate

Yosys Open Synthesis Suite

Open-source synthesis tool. Write Verilog, synthesize to gates, and see the actual standard cells your design maps to.

GitHub | ISC License

HDLBits

Interactive Verilog exercises. Practice combinational and sequential logic design in your browser with instant feedback.

Free | Browser-based

Falstad Circuit Simulator

Interactive circuit simulator in the browser. Build and test logic gates, flip-flops, counters, and more with real-time visualization.

Free | Browser-based