Professional Documents
Culture Documents
8December2010
Dr.SaiedM.AbdElattySoliman ssoliman1@ksu.edu.sa
GraphicSymbols
8December2010
Dr.SaiedM.AbdElatty Soliman
Page2
ssoliman1@ksu.edu.sa
8/12/10
NAND Implementation
Inverter AND
OR
Bubbledenotes complementation
LogicOperationswithNANDgates
AND Invert
Invert OR
8December2010
Dr.SaiedM.AbdElatty Soliman
TwographicsymbolsfortheNANDgates
Page3
ssoliman1@ksu.edu.sa
TheRule
Thefunctionisimplementedin The function is implemented in (a) WithANDand ORgates (b) TheANDgatesarereplacedbyNANDgatesandtheORgateis replacedbyaNANDgatewithinvertORgraphic. (c) Itissimilartocaseb)buttheoutputNANDgateisredrawn withtheANDinvert.
8December2010
Dr.SaiedM.AbdElatty Soliman
F = AB .CD F = AB + CD
Page4
ssoliman1@ksu.edu.sa
8/12/10
Example2
F(x , y , z ) = x y +xy +z
ThetwolevelNANDimplementationisshowninFig2.a)andb). Z
Cont.
a)
8December2010
Dr.SaiedM.AbdElatty Soliman
b)
Page5
ssoliman1@ksu.edu.sa
Page6
ssoliman1@ksu.edu.sa
8/12/10
MultilevelNANDCircuits
1.ConvertallANDgatestoNANDgateswithANDinvertgraphicsymbols 2.ConvertallORgatestoNANDgateswithinvertORgraphicsymbols 3.Checkallthebubblesinthediagrams.Forasinglebubble,insertan inverter(oneinputNANDgate)orcomplementtheinputliteral
Example1:ConsidertheBooleanfunction,implementthecircuitdiagrambyusingmultilevel NANDgate.
F = A (CD + B ) + BC
8December2010
Dr.SaiedM.AbdElatty Soliman
Page7
ssoliman1@ksu.edu.sa
Example 2
ANDORgates
NANDgates
8December2010
Dr.SaiedM.AbdElatty Soliman
Page8
ssoliman1@ksu.edu.sa
8/12/10
NOR Implementation
TheNORoperationisthedualoftheNANDoperation TheNORgateisanotheruniversalgatetoimplementanyBooleanfunction EasyforORAND(productofsums)
OR Invert
LogicOperationswithNORgates InvertAND
8December2010
Dr.SaiedM.AbdElatty Soliman
TwographicsymbolsfortheNORgates
Page9
ssoliman1@ksu.edu.sa
TheRule
Example 1
F = ( A + B ) i (C + D ) i E
ORANDgate
8December2010
Dr.SaiedM.AbdElatty Soliman
NORgate
Page10
ssoliman1@ksu.edu.sa
8/12/10
Example 2
ANDORgates
NORgates
8December2010
Dr.SaiedM.AbdElatty Soliman
Page11
ssoliman1@ksu.edu.sa
NondegenerateForms
16possiblecombinationsoftwolevelformswith4typesof gates:AND,OR,NAND,andNOR t AND OR NAND d NOR 8degenerateforms:degeneratetoasingleoperation 8nondegenerateforms: SOP
ANDOR NANDNAND NOROR ORNAND
8December2010
Dr.SaiedM.AbdElatty Soliman
POS
ORAND NORNOR NANDAND ANDNOR
Page12
ssoliman1@ksu.edu.sa
8/12/10
RulesforOther2Level Implementation
EquivalentNonDegenerate Form ANDNOR NANDAND Implementsthe function f ANDORInvert SimplifyFin Sumofproductsby combining0sinthe map Productofsumsby combining1sinthe mapandthen complementing p g Togetan outputof f F
ORNAND
NOROR
ORANDInvert
NAND-AND and NOR-OR requires a single-input inverter for a single literal term.
8December2010
Dr.SaiedM.AbdElatty Soliman
Page13
ssoliman1@ksu.edu.sa
ANDORINVERTImplementation
ANDNOR=NANDAND=ANDORINVERT F=(AB+CD+E) SimilartoANDOR,ANDORINVERTrequiresanexpressioninsumofproducts Si il AND OR AND OR INVERT i i i f d GivenF,wecanimplementFwithANDORINVERT
ANDNOR
ANDNOR
NANDAND
8December2010
Dr.SaiedM.AbdElatty Soliman
Page14
ssoliman1@ksu.edu.sa
8/12/10
ORANDINVERTImplementation
ORNAND=NOROR=ORANDINVERT F=[(A+B)(C+D)E] SimilartoORAND,ORANDINVERTrequiresanexpressioninproductsofsum GivenF,wecanimplementFwithORANDINVERT Gi F i l F i h OR AND INVERT
8December2010
Dr.SaiedM.AbdElatty Soliman
Page15
ssoliman1@ksu.edu.sa
ImportantExample ImplementthefunctioninFig.1withthefourtwolevelforms.
Bygrouping0sweobtaintheSOPofF F=xy +xy+z F=(xy +xy+z) ItisintheANDORInvert.
Bygrouping1sweobtaintheSOPofF F=xyz+xyz F=(x+y+z)(x+y+z) F=[(x+y+z)(x+y+z)] ItisintheORANDInvert.
Fig.1
ANDNOR=NANDAND=ANDORINVERT
8December2010
Dr.SaiedM.AbdElatty Soliman
ORNAND=NOROR=ORANDINVERT
Page16
ssoliman1@ksu.edu.sa
8/12/10
ExclusiveOR(XOR)Function
XOR:x y=xy+xy
(x
ExclusiveNOR=equivalence
y)=(xy+xy) =(x +y)(x+y )=x y +xy (x y)(x y) xy xy
8December2010
Dr.SaiedM.AbdElatty Soliman
Communtative:A B=B A Associative:(A B) C=A (B C)=A B C OnlyalimitednumberofBooleanfunctionscanbe expressedintermsofXORoperations,butitisparticularly usefulinarithmeticoperationsanderrordetectionand correctioncircuits Page17
ssoliman1@ksu.edu.sa
OddFunction
The3variableXORfunctionisequalto1ifonlyonevariableisequalto1orifall threevariablesareequalto1 MultiplevariableexclusiveORoperation=oddfunction:oddnumberofvariablesbe equalto1
8December2010
Dr.SaiedM.AbdElatty Soliman
Page18
ssoliman1@ksu.edu.sa
8/12/10
OddFunction
The3variableXORfunctionisequalto1ifonlyonevariableisequalto1orifall threevariablesareequalto1 MultiplevariableexclusiveORoperation=oddfunction:oddnumberofvariablesbe equalto1
8December2010
Dr.SaiedM.AbdElatty Soliman
Page19
ssoliman1@ksu.edu.sa
Mapfora4variableXORFunction
8December2010
Dr.SaiedM.AbdElatty Soliman
Page20
ssoliman1@ksu.edu.sa
10
8/12/10
Exercises
1)SimplifythefollowingexpressionsandimplementthemwithtwolevelNANDgate a)
A B + ABD + AB D + AC D + ABC
F (A , B ,C , D ) = (0,1, 2,3, 4,8,9,12)
b) BD + BC D + A BC D 2)DrawaNANDlogicdiagramthatimplementthecomplementofthefollowingfunction
3)DrawalogicdiagramusingonlytwoinputNANDgatestoimplementtheoffollowing expression:
( A B + A B )(C D + C D )
4)DrawthemultilevelNORandmultilevelNANDcircuitforthefollowingexpression:
(A B + C D )E + BC (A + B )
5)ImplementthefollowingBooleanfunction(F),usingthetwolevelformsoflogic a)NANDANDb)ANDNORc)ORNANDd)NOROR
F (W , X ,Y , Z ) = (0, 4,8,9,10,11,12,14)
8December2010
Dr.SaiedM.AbdElatty Soliman
Page21
ssoliman1@ksu.edu.sa
11