03 BooleanAlgebra&LogicGates 1
03 BooleanAlgebra&LogicGates 1
Logic Gates
CSC 1074
Digital Logic Design
Presentation Outline
Boolean Algebra
DeMorgan's Theorem
4. · is distributive over +:
+ is distributive over ·:
Answer: )
Example 2: Complement
Answer:
Algebraic Manipulation of Expressions
The objective is to acquire skills in manipulating Boolean
expressions, to transform them into simpler form.
Proof:
Distributive · over +
Distributive · over +
Associative commutative +
Distributive · over +
Summary of Boolean Algebra
Property Dual Property
Identity
Complement
Null
Idempotence
Involution (
Commutative
Associative (
Distributive
Absorption
Simplification
De Morgan (
Duality Principle
The dual of a Boolean expression can be obtained by:
Interchanging AND (·) and OR (+) operators
Interchanging 0's and 1's
DeMorgan's Theorem
inputs:
outputs:
Each output is a function of the input variables
inputs
Combinational outputs
Circuit
Example of a Simple Combinational
Circuit
𝑥
𝑦 𝑓
𝑧
𝑔
Truth Table
x y f
z
0 0 0 What is the logic expression of ?
0
0 0 0
What is the gate implementation of ?
1
0 1 1
0 To answer these questions, we need
0 1 1
1 to define Minterms and Maxterms
1 0 0
Minterms and Maxterms
Minterms are AND terms with every variable present in either
true or complement form
Maxterms are OR terms with every variable present in either
true or complement form
Minterms and Maxterms for 2 variables and
x y index Minterm Maxterm
0 0 0
0 1 1
1 0 2
1 1 3
For Maxterms:
‘0’ means the variable is Not Complemented
𝑓 =∑ ( 2 , 3 , 5 ,7 )
1 1 0 0
1 1 1 1
′ ′ ′ ′
𝑓 =𝑥 𝑦 𝑧 +𝑥 𝑦𝑧+𝑥 𝑦 𝑧 +𝑥𝑦𝑧
Examples of Sum-Of-Minterms
Product-Of-Maxterms (POM) Canonical
Form
Truth Table
x y z f Maxterm
0 0 0 0
Product of Maxterm entries
0 0 1 0 that evaluate to ‘0’
0 1 0 1
Focus on the ‘0’ entries
0 1 1 1
1 0 0 0
𝑓 =𝑀 0 · 𝑀 1 · 𝑀 4 · 𝑀 6
1 0 1 1
𝑓 =∏ ( 0 ,1 , 4 , 6 )
1 1 0 0
1 1 1 1
′ ′ ′ ′
𝑓 =(𝑥+𝑦+𝑧 )(𝑥+ 𝑦+𝑧 )(𝑥 + 𝑦+𝑧)(𝑥 + 𝑦 +𝑧)
Examples of Product-Of-Maxterms
Conversions between Canonical Forms
The same Boolean function can be expressed in two ways:
Sum-of-Minterms
Product-of-Maxterms
Truth Table
x y f Minterms Maxterms
z
0 0 1
0 To convert from one canonical
0 0 0 form to another, interchange
1
the symbols and and list
0 1 1
0 those numbers missing from
0 1 1 the original form.
1
1 0 0
0
Function Complement
Truth Table Given a Boolean function
x y z f f'
0 0 0 1 0 Then, the complement of function
0 0 1 0 1
0 1 0 1 0
0 1 1 1 0
1 0 0 0 1
The complement of a function expressed by a
1 0 1 1 0
Sum of Minterms is the Product of Maxterms
1 1 0 0 1
with the same indices. Interchange the symbols
1 1 1 1 0
and , but keep the same list of indices.
Summary of Minterms and Maxterms
There are 2n Minterms and Maxterms for Boolean functions with
n variables, indexed from 0 to 2n – 1
Minterms correspond to the 1-entries of the function
Maxterms correspond to the 0-entries of the function
Any Boolean function can be expressed as a Sum-of-Minterms
and as a Product-of-Maxterms
For a Boolean function, given the list of Minterm indices one can
determine the list of Maxterms indices (and vice versa)
The complement of a Sum-of-Minterms is a Product-of-Maxterms
with the same indices (and vice versa)
Sum-of-Products and Products-of-Sums
Canonical forms contain a larger number of literals
Because the Minterms (and Maxterms) must contain, by definition, all
the variables either complemented or not
Another way to express Boolean functions is in standard form
Two standard forms: Sum-of-Products and Product-of -Sums
Sum of Products (SOP)
Boolean expression is the ORing (sum) of AND terms (products)
Examples:
′ ′ ′ ′
𝑓 3=( 𝑥 + 𝑧 )( 𝑥 + 𝑦 ) 𝑓 4=𝑥 ( 𝑥 + 𝑦 + 𝑧 )
𝑥 𝑥
𝑧 𝑓4
𝑓3 𝑥′
𝑥′ 𝑦′
𝑦′ OR-AND 𝑧 3-input OR gate
implementations
Two-Level vs. Three-Level Implementation
(6 literals) is a sum-of-products
may also be written as: (5 literals)
However, is a non-standard form
is not a sum-of-products nor a product-of-sums
𝑎
𝑏 𝑎
𝑏
𝑐
𝑑 h 𝑐 h
𝑑
𝑐 𝑒
𝑒 3-input OR gate