07 BooleanAlgebra
07 BooleanAlgebra
Introduction
1854: Logical algebra was published by George Boole known today as Boolean Algebra
Its a convenient way and systematic way of expressing and analyzing the operation of logic circuits.
1938: Claude Shannon was the first to apply Booles work to the analysis and design of logic circuits.
Variable a symbol used to represent a logical quantity. Complement the inverse of a variable and is indicated by a bar over the variable. Literal a variable or the complement of a variable.
Boolean Addition
0+1 = 1
1+0 = 1
1+1 = 1
i.e. A B, A B , A B C , A B C D A sum term is equal to 1 when one or more of the literals in the term are 1. A sum term is equal to 0 only if each of the literals is 0.
Boolean Multiplication
i.e. AB, AB , ABC , A BCD A product term is equal to 1 only if each of the literals in the term is 1. A product term is equal to 0 when one or more of the literals are 0.
Commutative Laws
The commutative law of addition for two variables is written as: A+B = B+A
A B
A+B
B A
B+A
B A
B+A
Associative Laws
The associative law of addition for 3 variables is written as: A+(B+C) = (A+B)+C
A B C B+C A+(B+C)
A B C
A+B (A+B)+C
The associative law of multiplication for 3 variables is written as: A(BC) = (AB)C
A
B C BC A(BC)
A B C
AB (AB)C
Distributive Laws
B C A
B+C
X
AC
A
C
X=A(B+C)
X=AB+AC
DeMorgans Theorems
DeMorgans Theorems
The complement of two or more ANDed variables is equivalent to the OR of the complements of the individual variables.
NAND
X Y X Y
NOR
Negative-OR
The complement of two or more ORed variables is equivalent to the AND of the complements of the individual variables.
Negative-AND
X Y X Y
X Y Z X Y Z X Y Z W X Y Z
Boolean algebra provides a concise way to express the operation of a logic circuit formed by a combination of logic gates
so that the output can be determined for various combinations of input values.
To derive the Boolean expression for a given logic circuit, begin at the left-most inputs and work toward the final output, writing the expression for each gate.
C D B
CD B+CD
A(B+CD)
Once the Boolean expression for a given logic circuit has been determined, a truth table that shows the output for all possible values of the input variables can be developed.
Lets take the previous circuit as the example: A(B+CD) There are four variables, hence 16 (24) combinations of values are possible.
When A=1 and B=1 regardless of the values of C and D When A=1 and C=1 and D=1 regardless of the value of B
The expression A(B+CD)=0 for all other value combinations of the variables.
INPUTS A 0 0 0 0 0 B 0 0 0 0 1 C 0 0 1 1 0 D 0 1 0 1 0
OUTPUT A(B+CD) 0 0 0 0 0
A(B+CD)=1
0
0 0 1 1 1 1 1 1 1 1
1
1 1 0 0 0 0 1 1 1 1
0
1 1 0 0 1 1 0 0 1 1
1
0 1 0 1 0 1 0 1 0 1
0
0 0 0 0 0 1 1 1 1 1