Karnaugh Map: Logic Optimization
Karnaugh Map: Logic Optimization
Karnaugh Map: Logic Optimization
Karnaugh Map
Virendra Singh
Professor
Computer Architecture and Dependable Systems Lab
Department of Electrical Engineering
Indian Institute of Technology Bombay
http://www.ee.iitb.ac.in/~viren/
E-mail: [email protected]
EE-224: Digital Systems
Lecture 18-A: 20 October 2020 CADSL
Minimum Sum of Products (MSOP)
• Identify all prime implicants (PI) by letting
minterms and implicants grow.
• Construct MSOP with PI only :
• Cover all minterms
• Use only essential prime implicants (EPI)
• Use no redundant prime implicant (RPI)
• Use cheaper selective prime implicants (SPI)
C `AC
D D D
C C C
B B B
A
`A`C
D
C
B AD
D
Minimum SOP:
F = A D +`A`C C
B
`CD
20 Oct 2020 EE-224@IITB 8 CADSL
Finding MSOP
1. Start with minterm or cube SOP representation of
Boolean function.
2. Find all prime implicants (PI).
3. Include all EPI’s in MSOP.
4. Find the set of uncovered minterms, {UC}.
5. MSOP is minimum if {UC} is empty. DONE.
6. For a minterm in {UC}, include the largest PI from
remaining PI’s (non-EPI’s) in MSOP.
7. Go to step 4.
1 1 EPI
A 1 1 1
C
SPI
B
19 Oct 2020 EE-224@IITB 11 CADSL
20 Oct 2020 EE-224@IITB 12 CADSL
20 Oct 2020 EE-224@IITB 13 CADSL
Minterms Covered by a Product
• A product from which k variables have been
eliminated, covers 2k minterms.
• Example: For four variables, A, B, C, D
Product AC covers 22 = 4 minterms:
1) A`B C`D A
2) A`B C D
3) A B C`D
D
4) A B C D (4) (2)
C
Obtained by inserting the (3) (1)
eliminated variables in all possible ways. B