Digital Logic ยท Unit 3 ยท 5 hrs
Simplification of Boolean Functions
Exam-focused notes for Simplification of Boolean Functions (Digital Logic, CSC116): what the TU syllabus asks and how it has actually been tested, with 8 solved past questions from this unit.
Simplification of Boolean Functions in short
This chapter covers the Karnaugh map, a graphical tool for reducing a Boolean function to its minimum number of terms and literals, along with its use for product-of-sums forms, its translation into NAND/NOR-only circuits, its handling of don't-care conditions, and the tabulation method used when a function has too many variables to map by eye.
What this unit covers
- K-map
- Two and Three variable maps
- Four variable maps
- product of sum simplification
- NAND and NOR implementation
- Don't Care conditions
- Determinant and selection of Prime Implicants
K-map
2081 ยท 10 marks
De-Morgan's Law and Boolean Function Simplification
Show solved answerHide answer
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.
2075 ยท 5 marks
Reduce the following function using k-map. F=B'D+A'BC'+AB'C+ABC' [5]
Four variable maps
2081 ยท 5 marks
Simplify $F(A,B,C,D)=\sum(1,3,4,6,9,11,12,14)$ and realize the equation using NOR gates only. [5]
Show solved answerHide answer
Simplification of F(A,B,C,D) = ฮฃ(1,3,4,6,9,11,12,14) and NOR Realization
Given
- Function: $F(A,B,C,D) = \sum(1,3,4,6,9,11,12,14)$
- 4 variables: A (MSB), B, C, D (LSB)
- Requirement: simplify, then realize using NOR gates only
Step 2: K-Map Plot
Minterms in binary (ABCD):
- m1 = 0001, m3 = 0011, m4 = 0100, m6 = 0110
- m9 = 1001, m11 = 1011, m12 = 1100, m14 = 1110
| CD\AB | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0 | 1 (m4) | 1 (m12) | 0 |
| 01 | 1 (m1) | 0 | 0 | 1 (m9) |
| 11 | 1 (m3) | 0 | 0 | 1 (m11) |
| 10 | 0 | 1 (m6) | 1 (m14) | 0 |
Verify placement (columns are AB, rows are CD):
- m1 (A=0,B=0,C=0,D=1): AB=00, CD=01 โ
- m3 (0,0,1,1): AB=00, CD=11 โ
- m4 (0,1,0,0): AB=01, CD=00 โ
- m6 (0,1,1,0): AB=01, CD=10 โ
- m9 (1,0,0,1): AB=10, CD=01 โ
- m11 (1,0,1,1): AB=10, CD=11 โ
- m12 (1,1,0,0): AB=11, CD=00 โ
- m14 (1,1,1,0): AB=11, CD=10 โ
Step 3: Group the 1s
Group 1 (Quad): m1, m3, m9, m11 โ cells with B=0, D=1
- A varies (0,1), C varies (0,1), B=0 fixed, D=1 fixed โ B'D
Group 2 (Quad): m4, m6, m12, m14 โ cells with B=1, D=0
- A varies, C varies, B=1 fixed, D=0 fixed โ BD'
Step 4: Simplified SOP
$$\boxed{F = B'D + BD' = B \oplus D}$$
Step 5: Convert for NOR Realization
NOR gates naturally give POS form. Group the 0s to find $F'$.
Zeros at: m0, m2, m5, m7, m8, m10, m13, m15
Group A (0s): m0, m2, m8, m10 โ B=0, D=0 โ B'D' Group B (0s): m5, m7, m13, m15 โ B=1, D=1 โ BD
$$F' = B'D' + BD$$
Complement to get POS:
$$F = (F')' = (B'D' + BD)' = (B'D')'\cdot(BD)'$$
$$F = (B + D)(B' + D')$$
Step 6: NOR Gate Implementation
For a POS expression, standard NOR realization uses a NOR-NOR structure. We write each sum term as a NOR (inverted OR) and combine.
Note the identity: $(X)(Y) = \overline{\overline{X} + \overline{Y}} = \overline{,\overline{X}\ \text{NOR}\ \overline{Y},}$... rather, express directly:
$$F = (B+D)(B'+D') = \overline{\overline{(B+D)(B'+D')}} = \overline{\ \overline{(B+D)} + \overline{(B'+D')}\ }$$
So: $$F = \overline{(B \text{ NOR } D) + (B' \text{ NOR } D')} = (B \text{ NOR } D)\ \text{NOR}\ (B' \text{ NOR } D')$$
Gate list (NOR only):
| Gate | Function | Output |
|---|---|---|
| G1 (inverter) | B NOR B | $B'$ |
| G2 (inverter) | D NOR D | $D'$ |
| G3 | B NOR D | $\overline{B+D}$ |
| G4 | B' NOR D' | $\overline{B'+D'}$ |
| G5 | G3 NOR G4 | $\overline{\overline{(B+D)}+\overline{(B'+D')}} = (B+D)(B'+D') = F$ |
Circuit sketch:
B --------+------[G3: NOR]---+
D --------|--+--- |
| | +--[G5: NOR]--> F
B --[G1:NOR B,B]=B'--[G4:NOR]--+
D --[G2:NOR D,D]=D'--
Final Answer
$$\boxed{F = B'D + BD' = B \oplus D = (B+D)(B'+D')}$$
Realized with 5 NOR gates: 2 as inverters (for B', D'), 2 for the sum terms, 1 for the final combination.
2079 ยท 5 marks
Minimize the following Boolean function using K-map $F(A, B, C, D) = \Sigma m(0,1,2,5,7,8,9,10,13,15)$. [5]
2078 ยท 5 marks
Minimize the following Boolean function using K-map. $F(A,B,C,D)=\sum(0,1,3,5,7,8,9,11,13,15)$ [5]
Don't Care conditions
2080 ยท 5 marks
If $f(P,Q,R,S)=\sum(3,4,7,8,14)$, $d(P,Q,R,S)=\sum(1,6,9,13)$ Simplify it using K-map and design circuit using minimum number of NAND gates. [5]
product of sum simplification
2078 ยท 5 marks
Express the Boolean function F = x+yz as a product of max-terms. [5]
NAND and NOR implementation
2077 ยท 5 marks
Simplify the following function and implement them with two level NOR gate circuit, $F(w, x, y, z) = wx' + y'z' + w'yz'$. [5]
Make Unit 3 stick
Practice CSC116 with flashcards & quizzes