Original
Original
14 April 2009
Dr. Saied M. Abd El‐atty Soliman [email protected]
Graphic Symbols
1
14/4/09
NAND Implementation
Inverter
AND
OR
Bubble denotes
complementation
Logic Operations with NAND gates
14 April 2009
Two graphic symbols for the NAND gates Page 3
Dr. Saied M. Abd El‐atty Soliman [email protected]
( )
The function is implemented in
(a) With AND and OR gates F = AB .CD
(b) The AND gates are replaced by NAND gates and the OR gate is F = AB + CD
replaced by a NAND gate with invert‐OR graphic.
(c) It is similar to case b) but the output NAND gate is redrawn
with the AND‐invert.
2
14/4/09
Example2 Cont.
F(x , y , z ) = x y +xy +z
The two level NAND implementation is shown in Fig 2.a) and b).
Z
b)
a)
2. Draw a NAND gate for each product term that has at least
two literals to constitute a group of first-level gates
3
14/4/09
Example 2
Example 2: Consider the following Boolean function, implement the circuit diagram by using
multilevel NAND gate. F = (AB ′ + A ′B )i(C + D ′)
AND‐OR gates
NAND gates
4
14/4/09
NOR Implementation
•The NOR operation is the dual of the NAND operation
•The NOR gate is another universal gate to implement any Boolean function
•Easy for OR‐AND (product of sums)
14 April 2009
Two graphic symbols for the NOR gates Page 9
Dr. Saied M. Abd El‐atty Soliman [email protected]
Example1: Consider the following Boolean function, implement the circuit diagram by using two
l;evel NOR gate.
gate
F = ( A + B ) i (C + D ) i E
Transformation from OR‐AND diagram to NOR diagram
•OR gates => OR‐invert
•AND gate => invert‐AND
5
14/4/09
Example 2
Example 2: Consider the following Boolean function, implement the circuit diagram by using
multilevel NOR gate. F = (AB ′ + A ′B )i(C + D ′)
AND‐OR gates
NOR gates
Nondegenerate Forms
16 possible combinations of two‐level forms with 4 types of
gates:
t AND,
AND OR
OR, NAND
NAND, andd NOR
– 8 generate forms
Forms Implementation method
• NAND‐AND = AND‐NOR = AND‐OR‐INVERT
6
14/4/09
AND‐OR‐INVERT Implementation
AND‐NOR = NAND‐AND = AND‐OR‐INVERT
F = (AB + CD + E)’
Similar
Si il to AND
AND‐OR,
OR AND‐OR‐INVERT
AND OR INVERT requires
i an expression
i ini sum off products
d
Given F, we can implement F’ with AND‐OR‐INVERT
OR‐AND‐INVERT Implementation
OR‐NAND = NOR‐OR = OR‐AND‐INVERT
F = [ (A+B) (C+D) E ] ’
7
14/4/09
Example: Implement the function in Fig.1 with the four two level
form.
F = x’y’z’ + xyz’
F’ = x’y + xy’ + z
F = (F’)’ = (x’y + xy’ + z)’
= (x + y’)(x’ + y)z
F’ = (F)’ = (x’y’z’ + xyz’)’
Fig.1
= (x + y + z)(x’ + y’ + z)
Communtative: A ْ B = B ْ A
Associative: (A ْ B) ْ C = A ْ
(B ْ C) = A ْ B ْ C
Only a limited number of Boolean functions can be
expressed in terms of XOR operations, but it is particularly
useful in arithmetic operations and error‐detection and
14 April 2009 correction circuits Page 16
Dr. Saied M. Abd El‐atty Soliman [email protected]
8
14/4/09
Odd Function
• The 3‐variable XOR function is equal to 1 if only one variable is equal to 1 or if all
three variables are equal to 1
• Multiple‐variable exclusive OR operation = odd function : odd number of variables be
equal to 1
Odd Function
• The 3‐variable XOR function is equal to 1 if only one variable is equal to 1 or if all
three variables are equal to 1
• Multiple‐variable exclusive OR operation = odd function : odd number of variables be
equal to 1
9
14/4/09
Exercises
1) Simplify the following expressions and implement them with two level NAND gate
a) A B + ABD + AB D + AC D + ABC
b) BD + BC D + A BC D
2) Draw a NAND logic diagram that implement the complement of the following function
F (A , B ,C , D ) = ∑ (0,1, 2,3, 4,8,9,12)
3) Draw a logic diagram using only two‐input NAND gates to implement the of following
expression :
( A B + A B )(C D + C D )
4) Draw the multilevel NOR and multilevel NAND circuit for the following expression:
(A B + C D )E + BC (A + B )
5) Implement the following Boolean function (F), using the two level forms of logic
a)NAND‐AND b)AND‐NOR c)OR‐NAND d)NOR‐OR
F (W , X ,Y , Z ) = ∑ (0, 4,8,9,10,11,12,14)
10