Professional Documents
Culture Documents
These allow minimization and manipulation of logic gates for optimizing digital circuits
C. E. Stroud Boolean Algebra & Switching Functions (9/07) 1
AND operation
A3a: 00=0 A4a: 11=1 A5a: 01=10=0
X Y XY 0 0 1 0 1 0 0 0 0 1
Complement
aka invert, NOT A2a: if X=0, X=1 A2b: if X=1, X=0
X X 0 1 1 0
- The dot means AND 1 1 - Other symbol for AND: XY=XY (no symbol)
- The tick mark means complement, invert, or NOT - Other symbol for complement: X=X
OR operation
A3b: 1+1=1 A4b: 0+0=0 A5b: 1+0=0+1=1
X Y X+Y 0 0 1 0 1 0 1
2
0 1 1 1
C. E. Stroud
Identity Elements
P2a: X+0=X P2b: X1=X
Commutativity
P3a: X+Y=Y+X P3b: XY=YX
AND operation
X Y X1 XY 0 0 1 1 0 1 0 1 0 0 1 1 0 0 0 1 YX 0 0 0 1 X 1 1 0 0 X X 0 0 0 0
3
Complements
P6a: X+X=1 P6b: XX=0
C. E. Stroud
XY (XY)Z YZ X(YZ) 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1
4
0 0 1 1 1 1 1 1
0 1 1 1 1 1 1 1
0 1 1 1 0 1 1 1
0 1 1 1 1 1 1 1
X (Y+Z) 0 0 0 0 0 1 1 1
5
0 0 1 1 1 1 1 1
0 1 0 1 1 1 1 1
Null elements
T2a: X+1=1 T2b: X0=0
Involution
T3: (X)=X=X
C. E. Stroud Boolean Algebra & Switching Functions (9/07) 6
OR AND
X X X+ X+ X Y X+Y XY (XY) (X+Y) X XY (XY) X+Y (X+Y) 0 0 0 1 1 0 1 1
C. E. Stroud
0 1 1 1
0 0 0 1
0 0 1 1
0 0 1 1
1 1 0 0
0 1 0 0
0 1 1 1
1 1 0 1
0 0 0 1
7
C. E. Stroud
0 0 0 1 1 1 1 1
C. E. Stroud
OR AND
X Y X+Y XY X Y (X+Y) XY (XY) X+Y 0 0 0 1 1 0 1 1
C. E. Stroud
0 1 1 1
0 0 0 1
1 1 0 0
1 0 1 0
1 0 0 0
1 0 0 0
1 1 1 0
1 1 1 0
10
C. E. Stroud
More Theorems?
Shannons expansion theorem (also very important!) T10a: f(X1,X2,,Xn-1,Xn)= (X1f(0,X2,,Xn-1,Xn))+(X1f(1,X2,,Xn-1,Xn))
Can be taken further:
- f(X1,X2,,Xn-1,Xn)= (X1X2f(0,0,,Xn-1,Xn)) + (X1X2f(1,0,,Xn-1,Xn)) + (X1X2f(0,1,,Xn-1,Xn)) +(X1X2f(1,1,,Xn-1,Xn))
Principle of Duality
Any theorem or postulate in Boolean algebra remains true if:
0 and 1 are swapped, and and + are swapped - BUT, be careful about operator precedence!!! Left-to-right Complement (NOT) AND OR
C. E. Stroud
14
C. E. Stroud
Switching Functions
For n variables, there are 2n possible combinations of values
From all 0s to all 1s
There are 2 possible values for the output of a function of a given combination of values of n variables
0 and 1
n 2 2
21
=2
= 22 = 4
f0 = 0 f1 = A f2 = A f3 = 1
17
Output can be 0, 1, A, or A
A A f0 f1 f2 f3 0 0 1 0 1 1 0 0 1 1
C. E. Stroud
= 24 = 16
f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 0 1 0 10 10 1 0 1 0 1 0 1 0 1 0 0 1 10 01 1 0 0 1 1 0 0 1 1 0 0 0 01 11 1 0 0 0 0 1 1 1 1 0 0 0 00 00 0 1 1 1 1 1 1 1 1 logic 0 NOT-OR or NOR invert A
Least frequently used
18
= 24 = 16
A B f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 switch output 00 0 1 0 10 10 1 0 1 0 1 0 1 0 1 function B 01 0 0 1 10 01 1 0 0 1 1 0 0 1 1 n=2 10 0 0 0 01 11 1 0 0 0 0 1 1 1 1 11 0 0 0 00 00 0 1 1 1 1 1 1 1 1 f4 = AB invert B f5 = AB+AB = (A+A)B = B f6 = AB+AB exclusive-OR f7 = AB+AB+AB = A(B+B)+(A+A)B = A+B = (AB) NOT-AND or NAND
Most frequently used
C. E. Stroud
= 24 = 16
f8 = AB AND f9 = AB+AB exclusive-NOR f10 = AB+AB = (A+A)B = B buffer B f11 = AB+AB+AB = A(B+B)+(A+A)B = A+B
Most frequently used
C. E. Stroud
= 24 = 16
A B f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 switch output 00 0 1 0 10 10 1 0 1 0 1 0 1 0 1 function B 01 0 0 1 10 01 1 0 0 1 1 0 0 1 1 n=2 10 0 0 0 01 11 1 0 0 0 0 1 1 1 1 11 0 0 0 00 00 0 1 1 1 1 1 1 1 1 f12 = AB+AB = A(B+B) = A buffer A f13 = AB+AB+AB = A(B+B)+AB = A+AB = A+B f14 = AB+AB+AB = A(B+B)+(A+A)B = A+B OR f15 = AB+AB+AB+AB = A(B+B)+A(B+B) = A+A = 1 logic 1
Most frequently used
C. E. Stroud