ECE 223 Boolean Algebra
ECE 223 Boolean Algebra
OR
OR B 0 1 0 1 A+B 0 1 1 1 A 0 1
NOT
NOT A 1 0
Boolean Algebra
Branch of Algebra used for describing and designing two valued state variables
Introduced by George Boole in 19th centaury Shannon used it to design switching circuits (1938)
Postulate 1:
Closure with respect to both (.) and ( +)
2.
Postulate 2:
An identity element with respect to +, designated by 0. An identity element with respect to . designated by 1
4
Postulate 3:
Commutative with respect to + and .
Postulate 4:
Distributive over . and +
Postulate 5:
For each element a of B, there exist an element a such that (a) a + a = 1 and (b) a.a = 0
6.
Postulate 6:
There exists at least two elements a, b in B, such that a b
AND A 0 0 1 1 B 0 1 0 1 A.B 0 0 0 1 A 0 0 1 1
OR B 0 1 0 1 A+B 0 1 1 1 A 0 1
NOT A 1 0
Boolean Functions
x y F1
Are represented as
Algebraic expressions; F1 = x + yz Truth Table
x 0 0 0 0 1 1 1 1
y 0 0 1 1 0 0 1 1
z 0 1 0 1 0 1 0 1
F1 0 1 0 0 1 1 1 1
8
Synthesis
Realization of schematic from the expression/truth table
Analysis
Vice-versa
Synthesis F1
x y z F1
x 0 0 0 0 1 1 1 1
y 0 0 1 1 0 0 1 1
z 0 1 0 1 0 1 0 1
F1 0 1 0 0 1 1 1 1
9
10
Minterms
x 0 0 0 0 1 1 1 1 y 0 0 1 1 0 0 1 1 z 0 1 0 1 0 1 0 1 Corresponding minterm xyz xyz xyz xyz xyz xyz xyz xyz Designation m0 m1 m2 m3 m4 m5 m6 m7
One method of Writing Boolean function is the canonical minterm (sum of products or SOP) form
F = xyz +xyz + xyz = m1 + m5 + m6 = (1,5,6)
11
Minterms examples
x 0 0 0 0 1 1 1 1 y 0 0 1 1 0 0 1 1 z 0 1 0 1 0 1 0 1 F2 (Given) 1 1 1 1 0 1 0 0 m5 Designation m0 m1 m2 m3
Minterms examples
x 0 0 0 0 1 1 1 1 y 0 0 1 1 0 0 1 1 z 0 1 0 1 0 1 0 1 F2 (Given) 1 1 1 1 0 1 0 0 m5 Designation m0 m1 m2 m3
(F2)
Maxterms
x 0 0 0 0 1 1 1 1 y 0 0 1 1 0 0 1 1 z 0 1 0 1 0 1 0 1 Corresponding maxterm x +y +z x +y +z x +y +z x +y +z x +y +z x +y +z x +y +z x +y +z Designation M0 M1 M2 M3 M4 M5 M6 M7
A maxterm is an OR term in which every literal (variable) or its complement in a function occurs once
Each maxterm has a value 0 for one combination of values of n variables
14
An alternative method of writing a Boolean function is the canonical maxterm (product of sums or POS) form The canonical product of sums can be written directly from the truth table
15
Maxterms
x 0 0 0 0 1 1 1 1 y 0 0 1 1 0 0 1 1 z 0 1 0 1 0 1 0 1 F3 (Given) 0 1 0 0 0 1 1 0 M7 M2 M3 M4 Designation M0
F3 (F3)
= (x+y+z)(x+y+z)(x+y+z)(x+y+z)(x+y+z)
= (0,2,3,4,7)
Standard Forms
In canonical forms, each minterm (or maxterm) must contain all variables (or its complements)
The algebraic expressions can further be simplified
Example
F4 (x,y,z) = xy +yz (sum of products, standard form) F5 (x,y,z) = (x+y)(y+z) (product of sums, standard form)
Conversion
Standard form can be converted into canonical form using identity elements
F4 = xy + yz = xy.1 +1.yz = xy(z+z) + (x+x)yz = xyz + xyz + xyz + xyz = m7 +m6 +m5 +m1 How about the conversion from canonical forms to standard forms? Exercise convert F5 into maxterms
17
Non-Standard Forms
A Boolean function may be written in non-standard form
F6 (x,y,z) = (xy + z)(xz + yz) = xy(xz + yz) + z(xz + yz) = xyz + xyyz + xz +yz = xyz + xz + yz = xz + yz (standard form)
18
19
x
x 0 0 1 1 y 0 1 0 1 z 1 0 0 0
20
10
x
x 0 0 1 1 y 0 1 0 1 z 0 1 1 0
21
x
x 0 0 1 1 y 0 1 0 1 z 1 0 0 1
22
11
23
Negative Logic
0 = True 1 = False
24
12
25
26
13