版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、EDA技术与应用讲义EDA设计流程 及其工具 1 第第2章章 EDA设计流程及其工具设计流程及其工具 课程讲义课程讲义 EDA技术与应用讲义EDA设计流程 及其工具 2 本章内容 vEDA设计的一般步骤 v常用EDA工具软件 v使用MAX+PLUS II软件设计过程 v使用Quartus II软件设计过程 v硬件设计和软件设计的时间协调 v设计的几个问题 EDA技术与应用讲义EDA设计流程 及其工具 3 EDA设计的一般步骤 v电路的模块划分 v设计输入 v器件和引脚指配 v编译与排错 v功能仿真和时序仿真 v编程与配置,设计代码的芯片运行 EDA技术与应用讲义EDA设计流程 及其工具 4 电
2、路的模块划分 v人工人工 根据电路功能 进行 模块划分模块划分 v合理的模块划分 关系到 电路的性能 实现的难易程度 v根据模块划分和系统功能 确定确定: PLD芯片型号芯片型号 模块划分后,就可以进行模块划分后,就可以进行 具体设计具体设计 了了 EDA技术与应用讲义EDA设计流程 及其工具 5 设计输入 一般EDA软件允许3种设计输入: HDL语言 电路图 1.波形输入 EDA技术与应用讲义EDA设计流程 及其工具 6 何为 ? 器件和引脚指配 v器件指配 F为设计输入 选择合适的PLD器件型号 v何谓引脚指配 F将设计代码(图形)中的端口(端口(PORT) 和 PLD芯片的引脚芯片的引脚
3、 (PIN) 对应起来的. v指配文件 FMAX+PLUS II: “ *.acf ” FQuartus II: “ *.qsf ” EDA技术与应用讲义EDA设计流程 及其工具 7 器件和引脚指配的方法 方法有2种 v在软件的菜单界 面中指配 1.修改指配文件 (是文本文件) EDA技术与应用讲义EDA设计流程 及其工具 8 菜单界面中 指 配 EDA技术与应用讲义EDA设计流程 及其工具 9 修改指配文件 vCHIP io_2d_lock vBEGIN v|iVD :INPUT_PIN = 7; v|iHD :INPUT_PIN = 8; v|iDENA :INPUT_PIN = 6; v
4、|iCLK : INPUT_PIN = 211; v|oCLK : OUTPUT_PIN = 237; v|oVD :OUTPUT_PIN = 234; v|oHD : OUTPUT_PIN = 233; v|oDENA :OUTPUT_PIN = 235; v. vDEVICE = EPF10K30AQC240-2; vEND; v. EDA技术与应用讲义EDA设计流程 及其工具 10 编译与排错 编译过程有2种,作用分别为: 语法编译:只是综合并输出网表 F编译设计文件,综合产生门级代码 F编译器只运行到综合这步就停止了 F编译器只产生估算的延时数值 完全的编译:包括编译,网表输出,综合,
5、配置器件 F编译器除了完成以上的步骤,还要将设计配置到ALTERA的器件 中去 F编译器根据器件特性产生真正的延时时间和给器件的配置文件 EDA技术与应用讲义EDA设计流程 及其工具 11 功能仿真和时序仿真 v仿真的概念: 在设计代码下载到芯片前,在EDA软件中对设计的输 出进行波形仿真。 v常用的2种仿真模式 v功能仿真 对设计的逻辑功能进行仿真 v时序仿真 对设计的逻辑功能和信号的时间延时进行仿真。 v仿真前还要做的工作 输入信号的建立 Quartus II软件中软件中 关于仿真的原文关于仿真的原文 EDA技术与应用讲义EDA设计流程 及其工具 12 2种 仿真文件 v矢量波形文件: v
6、 a Vector Waveform File (.vwf) v文本矢量文件 v a text-based Vector File (.vec), EDA技术与应用讲义EDA设计流程 及其工具 13 编程与配置 最后,最后, 如果仿真如果仿真 也正确也正确 的话,的话, 那我们就可以那我们就可以 将设计代码将设计代码 配置或者编程配置或者编程 到到 芯片芯片 中了中了 v编程的文件类型 对于CPLD或者EPC2,ECS1等配置芯片,编程文件扩展名为: “ *.POF “ v配置的文件类型 对于FPGA芯片,配置文件扩展名为:“ *.SOF “ EDA技术与应用讲义EDA设计流程 及其工具 14
7、 硬件设计和软件设计的时间协调 v软件模块划分,器件的初步信号确定(主要 是根据需要的I/O引脚的数量) v软件设计,硬件外围电路设计和器件选择 v软件仿真 v仿真完成后,器件信号的重新审核,进行硬 件电路图设计 v综合调试 v完成 EDA技术与应用讲义EDA设计流程 及其工具 15 设计的几个问题 v如何组织多个设计文件的系统?,项目的概 念。 v时钟系统如何设计? v电路的设计功耗 v高速信号的软件和硬件设计 EDA技术与应用讲义EDA设计流程 及其工具 16 The end. EDA技术与应用讲义EDA设计流程 及其工具 17 以下内容以下内容 为为 正文的引用,正文的引用, 可不阅读。
8、可不阅读。 EDA技术与应用讲义EDA设计流程 及其工具 18 常用EDA工具软件 vEDA软件方面,大体可以分为两类: PLD器件厂商提供的EDA工具。较著名的如: vAltera公司的 Max+plus II和Quartus II、 vXilinx公司的Foundation Series、 vLatice-Vantis公司的ispEXERT System。 第三方专业软件公司提供的EDA工具。常用的有: vSynopsys公司的FPGA Compiler II、 vExemplar Logic公司的LeonardoSpectrum、 vSynplicity公司的Synplify。 1.第三
9、方工具软件是对CPLD/FPGA生产厂家开发软件的补 充和优化,如通常认为Max+plus II和Quartus II对 VHDL/Verilog HDL逻辑综合能力不强,如果采用专用的 HDL工具进行逻辑综合,会有效地提高综合质量。 EDA技术与应用讲义EDA设计流程 及其工具 19 ALTERA 公司的公司的EDA合作伙伴合作伙伴 EDA技术与应用讲义EDA设计流程 及其工具 20 硬件描述语言:起源 v是电子电路的文本描述。 v最早的发明者:美国国防部,美国国防部,VHDL,1983 v大浪淘沙,为大者二: VHDL 和 Verilog HDL v其他的小兄弟: ABEL、AHDL、Sy
10、stem Verilog、System C。 EDA技术与应用讲义EDA设计流程 及其工具 21 一个D触发器的VHDL代码例子 v- VHDL code position: p83_ex4_11_DFF1 v- v- LIBARY IEEE; v- USE IEEE.STD_LOGIC_1164.ALL; vENTITY DFF1 IS vPORT (CLK:INBIT; vD:INBIT; vQ:OUTBIT v); vEND ENTITY DFF1; vARCHITECTURE bhv OF DFF1 IS vBEGIN vPROCESS(CLK) vBEGIN vIF CLKEVENT
11、 AND (CLK=1) AND ( CLKLAST_VALUE = 0) THEN v- 严格的CLK信号上升沿定义 vQ EDA技术与应用讲义EDA设计流程 及其工具 27 Compiler Netlist Extractor (编译器网表提取器)(编译器网表提取器) vThe Compiler module that converts each design a project (or each cell of an EDIF Input File) into a separate binary CNF. The (s) of the CNF(s) are based on the pr
12、oject name. Example vThe Compiler Netlist Extractor also creates a single HIF that documents the hierarchical connections between design files. vThis module contains a built-in EDIF Netlist Reader, Verilog Netlist Reader, VHDL Netlist Reader, and converters that translate ADFs and SMFs for use with
13、MAX+PLUS II. vDuring netlist extraction, this module checks each design problems such as duplicate node names, missing inputs and outputs, and outputs that are tied together. v返回 EDA技术与应用讲义EDA设计流程 及其工具 28 Database Builder(数据库构建器 ): vThe Compiler module that builds a single, fully flattened project d
14、atabase that integrates all the design files in a project hierarchy. vThe Database Builder uses the HIF to link the CNFs that describe the project. Based on the HIF data, the Database Builder copies each CNF into the project database. Each CNF is inserted into the database as many times as it is use
15、d within the original hierarchical project. The database thus preserves the electrical connectivity of the project. vThe Compiler uses this database for the remainder of project processing. Each subsequent Compiler module updates the database until it contains the fully optimized project. In the beg
16、inning, the database contains only the original netlists; at the end, it contains a fully minimized, fitted project, which the Assembler uses to create one or more files for device programming. vAs it creates the database, the Database Builder examines the logical completeness and consistency of the
17、 project, and checks for boundary connectivity and syntactical errors (e.g., a node without a source or destination). Most errors are detected and can be easily corrected at this stage of project processing. v返回 EDA技术与应用讲义EDA设计流程 及其工具 29 Logic Synthesizer vThe Compiler module that synthesizes the lo
18、gic in a projects design files. vUsing the database created by the Database Builder, the Logic Synthesizer calculates Boolean equations for each input to a primitive and minimizes the logic according to your specifications. vFor projects that use JK or SR flipflops, the Logic Synthesizer checks each
19、 case to determine whether a D or T flipflop will implement the project more efficiently. D or T flipflops are substituted where appropriate, and the resulting equations are minimized accordingly. vThe Logic Synthesizer also synthesizes equations for flipflops to implement state registers of state m
20、achines. An equation for each state bit is optimally implemented with either a D or T flipflop. If no state bit assignments have been made, or if an incomplete set of state bit assignments has been created, the Logic Synthesizer automatically creates a set of state bits to encode the state machine.
21、These encodings are chosen to minimize the resources used. v返回 EDA技术与应用讲义EDA设计流程 及其工具 30 Fitter(适配器) vThe Compiler module that fits the logic of a project into one or more devices. vUsing the database updated by the Partitioner, the Fitter matches the logic requirements of the project with the avail
22、able resources of one or more devices. It assigns each logic function to the best logic cell location and selects appropriate interconnection paths and pin assignments. vThe Fitter attempts to match any resource assignments made for the project with the resources on the device. If it cannot find a f
23、it, the Fitter allows you to override some or all of your assignments or terminate compilation. vThe Fitter module generates a Fit documents pin, buried logic cell, chip, clique, and device assignments made by the Fitter module in the last successful compilation. Each time the project compiles succe
24、ssfully, the Fit overwritten. You can back-annotate the assignments in the preserve them in future compilations. v返回 EDA技术与应用讲义EDA设计流程 及其工具 31 Timing SNF Extractor(时序SNF文件提取器) vThe Compiler module that creates a timing SNF containing the logic and timing information required for timing simulation, d
25、elay prediction, and timing analysis. vThe Timing SNF Extractor is turned on with the Timing SNF Extractor command (Processing menu). It is also turned on automatically when you turn on the EDIF Netlist Writer, Verilog Netlist Writer, or VHDL Netlist Writer command (Interfaces menu). The Timing SNF
26、Extractor cannot be turned on at the same time as the Functional SNF Extractor or the Linked SNF Extractor. vA timing SNF describes the fully optimized circuit after all logic synthesis and fitting have been completed. Regardless of whether a project is partitioned into multiple devices, the timing
27、SNF describes a project as a whole. Therefore, timing simulation and timing analysis (including delay prediction) are available only for the project as a whole. Neither timing simulation nor functional testing is available for individual devices in a multi-device project. Functional testing is avail
28、able only for a single-device project. v返回 EDA技术与应用讲义EDA设计流程 及其工具 32 Assembler(汇编器) vThe Compiler module that creates one or more programming files for programming or configuring the device(s) for a project. vThe Assembler module completes project processing by converting the Fitters device, logic c
29、ell, and pin assignments into a programming image for the device(s), in the form of one or more POFs, SOFs, Hex Files, TTFs, Jam Files, JBC Files, and/or JEDEC Files. POFs and JEDEC Files are always generated; SOFs, Hex Files, and TTFs are always generated if the project uses ACEX 1K, FLEX 6000, FLE
30、X 8000 or FLEX 10K devices; and Jam Files and JBC Files are always generated for MAX 9000, MAX 7000B, MAX 7000AE or MAX 3000A projects. If you turn on the Enable JTAG Support option in the Classic & MAX Global Project Device Options dialog box (Assign menu) or the Classic & MAX Individual Device Opt
31、ions dialog box, the Assembler will also generate Jam Files and JBC Files for MAX 7000A or MAX 7000S projects. After compilation, you can also use SOFs to create different types of files for configuring FLEX 6000, FLEX 8000 and FLEX 10K devices with Convert SRAM Object Files (). vThe programming fil
32、es can then be processed by the MAX+PLUS II Programmer and the MPU or APU hardware to produce working devices. Several other programming hardware manufacturers also provide programming support for Altera devices. v返回 EDA技术与应用讲义EDA设计流程 及其工具 33 Simulation Mode vFunctional Simulates the behavior of flattened netlists extracted from the design files. You can use Tcl commands and scripts to control simulation and to provide vector stimuli. You can also provide vector stimuli in a Vector Waveform File (.vwf) or a tex
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二五年度木制玩具设计与制造木工分包合同范本4篇
- 2025年度内墙腻子施工技术培训与推广合同2篇
- 二零二五年度全国连锁培训学校股权合作框架合同
- 课题申报参考:岷江流域西南官话语法内部差异及历史演变研究
- 2025版二零二五年度教育信息化项目实施合同范本3篇
- 二零二五年度工业用地面积调整补充合同4篇
- 二零二五年度农民工就业创业扶持政策合作协议2篇
- 2025年度国产婴幼儿奶粉品牌全国分销合同4篇
- 基于大数据分析的2025年度农产品市场需求预测合同2篇
- 二零二五年度住宅室内软装搭配合同4篇
- 《社区康复》课件-第三章 社区康复的实施
- 胰岛素注射的护理
- 云南省普通高中学生综合素质评价-基本素质评价表
- 2024年消防产品项目营销策划方案
- 闻道课件播放器
- 03轴流式压气机b特性
- 五星级酒店收入测算f
- 大数据与人工智能ppt
- 人教版八年级下册第一单元英语Unit1 单元设计
- GB/T 9109.5-2017石油和液体石油产品动态计量第5部分:油量计算
- 邀请函模板完整
评论
0/150
提交评论