Beruflich Dokumente
Kultur Dokumente
(DLD)
Lecture # 6
DEMORGANS THEOREMS
DeMorgans 1st Theorem
The complement of a product of variables is
equal to the sum of the complemented variables.
AB = A + B
Applying DeMorgans first theorem to gates:
A
AB
B
NAND
A+B
B
Negative-OR
Inputs
A
0
0
1
1
B
0
1
0
1
Output
AB A + B
1
1
1
1
1
1
0
0
DEMORGANS THEOREMS
DeMorgans 2nd Theorem
The complement of a sum of variables is equal to
the product of the complemented variables.
A+B=A.B
Applying DeMorgans second theorem to gates:
A
A+B
B
NOR
A
B
Negative-AND
AB
Inputs
A
0
0
1
1
B
0
1
0
1
Output
A + B AB
1
1
0
0
0
0
0
0
(A + B )
C (A + B )
B
C
X = C (A + B )+ D
UNIVERSAL GATES
A
B
A
Inverter
AB
AND gate
A
A+B
A+B
B
B
OR gate
NOR gate
8
UNIVERSAL GATES
NOR gates are also universal gates and can form all of the
basic gates.
A
B
A
Inverter
A+ B
OR gate
A
AB
AB
B
B
AND gate
NAND gate
AB
B
NAND
Inputs
A+B
B
Negative-OR
A
0
0
1
1
B
0
1
0
1
Output
AB A + B
1
1
1
1
1
1
0
0
10
NOR Gate
NOT:
OR:
AND:
DeMorgans
11
NAND Gate
NOT:
AND:
OR:
DeMorgans
12
13
14
15
16
Gate Shapes
AND
OR
NAND
NOR
17
A
C
X= A C + AB
A
B
18
STANDARD FORMS OF
BOOLEAN EXPRESSIONS
AB ABC
ABC CDE B CD
A B A BC AC
Also:
A A B C BC D
20
example:AB ABC
is OK!
But
AB ABC
Is not an SOP:
21
IMPLEMENTATION OF AN SOP
X=AB+BCD+AC
AND/OR implementation
A
B
B
C
D
A
C
22
23
Also:
A ( A B C )( B C D )
24
is OK!
But
( A B )( A B C )
Is not an POS:
25
IMPLEMENTATION OF A POS
X=(A+B)(B+C+D)(A+C)
OR/AND implementation
A
B
B
C
D
A
C
26
27
28
29
30
31