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.

In shortTwo standard ways to write a truth table as a Boolean expression.

What's actually going on

Truth table to gatestruth tableminterms for output = 1OR the AND termssimplifygates
Truth table to gates

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

Majority-of-3 as sum of productsVerilog: edit and run

y = 1 whenever at least two inputs are 1. The SOP has four terms; the next lesson simplifies it to three: ab + bc + ac.

FormBuilt fromGate structure
SOPANDs of literals, ORedAND-OR
POSORs of literals, ANDedOR-AND

Quick check

1. SOP uses rows where the output is...

2. SOP maps to which gate structure?