Canonical Forms - Minterms, Maxterms, SOP and POS
In questa pagina 5
A Boolean expression can be written in many equivalent ways. Canonical (normal) forms are standard expressions derived mechanically from the truth table: not the most compact, but the ideal starting point for minimization (Karnaugh Maps and Two-Level MinimizationA Karnaugh map is the truth table arranged in a grid with rows and columns in Gray code, so that adjacent cells (also across opposite edges) differ in one variable. Groups of 2^k ones eliminate k variables and give a product. A prime implicant is a maximal group, an essential one is the only cover of some minterm; the minimum cover has all essentials plus few other primes. For POS, group the zeros. Don't cares may be used as 1 or 0. XOR functions have a checkerboard map and do not simplify.Karnaugh Maps and Two-Level Minimization →).
Minterms
A minterm is a product (AND) in which each variable of the function appears exactly once, direct or negated. It corresponds to one truth-table row: it is for the combination of that row and for all others. Take each variable direct if its bit in the row is 1, negated if 0. If the row is number (first variable = MSB) it is called .
With , row gives .
Maxterms
A maxterm is the dual concept: a sum (OR) containing each variable exactly once, direct or negated. It is on one row and on all others. Take each variable negated if its bit is 1, direct if 0 (opposite of the minterm rule).
Row gives . The minterm and maxterm with the same index are complements: (De Morgan, Boolean Algebra - Axioms, Theorems and Function ComplementBoolean algebra works on two-valued variables with AND, OR, NOT. Fundamental identities (identity element, idempotence, complement, commutative, associative, both distributive laws) come in dual pairs; De Morgan, absorption, adjacency and consensus are the main theorems, proved by perfect induction or algebraically. The complement of a function is obtained with De Morgan or with the dual plus literal negation. Cost is measured in literals or gate inputs.Boolean Algebra - Axioms, Theorems and Function Complement →); e.g. .
| row | minterm | maxterm | |
|---|---|---|---|
| 0 | 000 | ||
| 1 | 001 | ||
| 2 | 010 | ||
| 3 | 011 | ||
| 4 | 100 | ||
| 5 | 101 | ||
| 6 | 110 | ||
| 7 | 111 |
With variables there are minterms and maxterms (not , not ).
Canonical SOP and POS
From the truth table of :
- canonical SOP (Sum Of Products): sum of the minterms of the rows with , ;
- canonical POS (Product Of Sums): product of the maxterms of the rows with , .
(1 on rows 1 and 3): . The POS indices are those missing from the SOP. Other rows can be ignored: in a SOP rows with would add (neutral for OR); in a POS rows with would contribute (neutral for AND).
Worked example
:
| row | ||||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 0 | 2 |
| 0 | 1 | 1 | 1 () | 3 |
| 1 | 0 | 0 | 1 () | 4 |
| 1 | 0 | 1 | 1 () | 5 |
| 1 | 1 | 0 | 0 | 6 |
| 1 | 1 | 1 | 1 () | 7 |
Check on row 6 (): , so .
From an expression to a canonical form
If terms lack some variables, expand a product missing by multiplying by : . For a sum term missing add and use the second distributive law. Simpler: go through the truth table. E.g. is 1 on rows () and (): .
Minimal SOP/POS and circuit levels
Canonical forms are usually redundant. A simplified SOP (or POS) has fewer literals: is shorter than . An expression in SOP or POS is built as a two-level circuit (AND level and OR level for a SOP; OR and AND for a POS; direct and negated variables assumed available). Otherwise more levels are needed: has three levels; with the distributive law the SOP has two. SOPs map well to NAND-NAND and POSs to NOR-NOR (Combinational Design - Hierarchy and NAND-NOR MappingA combinational circuit has outputs depending only on the present inputs (no memory, no feedback); a sequential one also depends on history (state, memory, feedback). Design flow: specification, truth table, minimum-cost function, logic diagram, verification. With many inputs the hierarchical approach splits the system into reusable blocks (regularity). Basic blocks: one-variable functions, vectors, enabling. Technology mapping in CMOS: SOP to NAND-NAND, POS to NOR-NOR.Combinational Design - Hierarchy and NAND-NOR Mapping →).
With variables there are different functions: for , for .
Common mistakes
- Using the maxterm rule for a minterm (or vice versa): minterm direct if 1, maxterm direct if 0.
- Writing in the POS the indices of the 1s instead of the 0s.
- Calling a simplified SOP "canonical": canonical means every term has all variables.
Versione ripasso
- Minterm : product with all variables once, direct if bit , negated if ; 1 on one row. .
- Maxterm : sum with all variables once, negated if bit , direct if ; 0 on one row. .
- Properties: ; of each.
- Canonical SOP: of rows with . Canonical POS: of rows with (the missing indices). : .
- Example: ; check row 6: .
- Expansion: multiply a product by : . .
- Minimal forms: canonical is redundant; SOP = AND-OR (NAND-NAND), POS = OR-AND (NOR-NOR). has 3 levels, has 2. functions ( for ).
- Mistakes: minterm/maxterm rules swapped; POS indices taken from the 1s; simplified SOP called canonical.