2 - Boolean Algebra and Logic Gates
2 - Boolean Algebra and Logic Gates
𝐹2 = 𝑥 ′ 𝑦 ′ 𝑧 + 𝑥 ′ 𝑦𝑧 + 𝑥𝑦 ′
= 𝑥 ′ 𝑧 𝑦 ′ + 𝑦 + 𝑥𝑦 ′ = 𝑥 ′ 𝑧 + 𝑥𝑦 ′
Logic diagram for F1 = x + y'z
Implementation of Boolean function F2
Complement of a Function
• Complement of function F is F’
Minterms and Maxterms
• Two binary variables x and y combined with AND may appear in 4 possible forms:
x’y’,x’y,xy’and xy (minterms or standard products)
• Similarly, for OR possible forms will be x+y, x+y’, x’+y and x’+y’ (maxterms or
standard sums)
Example
Example
• 𝑓1 = 𝑥 ′ 𝑦 ′ 𝑧 + 𝑥𝑦 ′ 𝑧 ′ + 𝑥𝑦𝑧 = 𝑚1 + 𝑚4 + 𝑚7
• 𝑓1′ = 𝑥 ′ 𝑦 ′ 𝑧 ′ + 𝑥 ′ 𝑦𝑧 ′ + 𝑥 ′ 𝑦𝑧 + 𝑥𝑦 ′ 𝑧 + 𝑥𝑦𝑧 ′
• 𝑓1 = 𝑥 + 𝑦 + 𝑥 . 𝑥 + 𝑦 ′ + 𝑧 . 𝑥 + 𝑦 ′ + 𝑧′ . 𝑥′ + 𝑦 + 𝑧′ .
𝑥′ + 𝑦′ + 𝑧 = 𝑀0 . 𝑀2 . 𝑀3 . 𝑀5 . 𝑀6
Sum of Minterms and Product of Maxterms
• The minterms whose sum defines the Boolean function are those
which give the 1’s of the function in a truth table.
• Function can be either 0 or 1 for each minterm
• There are 2𝑛 minterms
2𝑛
• All the function that can be formed with n-variable calculated as 2
2𝑛
• Each of the2 functions of n binary variables can be also expressed
as a product of maxterms.
Example
𝐹 = 𝐴 + 𝐵′ 𝐶
𝐴 = 𝐴 𝐵 + 𝐵′ = 𝐴𝐵 + 𝐴𝐵′ = 𝐴𝐵 𝐶 + 𝐶 ′ + 𝐴𝐵′ 𝐶 + 𝐶 ′
= 𝐴𝐵𝐶 + 𝐴𝐵𝐶 ′ + 𝐴𝐵′ 𝐶 + 𝐴𝐵′ 𝐶′
𝐵′ 𝐶 = 𝐵′ 𝐶 𝐴 + 𝐴′ = 𝐴𝐵′ 𝐶 + 𝐴′ 𝐵′ 𝐶
𝐹 = 𝐴 + 𝐵′ 𝐶 = 𝐴𝐵𝐶 + 𝐴𝐵𝐶 ′ + 𝐴𝐵′ 𝐶 + 𝐴𝐵′ 𝐶 ′ + 𝐴′ 𝐵′ 𝐶
= 𝑚1 + 𝑚4 + 𝑚5 + 𝑚6 + 𝑚7 = (1,4,5,6,7)
Example
𝐹 = 𝑥𝑦 + 𝑥 ′ 𝑧
= 𝑥𝑦 + 𝑥 ′ 𝑥𝑦 + 𝑧 = 𝑥 + 𝑥 ′ 𝑦 + 𝑥 ′ 𝑥 + 𝑧 𝑦 + 𝑧
= (𝑥 ′ + 𝑦)(𝑥 + 𝑧)(𝑦 + 𝑧)
𝑥 ′ + 𝑦 = 𝑥 ′ + 𝑦 + 𝑧𝑧 ′ = 𝑥 ′ + 𝑦 + 𝑧 𝑥 ′ + 𝑦 + 𝑧 ′
𝑥 + 𝑧 = 𝑥 + 𝑧 + 𝑦𝑦 ′ = (𝑥 + 𝑦 + 𝑧)(𝑥 + 𝑦 ′ + 𝑧)
𝑦 + 𝑧 = 𝑦 + 𝑧 + 𝑥𝑥 ′ = (𝑥 + 𝑦 + 𝑧)(𝑥 ′ + 𝑦 + 𝑧)
𝐹 = 𝑥𝑦 + 𝑥 ′ 𝑧 = 𝑥 + 𝑦 + 𝑧 𝑥 + 𝑦 ′ + 𝑧 𝑥 ′ + 𝑦 + 𝑧 𝑥 ′ + 𝑦 + 𝑧 ′
= 𝑀0 𝑀2 𝑀4 𝑀5 = ෑ(0,2,4,5)
Conversion between Canonical Forms
𝐹 𝐴, 𝐵, 𝐶 = ∑ 1,4,5,6,7
𝐹′ 𝐴, 𝐵, 𝐶 = ∑ 0,2,3
= 𝑚0 + 𝑚2 + 𝑚3
𝐹 = 𝑚0 + 𝑚2 + 𝑚3 ′ = 𝑚0 ′𝑚2 ′𝑚3 ′
= 𝑀0 𝑀2 𝑀3 = ∏(0,2,3)
𝑚𝑗 ′ = 𝑀𝑗
Example
Standard Forms
• Sum of Products
• Containing AND terms called product terms
• The sum denotes the ORing of those terms
• Example: 𝐹1 = 𝑦 ′ + 𝑥𝑦 + 𝑥 ′ 𝑦𝑧′
• Product of Sums
• Containing OR terms called sum terms
• The product denotes the ANDing of those terms
• Example: 𝐹2 = 𝑥(𝑦 ′ + 𝑧)(𝑥 ′ + 𝑦 + 𝑧 ′ )
Three and Two-level Implementation
𝐹3 = 𝐴𝐵 + 𝐶 𝐷 + 𝐸
𝐹3 = 𝐴𝐵 + 𝐶𝐷 + 𝐶𝐸
Other Logic Operators
Demonstrating the nonassociativity of the NOR operator
Multi-input and cascaded NOR and NAND
Three-input exclusive OR
Positive and Negative Logic