Download Boolean Algebra-Digital Logic Design-Lecture Slides and more Slides Digital Logic Design and Programming in PDF only on Docsity!
Boolean Algebra:
a useful mathematical system for specifying and
transforming logic functions.
We study Boolean algebra as a foundation for
EE -
We study Boolean algebra as a foundation for
designing and analyzing digital systems!
4. Identity element :
Set S is said to have an identity element with respect to
binary operation ◊ on S if there exists an element e ∈ S such that e ◊ x = x ◊ e = x for every x ∈ S Example: S = Z, ◊ = +, e = 0
5. Inverse :
A set S having the identity element e with respect to a
EE -
A set S having the identity element e with respect to a
binary operator ◊ is said to have an inverse whenever, for every x ∈ S , there exists and element y ∈ S such that x ◊ y = e Example: S = Z, ◊ = +, e = 0, y = -x
6. Distributivity :
If ◊ and ¤ are two binary operators on a set S, ◊ is said to be distributive over ¤ whenever x ◊ (y ¤ z) = (x ◊ y) ¤ (x ◊ z) Example: S = N , ◊ = ×, ¤ = +
X****.^1 = X X****.^0 = 0 X****.^ X (^) = X
An algebraic structure defined on a set of at least two
elements, B, together with three binary operators (denoted
+, · and - ) that satisfies the following basic identities:
X + 0 (^) = X X (^) + (^1) = 1 X + X (^) = X
EE -152 6
Commutative Associative Distributive DeMorgan’s
X****.^ X (^) = X X****.^ X = 0
X + Y = Y + X
( X + Y ) + Z = X + ( Y + Z )
X ( Y + Z ) = XY + XZ
X + Y = X.^ Y
XY = YX
( XY ) Z = X ( YZ )
X + YZ = ( X + Y )( X + Z )
X.^ Y = X + Y
X + X (^) = X X + X = 1 X = X
Post. 1:
x + 0 = x
x · 1 = x
x x + 0 =?
x x. 1 =?
EE -
Post. 2:
x + x = 1
x · x = 0
x x x + x =?
x x x. x =?
Post. 3:
x + y = y + x
x · y = y · x
x y x + y =? y + x =?
x y x. y =? y. x =?
EE -
x y x. y =? y. x =?
Other theorems that can be derived
Theorem 1(a): x + x = x
Theorem 1(b): x · x = x
Theorem 2(a): x + 1 = 1
Theorem 2(b): x · 0 = 0
Theorem 3: ( x ) = x
EE -
Theorem 3: ( x ) = x
Theorem 4(a): x + ( y + z ) = ( x + y ) + z
Theorem 4(b): x ( y z ) = ( x y ) z
Theorem 6(a): x + x y = x
Theorem 6(b): x ( x + y ) = x
Theorem 5: DeMorgan’s theorem (duality)
Theorem 5(a): (x + y) = x. y
Theorem 5(b): (x y) = x + y
Show that x + x = x
x+x = (x+x)·
= (x+x)(x+x’)
= x+xx’
= x+
EE -
= x
AB = A + B
The complement of a product of variables is
equal to the sum of the complemented
variables
Applying DeMorgan’s first theorem to gates:
EE -
Inputs Output A B AB A + B 0 0 1 1
0 1 0 1
1 1 1 0
1 1 1 0
A + B
A
B
AB
A
B
NAND Negative-OR
The complement of a sum of variables is equal to
the product of the complemented variables
Applying DeMorgan’s second theorem to gates:
AB
A
B
A + B
A
B
EE -
A B A + B AB
Inputs Output
NOR Negative-AND
A + B = A.^ B
Logic function can be expressed as circuit diagram Direct translation from algebraic expression
Example: F = x + y’z
EE -
Problem: possibly multiple equivalent algebraic expressions Difficult to compare Boolean functions
Design the control logic for a fan in a greenhouse.
The logic must sense three environmental conditions:
- It is raining outside (variable x )
- It is humid inside (variable y )
- It is hot inside (variable z ) The fan should turn on when It is humid AND it is not raining AND it is hot
F
EE -
It is humid AND it is not raining AND it is hot yx’z OR It is not humid AND ((its not raining AND it is hot) OR it is raining) y’ (x’z+x)
Create a Boolean function that controls the fan.
F 1 = yx’z + y’(x’z+x) F2 = x’y’z+x’yz+xy’; F3 = x’z+xy’ Question: How to evaluate these solutions (equivalent functions)?
Design the control logic for a fan in a greenhouse.
The logic must sense three environmental conditions:
- It is raining outside (variable x )
- It is humid inside (variable y )
- It is hot inside (variable z )
The fan should turn on when either condition is met
It is humid AND it is not raining AND it is hot:
EE -
It is humid AND it is not raining AND it is hot:
yx’z O R
It is not humid AND ((its not raining AND it is hot) OR it is
raining)
y’ (x’z+x)
Create a Boolean function that controls the fan.
F = yx’z + y’(x’z+x)
Other equivalent solutions : F = x’yz + x’y’z + xy’ OR F
= x’z+xy’
Greenhouse example function can be expressed
as:
Analytically, as sum of minterms :
yx’z + y’(x’z+x) = yx’z+y’x’z+y’x
= x’yz+x’y’z+xy’(z+z’)
x y z F = x’yz+x’y’z+xy’z+xy’z’
As a logic network
As a truth table
EE -
How to derive different solutions? How to evaluate these solutions?