Chapter4 Boolean Algebra-290510 013229
Chapter4 Boolean Algebra-290510 013229
NOT operation
AND operation
The NOT operation (or inverse, or complement operation) replaces a The AND operation is a function of two variables (A, B)
boolean value with its complement:
F(A,B) = A • B boolean function representation
0’ = 1 , 1’ = 0
When both A and B are ‘1’, then F is ‘1’.
Can also view AND operation as two switches in series: When either A or B are ‘1’, then F is ‘1’.
0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, 1+1=1
Truth Table
Switch Open (0)
Switch Closed (1) A B Y
0 0 0 OR
A B 0 1 1
When Switch A closed (1)
1 0 1
and Switch B closed (1),
1 1 1
circuit is closed (1)
BR 8/99 5 BR 8/99 6
1
OR operation (cont).
Can view OR operation as two switches in parallel: Boolean Functions
A
Neither switch A or switch B is More complex boolean functions can be created by combining
B closed, so circuit is open (0) basic operations
A A’
A F(A,B) = A’ + B
Switch B closed (1), so circuit is B OR
B closed (1)
A A B A’ F = A’ + B
Switch A closed (1), so circuit is
closed (1) 0 0 1 1
B
0 1 1 1
A 1 0 0 0
Switch A or Switch B is closed, 1 1 0 1
B circuit is closed (1)
BR 8/99 7 BR 8/99 8
BR 8/99 9 BR 8/99 10
2
Three Input AND Function Distributive Law
A
F = ABC = (AB) C = A (BC)
B
C
A(B + C) = AB + AC (valid in normal algebra)
A B C AB F = ABC
0 0 0 0 0 Dual:
0 0 1 0 0
0 1 0 0 0 A + BC = (A + B) (A + C) (only valid in Boolean algebra!)
0 1 1 0 0
1 0 0 0 0 Note that the 2nd form is NOT valid in normal algebra! This
1 0 1 0 0 tends to make one forget about it. Remember the first form,
1 1 0 1 0 then take the DUAL of it to get the second form.
1 1 1 1 1
BR 8/99 13 BR 8/99 14
BR 8/99 17 BR 8/99 18
3
Use Distributive Law for Multiplying Use 2nd Distributive Law
Problem: Put into SOP form the following equation and Recall 2nd Distributive Law:
simplify: (X + Y)(X + Z) = X + YZ
Lets try and use this law, may make things easier:
(A + BC) (A + D + E)
Try just straightforward multiplication of terms: (A + BC) (A + D + E)
AA + AD + AE + ABC + BCD + BCE (A + (BC)) ( A + (D + E) )
Apply 2nd Distributive Law:
Simplify (AA = A):
A + BC (D + E)
A + AD + AE + ABC + BCD + BCE
Multiply Out:
Look for simplification via factoring:
A(1 + D + E + BC) + BCD + BCE A + BCD + BCE (Final SOP form)
A (1) + BCD + BCE Finished!!
A+ BCD + BCE !!!!!!!!! (Final SOP form)
BR 8/99 19 BR 8/99 20
= (A + B’) (A + C) (A + D)
POS can be implemented in two levels of logic assuming
(A + B’) (A + C) (A + D) is final POS form!!!! that both a variable (A) and its complement (A’) are
available (Dual Rail Inputs). POS is a TWO-LEVEL form
(OR-AND form)
BR 8/99 23 BR 8/99 24
4
Consensus Theorem
Prove the Consensus Theorem
Consensus theorem states:
XY + X’Z + YZ = XY + X’Z Consensus Theorem Proof:
XY + X’Z + YZ = XY + X’Z + (X + X’)YZ
The YZ term is called the consensus term and is
= XY + X’Z + XYZ + X’YZ
redundant. The consensus term is formed from a PAIR
= (XY + XYZ) + (X’Z + X’YZ)
OF TERMS in which a variable (X) and its complement
= XY (1 + Z) + X’Z (1 + Y)
(X’) are present; the consensus term is formed by
= XY + X’Z
multiplying the two terms and leaving out the selected
variable and its complement.
You could also use a truth table to prove this.
BR 8/99 25 BR 8/99 26
BR 8/99 29 BR 8/99 30
5
NAND, NOR Gates NAND, NOR (cont.)
Why do we care about DeMorgan’s Law? NAND (NOT AND) - can be thought of as an AND gate
followed by an inverter.
There are two other gate types that produce the complement
of a boolean function! A (AB)’ A
AB (AB)’
AB Y AB Y B
B
0 0 1 0 0 1 NAND
0 1 1 0 1 0
1 0 1 1 0 0 NOR (NOT OR) - can be thought as an OR gate followed
1 1 0 1 1 0 by an inverter.
A (AB)’ A C
AB AB
B B D (CD)’
NAND AND
Hmmmmmmmm…. Lets use DeMorgan’s Law
BR 8/99 33 BR 8/99 34
NAND-NAND form = AND-OR form What is this logic function in POS form?
A (AB)’ A (A+B)’
B F = ((AB’) (CD)’)’ B F= ((A+B)’ + (C+D)’)’
C C (C+D)’
D D
(CD)’ Same logic function Hmmmmmmmm…. Lets use DeMorgan’s Law
A (AB)
F = ((A+B)’ + (C+D)’)’
B F = AB + CD = ((A+B)’)’ ((C+D)’)’ = (A+B) (C+D) !!!!!
C An interesting result…...
POS Form!!!
D (CD)
BR 8/99 35 BR 8/99 36
6
NOR-NOR form = OR-AND form
Two Level Form Summary
A (A+B)’
B F= ((A+B)’ + (C+D)’)’ Any logic function in SOP form (Sum of Products) can be
implemented in the two level gate forms of AND-OR,
C (C+D)’ NAND-NAND.
D
Same logic function Any logic function in POS form (Product of Sums) can be
A implemented in the two level gate forms of OR-AND, NOR-
(A+B)
NOR.
B F= (A+B)(C+D)
C (C+D) There are actually FOUR more two level gate forms but we will
D not talk about these.
BR 8/99 37 BR 8/99 38