Professional Documents
Culture Documents
Chapter 3 Boolean Algebra and Logic Circuits
Chapter 3 Boolean Algebra and Logic Circuits
circuit
Simpler circuits are cheaper to build, consume less power,
and run faster
There are a number of Boolean identities that help us
simplify Boolean functions
Boolean Identities (1)
10
Most useful
Using Boolean Identities (1)
13
Maxterms
Sum terms that contain all of the function’s variables
exactly once, either complemented or not complemented
2-variable expression
17
X Y Minter Maxter
m m
0 0 X'.Y' X+Y
0 1 X'.Y X+Y'
1 0 X.Y' X'+Y
1 1 X.Y X'+Y'
X Y Z Minter Maxter
m m
0 0 0 X'.Y‘.Z’ X+Y+Z
0 0 1 X'.Y‘.Z X+Y+Z’
0 1 0 X'.Y.Z’ X+Y‘+Z
0 1 1 X'.Y.Z X+Y‘+Z
’
1 0 0 X.Y‘.Z’ X'+Y+Z
1 0 1 X.Y‘.Z X'+Y+Z’
1 1 0 X.Y.Z’ X'+Y‘+Z
Canonical Form (1)
19
Sum of minterms
X Y F Minter
m
0 0 0 X'.Y'
0 1 0 X'.Y
1 0 1 X.Y'
1 1 1 X.Y
Product of maxterms
X Y F Maxter
m
0 0 1 X+Y
0 1 0 X+Y'
1 0 1 X'+Y
1 1 1 X'+Y'
F(X,Y) = (X+Y')
Example
25
SOP
Exercise Give SOP and POS forms
26
X Y Z Functio
n
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
Exercise Give SOP and POS forms
27
X Y Z Functio X Y F Maxter
n m
0 0 0 1
0 0 1 X+Y
0 0 1 0
0 1 0 X+Y'
0 1 0 0
1 0 1 X'+Y
0 1 1 1
1 1 1 X'+Y'
1 0 0 0
1 0 1 1 F(X,Y) = (X+Y')
1 1 0 1
1 1 1 0
28
Logic Gates
Digital Logic
29
(X.Y) X. (X.Y)
’ Same as Y ’
Universal gates
Inexpensive to manufacture
Any Boolean function can be constructed using only
NAND or only NOR gates
Logic Gates
36
38
DeMorgan’s Law
39
Notation Used at Circuit Intersections
Exercise
41
Simplify x · (x + y)==x · x + x · y
=x+x·y
= x · (1 + y)
=x·1
=x Absorption law
Simplify x + (x · y)==x · (1 + y)
=x·1
=x
Exercise
42
A.B.C’
A.B(A’+BC)’
Exercise 11
44
2 approaches
Grouping :
Given A + AB + BC
write it as A(1+ B) + BC
then apply 1+ B =1
Minimized form A + BC
Using Boolean Identities
50
Truth table
K-map
SOP K-map
58
3 variable example:
x\ yz 00 01 11 10
represents
0 ? x’y’z’
1 ?? xyz’
Each square represents 1 minterm
Minterms are ordered according to Gray code
only one variable changes between adjacent squares
wx\ yz 00 01 11 10
w’xy’z
00
01 ? ?? w’xyz
11
10
59
Filling out a K-map
60
K-map
Simplification based on SOP K-
map
61
simplifies to B if X is assumed 1
Don’t Care Example
70
Don’t Care Example w/ One
Grouping
71
Don’t Care Example w/ Different
Grouping
72
Don’t Care Origins
73
Set
of inputs that can never happen = “don’t care”
condition
K-Map with 5 variables
74
75
76
K-Map with 6 variables
77
78
POS K-map
79
Product-of-sums form
Same principles as SOP K-map but applied to zeros
of the function
Rules of POS Grouping
80
Voltage
Quantifiable property of electricity
Measure of potential force
Unit of measure: volt
Current
Quantifiable property of electricity
Measure of electron flow along a path
Unit of measure: ampere (amp)
Electrical Analogy
86
Digital
logic diagrams do not usually show power
and ground connections
Transistor
89
abcd
3 0011 a`b`cd
7 0111 a`bcd
11 1011 ab`cd
12 1100 abc`d`
13 1101 abc`d
14 1110 abcd`
15 1111 abcd
Exercise
95
f(a,b,c,d) = ∑m(3,7,11,12,13,14,15)
=a`b`cd + a`bcd + ab`cd + abc`d`+ abc`d + abcd` + abcd
=cd(a`b` + a`b + ab`) + ab(c`d` + c`d + cd` + cd )
=cd(a`[b` + b] + ab`) + ab(c`[d` + d] + c[d` + d])
=cd(a`[1] + ab`) + ab(c`[1] + c[1])
=ab+ab`cd + a`cd
=ab+cd(ab` + a`)
=ab+ cd(a + a`)(a`+b`)
= ab + a`cd + b`cd
= ab +cd(a` + b`)
Exercise
96
f(a,b,c,d) = ∏M(0,1,2,4,5,6,8,9,10)
=∑m(3,7,11,12,13,14,15)
=[(a+b+c+d)(a+b+c+d`)(a+b`+c`+d`)
(a`+b+c`+d`)(a`+b`+c+ d)(a`+b`+c+ d`)
(a`+b`+c`+d)(a`+b`+c`+d`)]
Simplify algebraically
97
F(A,B,C,D) =∑m(0,1,2,3,8,9,10,11,13)
F(A,B,C,D) = ∏M(1,3,4,5,8,9)