A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Logic Gates and Combinational Circuits

College Depth 69 in the knowledge graph I know this Set as goal
650topics build on this
311prerequisites beneath it
See this on the map →
Boolean AlgebraBoolean Circuit Complexity and Lower BoundsCircuit Complexity+3 more
logic-gates AND OR NOT NAND XOR combinational-circuits functional-completeness

Core Idea

Logic gates are physical realizations of Boolean operations: AND, OR, NOT, NAND, NOR, and XOR. A combinational circuit is a directed acyclic network of gates computing a Boolean function of its inputs with no feedback. Any Boolean function can be implemented using only NAND gates (or only NOR gates), making each set functionally complete — a fact crucial for hardware manufacturing. Circuit design translates a truth table to a Boolean expression, simplifies it to minimize gates, and then maps to a gate network. The half adder and full adder demonstrate how arithmetic emerges from Boolean primitives.

How It's Best Learned

Design simple circuits — half adder, full adder, 2-to-1 multiplexer — starting from truth tables. Practice both sum-of-products and product-of-sums implementations. Prove NAND universality by constructing NOT, AND, and OR from NAND alone.

Common Misconceptions

Explainer

You've studied Boolean algebra — the abstract system of 0s, 1s, AND, OR, and NOT with its algebraic laws. Logic gates are the physical realization of those operations: electrical components that take voltage signals as inputs (high voltage = 1, low voltage = 0) and produce a voltage output according to a Boolean rule. A combinational circuit is a network of gates with no feedback loops — it is a directed acyclic graph of gates whose output is determined entirely by the current inputs, with no memory of past inputs. Every combinational circuit computes some Boolean function.

The standard design process flows from specification to circuit. Start with a truth table specifying the desired output for every input combination. From the rows where the output is 1, write a sum-of-products (SOP) expression: an AND term for each such row, combined with OR. This gives a correct two-level circuit. The circuit may be redundant, so apply Boolean algebra identities to reduce gate count before building. The reverse process — product-of-sums (POS) from rows where the output is 0 — is equally valid. Both are systematic translations from specification to gate network.

The surprising result of functional completeness is that you need only one gate type to build anything. The NAND gate — which outputs 0 only when both inputs are 1 — can simulate all three primitive operations: NOT(A) = NAND(A,A); AND(A,B) = NOT(NAND(A,B)); OR(A,B) = NAND(NOT A, NOT B). This means any Boolean function, however complex, can be implemented using only NAND gates. NOR gates are equally complete by a symmetric argument. Hardware manufacturers exploit this: a single type of gate can be mass-produced, and any circuit is built from multiples of it. Universality — one gate generating all others — is the key concept.

The adder circuit demonstrates how arithmetic emerges from Boolean primitives. A half adder adds two 1-bit inputs: the sum bit is XOR(A,B) (the inputs differ) and the carry is AND(A,B) (both are 1). A full adder takes three bits — two data inputs plus a carry-in — and produces a sum bit and carry-out. Chaining n full adders gives a ripple-carry adder that adds two n-bit numbers. This chain of AND, OR, and NOT gates (or equivalently, only NANDs) is what a processor uses for integer arithmetic. The entire jump from abstract Boolean operations to working hardware is made of concepts you now have.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraLogic Gates and Combinational Circuits

Longest path: 70 steps · 311 total prerequisite topics

Prerequisites (1)

Leads To (5)