第3章组合逻辑电路设计精选文档.ppt
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《第3章组合逻辑电路设计精选文档.ppt》由会员分享,可在线阅读,更多相关《第3章组合逻辑电路设计精选文档.ppt(69页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、第3章组合逻辑电路设计本讲稿第一页,共六十九页2023/4/112习题习题完成下列练习完成下列练习,其中标为红色的要用其中标为红色的要用Multisim完成完成:52,54,55,56,58,62.(第(第5章)章)3,4,5,28,29,30.第第3 3章章 组合逻辑电路设计(续)组合逻辑电路设计(续)本讲稿第二页,共六十九页Chapter 3-Part 1 3OverviewPart 1 Design ProcedureStepsSpecificationFormulationOptimizationTechnology MappingBeginning Hierarchical Desi
2、gnTechnology Mapping-AND,OR,and NOT to NAND or NORVerificationManualSimulation本讲稿第三页,共六十九页Chapter 3-Part 1 4Overview(continued)Part 2 Combinational LogicFunctions and functional blocksRudimentary logic functionsDecoding using DecodersImplementing Combinational Functions with DecodersEncoding using E
3、ncodersSelecting using MultiplexersImplementing Combinational Functions with Multiplexers本讲稿第四页,共六十九页Chapter 3-Part 1 5Combinational CircuitsA combinational logic circuit has:A set of m Boolean inputs,A set of n Boolean outputs,andn switching functions,each mapping the 2m input combinations to an ou
4、tput such that the current output depends only on the current input valuesA block diagram:m Boolean Inputsn Boolean OutputsCombinatorialLogic Circuit本讲稿第五页,共六十九页Chapter 3-Part 1 6Design Procedure1.SpecificationWrite a specification for the circuit if one is not already available2.FormulationDerive a
5、 truth table or initial Boolean equations that define the required relationships between the inputs and outputs,if not in the specificationApply hierarchical design if appropriate3.OptimizationApply 2-level and multiple-level optimizationDraw a logic diagram or provide a netlist for the resulting ci
6、rcuit using ANDs,ORs,and inverters本讲稿第六页,共六十九页Chapter 3-Part 1 7Design Procedure4.Technology MappingMap the logic diagram or netlist to the implementation technology selected5.VerificationVerify the correctness of the final design manually or using simulation 本讲稿第七页,共六十九页Chapter 3-Part 1 8Design Exa
7、mple1.Specification BCD to Excess-3 code converterTransforms BCD code for the decimal digits to Excess-3 code for the decimal digitsBCD code words for digits 0 through 9:4-bit patterns 0000 to 1001,respectivelyExcess-3 code words for digits 0 through 9:4-bit patterns consisting of 3(binary 0011)adde
8、d to each BCD code wordImplementation:multiple-level circuitNAND gates(including inverters)本讲稿第八页,共六十九页Chapter 3-Part 1 9Design Example(continued)2.FormulationConversion of 4-bit codes can be most easily formulated by a truth tableVariables-BCD:A,B,C,DVariables-Excess-3 W,X,Y,ZDont Cares-BCD 1010 to
9、 1111本讲稿第九页,共六十九页Chapter 3-Part 1 10Design Example(continued)3.Optimizationa.2-level usingK-mapsW=A+BC+BDX=C+D+BY=CD+Z=BCDA01324576121315148911101111XXXXXX1BCDA01324576121315148911101111XXXXXX1BCDA01324576121315148911101111XXXXXX1BCDA0132457612131514891110111XXXXXX11wzyxBCDBCDD本讲稿第十页,共六十九页Chapter 3-
10、Part 1 11Design Example(continued)3.Optimization(continued)b.Multiple-level using transformationsW=A+BC+BDX=C+D+BY=CD+Z=G=7+10+6+0=23Perform extraction,finding factor:T1=C+DW=A+BT1 X=T1+BY=CD+Z=G=2+1+4+7+6+0=19BCDBCDDBCDCDD本讲稿第十一页,共六十九页Chapter 3-Part 1 12Design Example(continued)3.Optimization(conti
11、nued)b.Multiple-level using transformationsT1=C+DW=A+BT1 X =T1+BY =CD+Z =G=19An additional extraction not shown in the text since it uses a Boolean transformation:(=C+D=):W=A+BT1X=T1+B Y=CD+Z=G=2+1+4+6+4+0=16!BCDCDDBT1DT1CDT1本讲稿第十二页,共六十九页Chapter 3-Part 1 13Design Example(continued)4.Technology Mappi
12、ng Mapping with a library containing inverters and 2-input NAND,2-input NOR,and 2-2 AOI gates ABCDWXYZ本讲稿第十三页,共六十九页Chapter 3-Part 1 14Beginning Hierarchical DesignTo control the complexity of the function mapping inputs to outputs:Decompose the function into smaller pieces called blocksDecompose eac
13、h blocks function into smaller blocks,repeating as necessary until all blocks are small enoughAny block not decomposed is called a primitive blockThe collection of all blocks including the decomposed ones is a hierarchyExample:9-input parity tree(see next slide)Top Level:9 inputs,one output2nd Level
14、:Four 3-bit odd parity trees in two levels3rd Level:Two 2-bit exclusive-OR functionsPrimitives:Four 2-input NAND gatesDesign requires 4 X 2 X 4=32 2-input NAND gates本讲稿第十四页,共六十九页Chapter 3-Part 1 15Hierarchy for Parity Tree ExampleBOX0X1X2X3X4X5X6X7X8ZO9-Inputoddfunction(a)Symbol for circuit3-Inputod
15、dfunctionA0A1A2BO3-InputoddfunctionA0A1A2BO3-InputoddfunctionA0A1A2BO3-InputoddfunctionA0A1A2X0X1X2X3X4X5X6X7X8ZO(b)Circuit as interconnected 3-input odd function blocksBOA0A1A2(c)3-input odd function circuit as interconnected exclusive-OR blocks(d)Exclusive-OR block as interconnected NANDs本讲稿第十五页,共
16、六十九页Chapter 3-Part 1 16Reusable FunctionsWhenever possible,we try to decompose a complex design into common,reusable function blocksThese blocks areverified and well-documentedplaced in libraries for future use本讲稿第十六页,共六十九页Chapter 3-Part 1 17Top-Down versus Bottom-UpA top-down design proceeds from a
17、n abstract,high-level specification to a more and more detailed design by decomposition and successive refinement A bottom-up design starts with detailed primitive blocks and combines them into larger and more complex functional blocksDesign usually proceeds top-down to known building blocks ranging
18、 from complete CPUs to primitive logic gates or electronic components.Much of the material in this chapter is devoted to learning about combinational blocks used in top-down design.本讲稿第十七页,共六十九页Chapter 3-Part 1 18Technology MappingMapping ProceduresTo NAND gatesTo NOR gatesMapping to multiple types
19、of logic blocks in covered in the reading supplement:Advanced Technology Mapping.本讲稿第十八页,共六十九页Chapter 3-Part 1 19Mapping to NAND gatesAssumptions:Gate loading and delay are ignoredCell library contains an inverter and n-input NAND gates,n=2,3,An AND,OR,inverter schematic for the circuit is available
20、The mapping is accomplished by:Replacing AND and OR symbols,Pushing inverters through circuit fan-out points,andCanceling inverter pairs本讲稿第十九页,共六十九页Chapter 3-Part 1 20NAND Mapping Algorithm1.Replace ANDs and ORs:2.Repeat the following pair of actions until there is at most one inverter between:a.A
21、circuit input or driving NAND gate output,andb.The attached NAND gate inputs.本讲稿第二十页,共六十九页Chapter 3-Part 1 21NAND Mapping Example本讲稿第二十一页,共六十九页Chapter 3-Part 1 22Mapping to NOR gatesAssumptions:Gate loading and delay are ignoredCell library contains an inverter and n-input NOR gates,n=2,3,An AND,OR,
22、inverter schematic for the circuit is availableThe mapping is accomplished by:Replacing AND and OR symbols,Pushing inverters through circuit fan-out points,andCanceling inverter pairs本讲稿第二十二页,共六十九页Chapter 3-Part 1 23NOR Mapping Algorithm1.Replace ANDs and ORs:2.Repeat the following pair of actions u
23、ntil there is at most one inverter between:a.A circuit input or driving NAND gate output,andb.The attached NAND gate inputs.本讲稿第二十三页,共六十九页Chapter 3-Part 1 24NOR Mapping ExampleABCDEF(c)FABXCDE(b)ABCDEF(a)231本讲稿第二十四页,共六十九页Chapter 3-Part 1 25Verification-show that the final circuit designed implements
24、 the original specificationSimple specifications are:truth tablesBoolean equationsHDL codeIf the above result from formulation and are not the original specification,it is critical that the formulation process be flawless for the verification to be valid!Verification本讲稿第二十五页,共六十九页Chapter 3-Part 1 26
25、Basic Verification MethodsManual Logic AnalysisFind the truth table or Boolean equations for the final circuitCompare the final circuit truth table with the specified truth table,orShow that the Boolean equations for the final circuit are equal to the specified Boolean equationsSimulationSimulate th
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 组合 逻辑电路 设计 精选 文档
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内