




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年劲截纾行业深度研究分析报告
- 2024年全球及中国变频增压泵行业头部企业市场占有率及排名调研报告
- 角质溶解药项目风险识别与评估综合报告
- 眼镜促销方案策划书3
- 2024-2030全球绝缘干式电力变压器行业调研及趋势分析报告
- 外贸出口贸易采购代理合同
- 毛石施工合同协议书
- 汽车租赁公司租赁合同
- 2025年企业标志旗项目投资可行性研究分析报告
- 房地产销售项目合作合同书
- 经济法学学习通超星期末考试答案章节答案2024年
- 道法滋养心灵+课件- 2024-2025学年统编版道德与法治七年级上册
- 医院培训课件:《严重创伤快速转诊机制》
- 广东东莞市2025届高考物理一模试卷含解析
- 2024-2030年中国杜仲行业市场深度调研及发展趋势与投资前景预测研究报告
- TCECA-G 0310-2024 离网制氢灵活消纳与柔性化工系统开发规范
- 集团有限公司投融资工作管理制度
- 医院感染管理基础知识培训
- 河南省洛阳市瀍河回族区2023-2024学年九年级上学期期末语文试题
- 2024年3月时政热点(一)
- 2024年吉林省中考语文试卷答案解读及复习备考指导
评论
0/150
提交评论