Do you know?
[SE] Logic gates and K-map - part 2
- Fact 1 of 12๐
De Morgan's first law
NOT (A AND B) = (NOT A) OR (NOT B). Break the bar, flip the operator. Recall: What does NOT (A AND B) become?
- Fact 2 of 12๐
De Morgan's second law
NOT (A OR B) = (NOT A) AND (NOT B). Same rule as the first law: break the bar, flip the operator. Recall: What does NOT (A OR B) become?
- Fact 3 of 12โก
NAND is universal
Any logic function can be built using only NAND gates. Why: one gate type means fewer chips and cheaper circuits. Recall: Which single gate can make all logic?
- Fact 4 of 12๐
NOR is universal too
NOR gates alone can also build any logic function. NAND and NOR are the two universal gates. Recall: Name both universal gates.
- Fact 5 of 12๐ฒ
K-map groups: powers of two
Each K-map group must have 1, 2, 4, 8 or 16 cells. Why: binary grouping lets one variable drop out cleanly. Recall: Can a group have 3 cells?
- Fact 6 of 12๐ฏ
Biggest groups first
Make groups as large as possible while covering every 1. Bigger groups mean fewer variables in the final term. Recall: What do bigger groups reduce?
- Fact 7 of 12๐
K-map edges wrap around
Opposite edges of a K-map are neighbours. Cells in the leftmost and rightmost columns can join one group. Recall: What do opposite edges become?
- Fact 8 of 12๐งญ
Neighbours differ by one variable
Adjacent K-map cells differ in exactly one variable, using Gray code order. That single change lets a group cancel a variable. Recall: How many variables change between neighbours?
- Fact 9 of 12โ
SOP: sum of products
SOP writes a function as an OR of AND terms, usually built from the 1s. Example: AB + A'C. Recall: What does SOP stand for?
- Fact 10 of 12โ๏ธ
POS: product of sums
POS writes a function as an AND of OR terms, often built from the 0s. Example: (A+B)(A'+C). Recall: What does POS stand for?
- Fact 11 of 12โ
Don't-care cells help
Don't-care cells (X) can be treated as 1 or 0, whichever makes a group bigger. Why: fewer terms mean a simpler circuit. Recall: What does X mean in a K-map?
- Fact 12 of 12๐งฎ
Cells double with each variable
A 2-variable K-map has 4 cells, a 3-variable map has 8, and a 4-variable map has 16. Each extra variable doubles the cells. Recall: How many cells in a 4-variable K-map?
