You are on page 1of 11

8/12/10

NAND and NOR Implementation


ThisLecturewillcover HowthedigitalcircuitsuseNAND andNORgates ratherthanANDandOR gatestofabricatethe electroniccomponentssuchICdigitallogicfamilies p g g

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

Two Level Implementation

TheimplementationofBooleanfunctionswithNANDgatesrequiresthatthefunctionsbein sumofproducts(SOP)form. Example1:implementthefollowingfunction F = AB + CD Thisfunctioncanbeimplementedbythreedifferentwaysasshowninthecircuit diagrama,b,c

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.

implementthefollowingBooleanfunctionwithNANDgates F (x , y , z ) = (1,2,3,4,5,7) ThefirststepistosimplifythefunctionintoSOPform,wecanusekmaptofindthe simplifiedfunctionasfollows:

a)
8December2010
Dr.SaiedM.AbdElatty Soliman

b)
Page5
ssoliman1@ksu.edu.sa

Procedures of Implementation with two levels of NAND gates


1. Express simplified function in sum of products 2. Draw a NAND gate for each product term that has at least two literals to constitute a group of first-level gates 3. Draw a single gate using AND-invert or invert-OR in the second level 4. A term with a single literal requires an inverter in the first level
8December2010
Dr.SaiedM.AbdElatty Soliman

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

Example2:ConsiderthefollowingBooleanfunction,implementthecircuitdiagrambyusing multilevelNANDgate. F = (AB + A B )i(C + D )

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

TheimplementationofBooleanfunctionswithNORgatesrequiresthatthe functionsbeinproductofsums(POS)form. Example1:ConsiderthefollowingBooleanfunction,implementthecircuitdiagrambyusingtwo levelNORgate. level NOR gate

Example 1

F = ( A + B ) i (C + D ) i E

TransformationfromORANDdiagramtoNORdiagram ORgates=>ORinvert ANDgate=>invertAND

ORANDgate
8December2010
Dr.SaiedM.AbdElatty Soliman

NORgate
Page10
ssoliman1@ksu.edu.sa

8/12/10

Example2:ConsiderthefollowingBooleanfunction,implementthecircuitdiagrambyusing multilevelNORgate. F = (AB + A B )i(C + D )

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

ORNAND ORNAND NOROR

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

You might also like