From SOP to a Circuit — Two-Level Logic
On this page 4 headings
Start here Last week you turned a truth table into a Sum of Products formula. This week you turn that formula into a real circuit you could build on a breadboard. The good news: every SOP becomes the same simple shape, a row of AND gates feeding one OR gate.
Number the rows of the truth table 0, 1, 2… (the row’s binary value). Then just list the rows where :
=
Order matters! only makes sense if everyone agrees which variable is the left bit. F(A, B, C) means A is the left (biggest) bit. Always keep the variables in the order given.
- Put a NOT gate on any input that appears with a bar.
- Make one AND gate per product term.
- Feed all AND outputs into one OR gate.
This is called two-level logic (level 1: AND, level 2: OR; the NOT gates don’t count as a level).
Example: needs 3 NOT gates, 3 three-input AND gates and 1 three-input OR gate.
The canonical SOP (all minterms) is correct but often wasteful.
| Form | Formula for | Gates needed |
|---|---|---|
| Canonical SOP | 5 ANDs (3-input) + 1 OR (5-input) + NOTs | |
| Minimal SOP |
Both give the same truth table. Finding the small one is called logic minimisation. You’ll do it with Boolean algebra now, and with K-maps in Week 5.
Check: is 1 when (rows 4–7) or when (rows 3 and 7). That’s rows 3, 4, 5, 6, 7 ✓.
In one line: Any SOP becomes a two-level circuit (NOTs → ANDs → one OR), but the canonical form is usually much bigger than the minimal one. Exam words: notation, variable order, two-level logic, AND-OR circuit, canonical vs minimal, logic minimisation.
