A two-level circuit has two layers of gates between the inputs and the output, assuming complemented inputs are already available.
- A sum of products is built as AND-OR: one AND gate per product term, all feeding one OR gate.
- A product of sums is built as OR-AND: one OR gate per sum term, all feeding one AND gate.
Why two levels? Every signal passes through at most two gates, so the circuit is fast, and the structure is regular and easy to design. Programmable logic arrays are built exactly this way.
NAND-NAND and NOR-NOR. In CMOS, NAND and NOR gates are cheaper than AND and OR. By bubble pushing, replacing every gate of an AND-OR circuit with a nand gate leaves the function unchanged: = . Likewise OR-AND becomes NOR-NOR. One catch: a single-literal term has no first-level gate, so it must enter the output gate complemented; see single literal term.
The cost of a two-level circuit is measured by its gate input count, which is why simplification aims for a minimal sop or minimal pos.