CourseReviewLogicandComputerDesignFundamentalsWangDong-huidhwang@zju.edu.cnJan.2011OutlineAboutFinalExamHighlights&ExercisesABOUTFINALEXAMCourseReviewFinalExam1.Fillintheblank(20points,2pt/per)2.MultipleChoice(20points,2pt/per)3.Optimization(12points,6pt/per)4.CircuitAnalysis(18points)•Combinationalcircuit•Sequentialcircuit5.LogicDesign(30points)•Combinationalcircuit•SequentialcircuitHIGHLIGHTS&EXERCISESCourseReviewChapter1Conversionbetweennumbersystems•Binarynumber,hexadecimalnumberEg.(11011111)2=(DF)16Conversionbetweenbinarynumberanddecimalcode•BCD(binary-codeddecimal)Eg.(10010101)BCD-(01011111)2-(5F)16•ParityBit1000001-01000001(withevenparity)-11000001(withoddparity)HowtogenerateoddparitybitPforany5-bitbinarynumberD4D3D2D1D0?GrayCode&ASCIICharacterCodeDecimalBinaryOctalHexadecimal369.3125101110001.0101561.24171.5189.62510111101.101275.5BD.A214.62511010110.101326.5D6.A62407.6251111001111000111.101171707.5F3C7.AChapter2Booleanalgebra•Dualofanalgebraicexpression:OR-AND,0’s-1’s•DeMorgan’stheorem:(X+Y)’=X’Y’and(XY)’=X’+Y’•IdentitiesofBooleanalgebra:X+YZ=(X+Y)(X+Z)•Consensustheorem:XY+X’Z+YZ=XY+X’Z,(X+Y)(X’+Z)(Y+Z)=(X+Y)(X’+Z)ComplementofafunctionStandardforms•Productterms,sumterms,SOP,POS•Minterms,Maxterms,SOM,POM•RelationshipbetweenSOPandSOM?SOMandPOM?Two-levelcircuitoptimization•Karnaughmap(K-map),Primeimplicants,essentialprimeimplicants•SimplifyinginSOPform(withdon’tcareconditions)•Costcriteria:gateinputcostChapter2Othergates•Buffer,NAND,NOR,3-statebuffer(Hi-Z),XOR,XNORExclusive-ORoperatorandgates•IdentitiesofXORoperation:X⊕Y’=X’⊕Y=(X⊕Y)’X⊕(Y⊕Z)’=(X⊕Y)’⊕Z=(X⊕Y⊕Z)’•OddfunctionandevenfunctionUseoddfunctiontogenerateevenparitybitUseevenfunctiontogenerateoddparitybitTheevenfunctionisobtainedbyreplacingtheoutputgatewithanXNORgate.Podd=X⊕Y⊕Z,Peven=Podd’=(X⊕Y⊕Z)’High-impedanceoutputs•3-statebuffer(Hi-Z)•TransmissiongatesENINOUT0XHi-Z100111Chapter2Exercises:•Thedualofanalgebraicexpressionisobtainedby1)interchangingORandANDoperationsand2)replacing1’sby0’sand0’sby1’s.•UseDeMorgan'sTheoremtocomplementafunction:1)InterchangeANDandORoperators2).Complementeachconstantvalueandliteral•Fourvariablesoddfunctionhas__________“1”squaresinitscorrespondingK-Map.A.4B.7C.8D.14•ThegateinputcostGoffunctionis____.A.15B.14C.13D.12•Whichofthefollowinglogicalgatescanbeusedasacontrollableinverter?__________.A.ANDgateB.XORgateC.BuffergateD.ORgate•TheEssentialPrimeImplicantsintheK-Mapgivenbeloware______.A.Y’Z’,XZ’B.X’Y’,XYC.XY,XZ’D.Y’Z’,X’Y’•GivenbelowarethewaveformsofinputA,BandoutputFofalogicdevice.Thenthedeviceisa______gate.A.NANDB.NORC.XORD.OR()()FABCDCBDADY11111XW11111ZABFChapter2Exercises:1.Accordingtothefollowinglogiccircuitdiagram,writedownthecorrespondingBooleanfunctionandoptimizeittotheformofSOP2.GivenaBooleanfunctionF(W,X,Y,Z)=m(4,6,7,8,12,15)+d(2,3,5,10,11)OptimizeFtogetherwiththedon't-careconditionsdusingaK-mapChapter3Designprocedure:specification,formulation,optimization,technologymapping,verificationTechnologyparameters:fan-in,fan-out,noisemargin,cost,propagationdelay,powerdissipation•Howtocalculategatedelaybasedonfan-out?p.101,example3-1Seven-segmentdisplay•HowtodesignaBCD-to-Seven-Segmentdecoder?p.107,example3-3Technologymapping•HowtoimplementaBooleanfunctionwithNANDgates?•HowtoimplementaBooleanfunctionwithasmallcelllibrary?XYCSXYCSChapter3DelayModel:Transportdelay,Inertialdelay,rejectiontimeProgrammableimplementationtechnologies•ROM,PROM,PALXXXXXXXXXXD7D6D5D4D3D2D1D0A2A1A0F0F1F2F30912345678ANDgatesinputs09Productterm123456789101112F1F2F3F4I1=A12345678I4I2=BI3=CChapter3Programmableimplementationtechnologies•PLAABACBCABFuseintactFuseblownXABCCCBBAA01234XXXXXXXXXXXXXXX1F1F2Outputs1234F211–1ABACBCInputs–11C11–A1–1BPLAprogrammingtable(T)F1(C)ProducttermF1=ABC+ABC+ABCF1=AB+AC+BC+ABCF2=AB+AC+BCF2=AC+AB+BCChapter4n-to-m-LineDecoder:nm2n•3-to-8-LinedecoderDemultiplexer:DecoderwithEnablem-to-n-LineEncoder:nm2nMultiplexers•controlinputs(Sn-1,…S0)calledselectioninputs•2-to-1-LineMultiplexerCombinationalFunctionImplementation•DecodersandORgates,•Multiplexers(andinverter)•ROMs•PLAs:doesn’tprovidefulldecodingofthevariables,soitdoesn’tgeneratealltheminterms•PALs:similartothePLAs•LookupTablesChapter4CombinationalFunctionImplementation•Anycombinationalcircuitwithninputsandmoutputscanbeimplementedwithann-to-2n-linedecoder,andmORgates(oneforeachoutput)aROMwithn-bitaddressesandm-bitdataoutput•Implementmfunctionsofnvariableswithanm-wide2n-to-1-linemultiplexer•Implementmfunctionsofn+1variableswithanm-wide2n-to-1-linemultiplexerandasingleinverter•CananycombinationalcircuitwithninputsandmoutputsbeimplementedwithaPLAwithninputsandmoutputs?aPALwithninputsandmoutputs?D04D05D06D07S1S0ABS2D03D02D01D00OutC11110000Y8-to-1MUXD13D12D11D10OutZ4-to-1MUXS1S0ABCCCCChapter4Exercise•Problem4-23.Implementabinaryfulladderwithadual4-to-1-linemultiplexerandasingleinverter.Chapter5HalfAdderFullAdder•carrygenerate:X·Y•carrypropagate:XYBinaryRippleCarryAdderCarryLookaheadAdderBinarysubtraction•Sign