Home / Learn Verilog / Sum of Products and Product of Sums
Sum of Products and Product of Sums
Two standard ways to write a truth table as a Boolean expression.
What's actually going on
The basic idea
Sum of Products (SOP) ORs together the AND terms (minterms) for rows where the output is 1. Product of Sums (POS) ANDs the OR terms (maxterms) for rows where the output is 0.
Why this comes up
SOP and POS are the starting point of logic minimisation and map directly to two-level gate circuits.
The mechanics
For each row with output 1, write an AND of all inputs (inverted when the input is 0). OR all those terms together.
Where it is used
- Logic design courses
- PLA and ROM thinking
- Verification of simplified logic
Build SOP from a table
y = 1 whenever at least two inputs are 1. The SOP has four terms; the next lesson simplifies it to three: ab + bc + ac.
| Form | Built from | Gate structure |
|---|---|---|
| SOP | ANDs of literals, ORed | AND-OR |
| POS | ORs of literals, ANDed | OR-AND |
Quick check
1. SOP uses rows where the output is...
Minterms are rows with output 1.
2. SOP maps to which gate structure?
AND terms feeding an OR.