下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、1Digital Logic Design and ApplicationJin YanhuaLecture #12Hardware Description LanguagesDocumentation Standard and Circuit TimingUESTC, Spring 2014Jin. UESTC2Real-World Logic DesignLots more than 6 inputs - cant use Karnaugh mapsDesign correctness more important than gate minimizationUse programs to
2、 manipulate logic expressions and minimize logic.Programmable Logic DevicesPALASM, ABEL, CUPL - developed for PLDsVHDL, Verilog - developed for ASICs6.3.1 PLA, programmable logic arrayJin. UESTC3Jin. UESTC4the number of inputs (n)the number of outputs (m)the number of product terms (p)Signetics 82S1
3、00, 16 inputs, 48 AND gates, 8 outputs.2*16*48=1536 fuses in the AND array, 8*48=384 in the OR arrayA 43 PLA with six product terms6.3.2 Programmable Array Logic DeviceJin. UESTC5Fixed OR arrayindividual three-state output enable signalSix I/O pinsLogic diagram of the PAL 16L86.3.3 Generic Array Log
4、ic DevicesJin. UESTC6Jin. UESTC7prime-number detector N3N0 N3N2N1N2N1N0N2N1N0Jin. UESTC8Chapter 5 Hardware Description LanguagesprimenumberdetectorN3N2N1N0Fdeclarationsstatements N3N0 N3N2N1N2N1N0N2N1N0moduleJin. UESTC9Chapter 5 Hardware Description LanguagesprimenumberdetectorN3N2N1N0Fdeclarationss
5、tatementsmodule primed (N3, N2, N1, N0, F);input N3, N2, N1, N0;output F; /structure description;endmodule;moduleJin. UESTC10Two kinds of signal : port : input and output; wire : any connect nets in module;The value of signals: 0 1 z xportwire N3N0 N3N2N1N2N1N0N2N1N0Jin. UESTC11Structural Design Ele
6、mentUse built-in gates for designJin. UESTC12Gate-levelw1w2w3w4module primed (N3, N2, N1, N0, F);input N3, N2, N1, N0;output F;wire notN3, notN2, notN1, w1, w2, w3, w4; not u1 (notN3, N3); not u2 (notN2, N2); not u3 (notN1, N1); and u4 (w1, notN3, N0); and u5 (w2, notN3, notN2, N1); and u6 (w3, notN
7、2, N1, N0); and u7 (w4, N2, notN1, N0); or u8 (F, w1, w2, w3, w4);endmodule;notN3notN2notN1Jin. UESTC13Dataflow Design Elementsw1w2w3w4module primed (N3, N2, N1, N0, F);input N3, N2, N1, N0;output F;wire w1, w2, w3, w4; assign w1= N3 & N0; assign w2 = N3 & N2 & N1; assign w3 = N2 & N1 & N0; assign w
8、4 = N2 & N1 & N0; assign F = w1 | w2 | w3 | w4;endmodule;assign F = (N3 & N0) | (N3 & N2 & N1) | (N2&N1&N0) | (N2&N1&N0);Hardware module: Name, Port and structureJin. UESTC14Behavioral Design Elementsmodule primed (N, F);input 3:0 N;output F;reg F; always (N) case (N) 1,2,3,5,7,11,13 : F=1; default
9、: F=0; end caseendmodule;15:0 N; always (N) if (N=1) F=1; else if ( (N%2) = 0) begin if (N=2) F=1; else F=0; end else if ( N=7) F=1; else if ( (N=11) | (N=13) ) F=1; else F=0;endmodule;15Chapter 6 Combinational Logic Design PracticesHow to conceive a complex system? structured thinkingSome useful co
10、mbinational componentsJin. UESTC166.1 Documentation StandardA documentation package contain the following items:Specification: description of interface and functionBlock diagram: systems major function module and their basic interconnections Schematic diagram (P360 Figure 6-17)Timing diagram (P363 F
11、igure 6-19)Structured logic device descriptionCircuit description: explains how the circuit works internallyJin. UESTC17schematic diagramJin. UESTC181. Block DiagramsA block diagram shows the inputs, outputs, functional modules, internal data paths, and important control signals of a system.P345 Fig
12、ure 6-1Jin. UESTC192. Gate SymbolsJin. UESTC20Equivalent Gate Symbols underthe Generalized Demorgans TheoreminverterbufferAND NAND NOR OR OR NOR NAND AND Jin. UESTC213. Active Levelsactive levelactive high and active lowasserted: a signal is at its active levelnegated / deasserted: signal is not at
13、its active level signal nameActive levels for pinsLogic Functions are performed inside the symbolic outlines.READYREQUESTGOREADY_LREQUEST_LGO_LIndicate an Active-Low PinJin. UESTC22Example: active levelsABFActive state: switchoff, lamplightA B F0 0 00 1 01 0 01 1 1Switch: 1off Lamp: 1light ABFSwitch
14、: 0off Lamp: 0light A B F0 0 00 1 11 0 11 1 1ABFF = A + B = ( A B )AND: the output is asserted if and only if all its inputs are asserted.Jin. UESTC23Example: active levelsABFActive state: switchoff, lamplightAND: the output is asserted if and only if all its inputs are asserted.ABFABFInversion bubb
15、le active-low pin normal gates Nonnormal gats Logic Functions are performed inside the symbolic outlines.Jin. UESTC247. Drawing Layoutflat schematic structureJin. UESTC25HierarchicalschematicstructureJin. UESTC266.2 Circuit Timingpropagation delay Timing analysis: worst-case delayMaximum delay Typic
16、al delay Minimum delay080804323232P366 Table 6-215202222tpHL and tpLH may be differentJin. UESTC27timing diagramGOREADYDATtDATtDATGOREADYDATtRDYtRDYCausality and Propagation DelayJin. UESTC28timing diagramGOREADYDATGOREADYDATtRDYmintRDYmaxMinimum and maximum delaysJin. UESTC29Some Useful Combinational ComponentsDecoders(译码器)Encoders(编码器)Three-State Devices(三态器件)Multiplexers(多路复用器)Parity Circuits(奇偶校验电路)Comparators(比较器)Adders(加法器)Jin. UESTC30Decoder and EncoderDecoderNormal
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年河北省保定市唐县国有企业公开招聘工作人员18名笔试历年典型考点题库附带答案详解
- 2025安徽省皖能聚合智慧能源有限公司所属子公司第二次招聘1人笔试历年难易错考点试卷带答案解析
- 2025四川长虹电子科技有限公司招聘销售经理岗位测试笔试历年典型考点题库附带答案详解
- 社交礼仪选择试题及答案
- 光伏组件测试员职业道德规范含答案
- 日语N5试卷及答案
- 山西一模大同试卷及答案
- 啤酒供应链管理合同
- 教材代码题目及答案
- 急性腹膜炎临床诊疗指南
- 应收账款债权转让协议
- 四川省宜宾市长宁县2024-2025学年九年级上学期期末化学试题(含答案)
- CNAS-CC01:2015 管理体系认证机构要求
- 可行性报告商业计划书
- 甲流防控知识培训课件
- DB32 T538-2002 江苏省住宅物业管理服务标准
- 湖南师范大学课程毛概题库
- 借住合同范本(2篇)
- 2025年民航华北空管局招聘笔试参考题库含答案解析
- 公司反腐败反贿赂培训
- 江西省2024年“三新”协同教研共同体高三联考 地理试卷(含答案解析)
评论
0/150
提交评论