p14m

Circuit Diagrams

From boolean expressions to gate-level circuits.

Problem

How do you go from a boolean expression to actual hardware?

How it works

Every boolean expression maps directly to a circuit. Each operator becomes a gate, each variable becomes an input wire. The expression’s AST (abstract syntax tree) is the circuit topology: depth in the tree corresponds to columns of gates from input to output.
Key insightA boolean expression and its circuit diagram are the same structure drawn two different ways.