Professional Documents
Culture Documents
Boolean Algebra
Boolean Algebra
A branch of Algebra used for describing and designing two valued state variables
Introduced by George Boole in 19th Century Shannon used it to design switching circuits (1938)
A convenient and systematic way of expressing and analyzing logic circuit operations
Mathematics of digital systems
Used to define a digital circuit and evaluate its operation Used to simplify the logic circuits
4
Complement
Inverse of a variable. Indicated by a bar over the variable Example: X
Literal
Instance of a variable or its complement
Boolean Addition
Boolean Addition performed by OR gate Sum Term is a sum of literals:
A B
A B
A BC
Sum term = 1 if any literal = 1 Sum term = 0 if all literals = 0 In logic circuits, a sum term is produced by an OR operation with no AND operations involved
6
Boolean Multiplication
Boolean Multiplication performed by AND gate Product Term is a product of literals:
A.B
A.B
A.B.C
Product term = 1 if all literals = 1 Product term = 0 if any one literal = 0 In logic circuits, a product term is produced by an AND operation with no OR operations involved
Precedence of Operators
Function Evaluation
There are certain Laws, Rules & Theorems that govern the Boolean Algebra
Associative Law
for Addition and Multiplication
Commutative Law
Commutative Law for Addition A+ B = B +A
12
Associative Law
Associative Law for Addition A + (B + C) = (A + B) + C
13
Associative Law
Associative Law for Multiplication A.(B.C) = (A.B).C
14
Distributive Law
A.(B + C) = A.B + A.C
15
( Identity) ( Idempotent ) (Complement ) ( Involution ) (Commutative) ( Associative) ( Distributive) ( DeMorgan ' sTheorem) ( Absorption ) (Simplification ) (ConsensusTheorem)
16
Duality Principle
A Boolean equation remains valid if we take the dual of the expressions on both sides of the equal sign Dual of Expressions
Interchange 1s and 0s Interchange AND (.) and OR (+)
17
X(Y Z) XY XZ
Derivation of Absorption
A AB A(1 B){DistributiveLaw} A.1{IdentityFor } A{IdentityFor.}
20
Derivation of Simplification
X XY X .(1 Y ) XY {Identity} X XY XY {Distribution} X ( X X )Y {Distribution} X Y {Complement; Identity}
21
A.B A B
A.B
A B
Second Theorem
A B A.B
A B
A.B
23
Example:
26
AB C
( AB C)D
27
( AB C)D
From the expression, the output is a 1 if variable D = 1 and ( AB C ) 1 ( AB C ) 1 if AB=1 or C=0 AB=1 if A=1 and B=1
29
31
34
35
A.B A.B.C.D
A
A.B.C.D
C.D
36
(A.B).(A.B.C.D )
A.B.C.D
38
Example 3:
A
A.B.C
(A.B.C).(C D)
CD
39
(A B C) (C.D) A B C(1 D)
ABC
40
A B C
41
Each form may contain single variable terms May contain complemented and un-complemented terms A SOP and POS expression cant have a term of more than one variable having an over bar extending over the entire term
42
* ( A B)(B C D) AB AC AD B BC BD
AC AD B
* (A B) C (A B)C (A B)C AC BC
45
46
(A C ) (A B D)(B C D)
( L M)(L N O)( N O)
( X )(Y Z)(X Y Z)
53
* AB ACD A (B CD ) A( B C)( B D)
* (A B) C (A B)C (A B)C
54
55
64
Converting Standard SOP to Standard POS Determine binary representation Standard Product terms for all
Form new set of binary numbers from full domain which is not part of the above Form Standard Sum terms for the new binary set
65
Converting Standard POS to Standard SOP Reverse previous procedure: Determine binary representation for all Standard Sum terms in POS Form new set of binary numbers from full domain which is not part of the above Form Standard Product terms for the new binary set in SOP form
71
000 0
73
Maxterms
A B C
A B C A B C A B C A B C
A.B.C A B C A.B.C A B C
A.B.C A B C
74
Maxterms
A B C
A B C A B C A B C A B C
A.B.C A B C A.B.C A B C
A.B.C A B C
1010 A B C D
1001 A B C D
80