您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > Lab-Report11
DigitalCircuit&LogicDesignLabReport1Name:StudentNo.:Major:computerscienceandtechnologyScore:Requirements:(Copytherequirementsfromtheslides)1、Designanalarmforadam.Use4bitstorepresentthewaterlevel.Whenthelevelreaches8m,thegreenlightison;whenitreaches10m,theyellowlightison;andwhenitreaches12m,theredlightison.Thewaterlevelwouldneverreach14m,andonlyonelightisonatonetime.Designthecontrolcircuitofthealarmandimplementit.Principles:(Howdoyouplantosolvetheproblems?Writedownthelogicfunctionsoftheoutputs.)2、Firstofall,wesawtherequirements,foundingthatweshoulduse4bitstorepresentthewaterlevelandwhenthelevelreaches8m,thegreenlightison;whenitreaches10m,theyellowlightison;andwhenitreaches12m,theredlightison.SowewrotethetruthtableandSimplifiedit.Wegetanexpressionfinally.Accordingtothisexpression,wesolvedtheproblem.m0=AB`C`,thegreenlightison;m1=AB`C,theyellowlightison;m2=AB,theredlightison.Implementation:(Yourimplementationdetails.)1、UseNANDgateandNOTgatetofinishthefunctionofAND,thenuseNotgatemakeB`andC`,use3NANDandNOTgatestofinishAB`C`;2、UseNANDgateandNOTgatetofinishthefunctionofAND,thenuseNotgatemakeB`,use3NANDandNOTgatestofinishAB`C;3、UseNANDgateandNOTgatetofinishthefunctionofAND,thenuse2NANDandNOTgatestofinishAB.Requirements:(Copytherequirementsfromtheslides)1、Designatwo-bitbinaryadder.Principles:(Howdoyouplantosolvetheproblems?Writedownthelogicfunctionsoftheoutputs.)Firstofall,wesawtherequirements,foundingthatweshouldinput5bits.Wesawthebook,foundingthe1-bitbinaryadder.Sowefirstlyaddedthelastbitwiththecin,gottingaadditioncarry.Weusedthecarryasacin,andaddeditwiththeotherbit.Finallywegotthesecondbitandacout.S0=X⊕Y⊕CIN;Carry=X·Y+X·CIN+Y·CIN;S1=X1⊕Y1⊕Carry;COUT=X1·Y1+X1·Carry+Y1·Carry.Implementation:(Yourimplementationdetails.)1、usetwoXORgates,3NANDgatesand3NOTgatesas3ANDgates,3NANDgatesand1XORgatesasaORgate,implementa1-bitfulladder;2、Accordingthestep1,wegotS0andcarry,thenwerepeatedstep1,regardingcarryascin.WegotS1andcoutfinally.
本文标题:Lab-Report11
链接地址:https://www.777doc.com/doc-5071244 .html