Escolar Documentos
Profissional Documentos
Cultura Documentos
Fall 1999
Rev: 11.2.99
Lecture Notes 10
Last Time
Project 1 Assigned 4 More BA Rules TT POS Simplify w/BA NOR LD Karnaugh Maps Introduction 2,3, & 4 Variables Review of Exam 1
This Time
Boolean Algebra - 4 More Rules Factoring Karnaugh Maps Definitions Many Examples 5 & 6 Variables
Boolean Algebra
29. 30. 31. 32. A XOR A = 0 A XOR A' = 1 (A + B)(B' + C)(A + C) = (A + B)(B' + C) AB + B'C + AC = AB + B'C
Factoring
Use rule 14 to help reduce the gate count. 14. AB + AC = A(B + C) Example Y = A' D' + A' C' A straightforward implementation requires: 3 2-Input NAND's 3 Inverters After factoring, we have Y = A' (C'+D') This can be implemented more efficiently as shown below
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html
1/12
9/5/12
This requires 2 2-Input NAND's 2 Inverters Example Y = A' C' + A' D' + AEF + A B' A straightforward implementation requires: 3 2-Input NAND's 1 3-Input NAND 1 4-Input NAND (to combine all four products) 4 Inverters (for A, B, C, and D) This would take 3-4 IC's to implement depending on whether you used one of the spare NAND's to implement the inverter. After factoring, we have Y = A' (C' + D') + A (EF + B') This can be implemented as follows
This requires 6 2-Input NAND's 1 Inverter Assuming you used standard IC's that have 4 2-Input NAND's per an IC, this would take 2 IC's to implement if you used one of the spare NAND's to implement the inverter.
Karnaugh Maps
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html 2/12
9/5/12
Today we will discuss Karnaugh maps more formally than last time and discuss a more orderly method for optaining the minimal sum. Literal A variable or complement of a variable. Examples: A, B', C', D Normal Product Term A product term in which no variable appears more than once. Examples: ABC, AB'C', A'B'C' Counter Examples: AA'BC, AB'B'C', ABCC n-variable Minterm A normal product term with n literals. There are 2n such terms. Example:
9/5/12
Y = A'CD' + AC'D + BCD Example 2 Prime Implicants: 7 Distinguished 1-Cells: 2 Essential Prime Implicants: 2 Minimal Sums: 1
Y = B'D' + AD' + A'C'D + BCD Example 3 Prime Implicants: 6 Distinguished 1-Cells: 2 Essential Prime Implicants: 2 Minimal Sums: 3
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html
4/12
9/5/12
Y = AB'C' + A'CD' + ABD + BCD Example 4 Prime Implicants: 5 Distinguished 1-Cells: 3 Essential Prime Implicants: 3
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html 5/12
9/5/12
Minimal Sums: 1
Y = A'B' + A'C' + ABC + A'D Example 5 Prime Implicants: 4 Distinguished 1-Cells: 4 Essential Prime Implicants: 4 Minimal Sums: 1
Y = A'C + A'B + BD + CD Example 6 Prime Implicants: 5 Distinguished 1-Cells: 3 Essential Prime Implicants: 3 Minimal Sums: 1
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html
6/12
9/5/12
Y = B'D + BC' + AB Example 7 Prime Implicants: 8 Distinguished 1-Cells: 0 Essential Prime Implicants: 0 Minimal Sums: 2
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html
7/12
9/5/12
Y = B'CD' + A'CD + BC'D + AC'D' Example 8 Prime Implicants: 3 Distinguished 1-Cells: 8 Essential Prime Implicants: 3 Minimal Sums: 1
Y = B'C + D + BC'
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html
8/12
9/5/12
Y = A'B'C' + BE + ABC' + ACE + CDE Note that the joint map can help you identify the joint prime implicants.
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html
9/12
9/5/12
The prime implicants The prime implicants The prime implicants The prime implicants The prime implicants The prime implicants
unique to each map are shown in black. shared between maps 0 and 1 (A=0) are shown in aqua. shared between maps 0 and 2 (B=0) are shown in violet. shared between maps 1 and 3 (B=1) are shown in olive. shared between maps 2 and 3 (A=1) are shown in brown. shared between all 4 maps are shown in orange.
To find the prime implicants shared among maps it may help to draw out each of the 5 joint maps. Distinguished 1-Cells: 10 Essential Prime Implicants: 5 Minimal Sums: 2 Essential Prime Implicants A'EF (Maps 0 & 1) BCD' (Maps 1 & 3) B'D'F' (Maps 0 & 2) ACE' (Maps 2 & 3) ABDE' (Map 3)
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html
10/12
9/5/12
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html
11/12
9/5/12
web.cecs.pdx.edu/~mcnames/ECE171/Lectures/Lecture10.html
12/12