您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > 实验报告-表决器的设计与实现
实验名称组合逻辑电路的设计与实现Designandimplementationofthecombinationallogiccircuit实验时间实验地点A6-213实验人员(学号+姓名)项目内容1.设计全加器电路,实现二进制加法中一列的运算(6分)1.Designacircuitoffull-adder,implementingthebinaryadditionononecolumnofbitswithintwooperands.提示:Tips:在二进制加法每一列的运算中包含了3个输入,ai,bi和carryi,分别代表两个加数中的对应位,和前一列的进位值;该位加运算的输出也有两个,分别是进位结果carryi+1和加的结果sumi。Ateachcolumn,thereare3valuesthatmustbeadded:onebitfromeachofthetwooperandsandthecarryfromthepreviouscolumn.Wedesignthesethreebitsasai,biandcarryi.Andthereare2results,thesumbitsumiandthecarryovertothenextcolumn,carryi+1.要求:Demands:该电路的输入输出如下,请设计并实现逻辑电路部分,并通过multisim检验电路是否正确。Designthecircuitwiththeinputpartandtheoutputpartshownasfollows.Checkwhetherthecircuitcanworkwiththesoftwaremultisim.(Filecontainingcircuitoftheinputandoutputparthasbeensupplied.)Fig1CircuitofinputandoutputpartofFull-Adder2.设计加法器,实现4位二进制加法运算(4分)Designanaddingcircuitforaddingtwo4-bitbinarynumbers.提示:Tips:在任务1的基础上,通过对全加器的连接,实现1个4位二进制加法运算器。Wecangroundthistaskontaks1,byconnectingseveralfull-adders.该电路的输入用开关模拟,输出用灯泡模拟,如图2所示。设计并实现中间的逻辑电路部分,并使用multisim软件对电路进行仿真,验证电路是否正确。Switchesareusedtosimulatetheinputvalues,andlampsfortheresultandthecircuitofinputandoutputpartofthistaskisasshowninFig2.Thecombinationallogicdesignedbyyoushouldbeaddedtothecircuitsupplied.Cisthefinalcarry.Fig2CircuitofinputandoutputpartofAdder3.附加:发电机启动控制器(3分)Additional:Circuittocontrolthestartoftheelectronicpowergenerators某工厂有三个车间和一个自备电站,站内有两台发电机X和Y,Y的发电量是X的两倍,如果一个车间开工,只启动X就可以满足要求;两个车间开工,仅启动Y就可以满足要求;若三个车间同时开工,X和Y都应启动。设计电路控制Y的启停。Afactoryhas3workshopsand1powerstationowingtwoelectronicpowergeneratorsXandY.ThepowergenerationofYistwiceoftheX’s.Ifoneoftheworkshopsisonstream,onlyXneedstobestarted.Andiftwooftheworkshopsareonstream,onlyYneedstobestarted.Andifalloftheworkshopsstartoperation,bothXandYareneededtostart.Yourtaskistodesignthestart-controlcircuitoftheelectronicpowergenerators.项目实施(一)设计全加器电路,实现二进制加法中1bit的运算(6分)1.分析全加器的真值表如下:Truthtableofthefull-addershouldbeasfollows:输入Input输出outputaibicarryicarryi+1Sumi0000010100111001011101112.根据真值表计算逻辑表达式如下:Completetheflowinglogicalexpressionaccordingtothetruthtable.carryi+1=Sumi=3.根据逻辑表达式,设计并实现组合逻辑电路.Designthecombinationallogiccircuitaccordingtothelogicalexpression.4.使用软件multisim,打开文件“ForQ1-FullAdder.ms11”,并将设计好的组合电路添加到该电路中。最终电路如下图所示.Openthefilenamed“ForQ1-FullAdder.ms11”withthesoftwaremultisim,andaddyourcircuittoit.Usethecomponent“4072BD_5V”torepresentthe4-inputORgate,“4073BD_5V”tothe3-inputANDgate,and“4009BCL_5V”toNOTgate.Pasteyourfinalcircuithere.5.仿真执行该电路,检验组合逻辑设计是否合理。Runthesimulationofthecircuitandcheckwhetherthecircuityoudesignedissuitable.(二)设计加法器,实现4位二进制加法运算(4分)1.设计4位二进制加法运算的组合逻辑电路(该电路中应使用到全加器)Designthecircuitforaddingtwo4-bitbinarynumbers,usingthefull-addercircuitsyouhavejustdesigned.2.使用软件multisim,打开文件“ForQ2-4input-Adder.ms11”,并将设计好的组合电路添加到该电路中。如下图所示:Openthefilenamed“ForQ2-4input-Adder.ms11”withthesoftwaremultisim,andaddyourcircuittoit.Pasteyourfinalcircuithere.3.仿真执行该电路,将仿真结果添加到下面的表格中。Runthesimulationofthecircuitandfilltheresultsinthefollowingtable.输入input输出outputAdder1加数1Adder2加数2结果result0000000000000(三)附加:发电机启动控制器(3分)1.设计控制电路的组合逻辑Designthecombinationallogicforthecontrolcircuit.2.使用软件multisim,打开文件“ForQ3-generator-controler.ms11”,并将设计好的组合电路添加到该电路中。如下图所示:Openthefilenamed“ForQ3-generator-controler.ms11”withthesoftwaremultisim,andaddyourcircuittoit.Usethecomponent“4072BD_5V”torepresentthe4-inputORgate,“4073BD_5V”tothe3-inputANDgate,and“4009BCL_5V”toNOTgate.Pasteyourfinalcircuithere.3.仿真执行该电路,将仿真结果添加到下面的表格中。Runthesimulationofthecircuitandfilltheresultsinthefollowingtable.inputoutputABCXY000001010011100101110111项目结论Pleasemakeasummaryofwhatyouhavedone,andwritedownthecommonstepstodesignthecombinationallogiccircuit.
本文标题:实验报告-表决器的设计与实现
链接地址:https://www.777doc.com/doc-2460416 .html