CSC116 ¡ 2081 ¡ 10 marks
De-Morgan's Law and Boolean Function Simplification
De-Morgan's Law and Boolean Function Simplification
De-Morgan's Law and K-Map Simplification
Part 1: De-Morgan's Law
De-Morgan's Law relates the complement of a compound Boolean expression to the complements of its parts.
Theorem 1: $\overline{A + B} = \bar{A} \cdot \bar{B}$ The complement of a sum equals the product of the complements.
Theorem 2: $\overline{A \cdot B} = \bar{A} + \bar{B}$ The complement of a product equals the sum of the complements.
Truth-table verification:
| A | B | $\overline{A+B}$ | $\bar A\bar B$ | $\overline{A\cdot B}$ | $\bar A+\bar B$ |
|---|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 |
Columns match, so both theorems hold.
Part 2: K-Map Simplification
Given data
- $F(P,Q,R,S)=\prod(0,1,4,5,11,14,15)$ â maxterms (cells = 0)
- $d(P,Q,R,S)=\sum(2,3,7,8,9,13)$ â don't cares (X)
- Remaining cells = 1: all ${0..15}$ minus maxterms minus don't cares
- $F=1$ at ${6, 10, 12}$
K-map (rows PQ, cols RS)
Minterm positions:
RS=00 01 11 10
PQ=00 | m0 | m1 | m3 | m2 |
PQ=01 | m4 | m5 | m7 | m6 |
PQ=11 | m12 |m13 |m15 |m14 |
PQ=10 | m8 | m9 |m11 |m10 |
Filled values:
RS=00 01 11 10
PQ=00 | 0 | 0 | X | X |
PQ=01 | 0 | 0 | X | 1 |
PQ=11 | 1 | X | 0 | 0 |
PQ=10 | X | X | X | 1 |
Note: $m_{11}$ is a don't care (it appears in the d-set), so it must not be entered as a 0.
Part 2A: SOP (group 1s using X's)
Ones at: m6, m10, m12. Don't cares available: m2, m3, m7, m8, m9, m11, m13.
Group 1 (quad): m12, m13, m8, m9
- $m8=1000,\ m9=1001,\ m12=1100,\ m13=1101$
- Constant: $P=1,\ R=0$. Q and S vary.
- Term: $P\bar R$
Group 2 (quad): m2, m3, m6, m7
- $m2=0010,\ m3=0011,\ m6=0110,\ m7=0111$
- Constant: $P=0,\ R=1$. Q and S vary.
- Term: $\bar P R$
Check coverage of the 1's:
- m6 â Group 2 â
- m12 â Group 1 â
- m10 â $1010$: not in Group 1 (needs R=0) nor Group 2 (needs P=0). NOT covered.
Cover m10 = $1010$ ($P=1,Q=0,R=1,S=0$). Available neighbours:
- m11 ($1011$, X) â pair m10,m11: $P=1,Q=0,R=1$ â $P\bar Q R$
- m8 ($1000$, X) â pair m10,m8: $P=1,Q=0,S=0$ â $P\bar Q\bar S$
- Extend to quad m8,m9,m10,m11 (all X except m10): $P=1,Q=0$ â $P\bar Q$ (best, largest group).
So use quad $m8,m9,m10,m11 = P\bar Q$, which also covers m10.
Final SOP: $$F = P\bar R + \bar P R + P\bar Q$$
(Alternatively $P\bar R + \bar P R + P\bar Q R$ if the m8/m9 quad is not reused, but $P\bar Q$ is the minimal literal choice using don't cares.)
Minimal form: $$\boxed{F_{SOP} = \bar P R + P\bar R + P\bar Q}$$
Part 2B: POS (group 0s using X's)
Zeros at maxterms: m0, m1, m4, m5, m11(? no), actual zero cells = ${0,1,4,5,11,14,15}$. Don't cares: ${2,3,7,8,9,13}$.
Zero cells: m0, m1, m4, m5, m11, m14, m15.
Group A (quad): m0, m1, m4, m5
- $0000,0001,0100,0101$: $P=0,R=0$ â $\bar P\bar R$
- Maxterm factor: $(P+R)$
Group B (quad): m11, m15, m14, and pair up):
- m14=$1110$, m15=$1111$, m11=$1011$
- m14,m15 pair: $P=1,Q=1,R=1$ â extend with m10(1010, is a 1 â cannot), with m13(1101,X) no.
- Quad m15,m14,m11,m10? m10 is a 1, so no.
- Use m14,m15 + m6,m7? m6 is 1. No.
Group the zeros:
- Group B: m14, m15 â $P=1,Q=1,R=1$; S varies â $PQR$ â factor $(\bar P+\bar Q+\bar R)$. Extend with X's: m14,m15,m10?(1), m6,m7(m6=1). Only m13(X) with m15,m14... m13=1101 differs in two bits. So m14,m15 stays a pair.
- Group C: m11 = $1011$ â pair with X's: m9(1001,X)â m9,m11: $P=1,Q=0,S=1$ â extend m9,m11,m13,m15: m13=1101(X), m15=1111(zero) all valid â quad $P=1,S=1$ â $PS$ â factor $(\bar P+\bar S)$. This quad {m9,m11,m13,m15} covers zero m11 and m15.
Reassess minimal cover of zeros ${0,1,4,5,11,14,15}$:
- Group A $(P+R)$ covers 0,1,4,5.
- Quad {9,11,13,15} = $PS$ covers 11,15 â factor $(\bar P+\bar S)$.
- m14 = $1110$ remains. Pair m14 with m15(zero)? gives m14,m15 â $PQR$; or m14 with m10(1),m6(1) none. Use m14,m15 â $(\bar P+\bar Q+\bar R)$, or extend m14,m15,m13(X),m12(1 â no). Pair m14,m15,m11,m10? m10=1. So m14 covered by pair m14,m15 â factor $(\bar P+\bar Q+\bar R)$.
Final POS: $$\boxed{F_{POS} = (P+R)(\bar P+\bar S)(\bar P+\bar Q+\bar R)}$$
Summary
- SOP: $F = \bar P R + P\bar R + P\bar Q$
- POS: $F = (P+R)(\bar P+\bar S)(\bar P+\bar Q+\bar R)$
Common mistake: marking $m_{11}$ as a 0 in the K-map when it is a don't care in the given d-set. Treating it correctly gives the full SOP and POS results above.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.