VIVADO 设计工具使用流程.ppt

合集下载

第一课时:Vivado设计流程与使用模式

第一课时:Vivado设计流程与使用模式

第⼀课时:Vivado设计流程与使⽤模式1. ISE和Vivado的不同之处
XST:综合
NGDBuild MAP PAR:实现
TRCE:静态时序分析
BitGen:⽐特⽂件⽣成
每⼀步的运⾏需要前⼀步的⽂件:
2. Vivado的设计流程
PPT1
opt_design place_desin route_design是必须的,对应的⽣成dcp⽂件
PPT2
以IP为核⼼的系统级的设计流程
PPT3
PPT4
3. Vivado设计的两种模式
PPT1
PPT2
PPT3
PPT4
存在Memory,定制报告
4. 演⽰
⼯程模式
xdc:约束⽂件夹
过程省略
verilog头⽂件
中间加⼊了相应的IP,vivado 2018找不到该选项
.xci为后缀
加⼊相应的约束
加⼊相应的仿真⽂件
可以Design run运⾏综合,先对IP进⾏综合综合后查看综合结果
查看时序报告,资源利⽤率
进⾏实现
实现策略
实现后⽣成⽐特⽂件,view report查看报告
查看对应的tcl命令
tcl脚本执⾏操作
对应的tcl脚本
运⾏该脚本。

基于vhdl的vivado使用流程

基于vhdl的vivado使用流程

基于VHDL的Vivado使用流程1. 简介在数字电路设计中,VHDL(VHSIC Hardware Description Language)是一种常用的硬件描述语言。

而Vivado是Xilinx公司推出的一款集成化设计环境,用于FPGA(Field-Programmable Gate Array)设计和验证。

本文将介绍基于VHDL的Vivado使用流程。

2. 准备工作在开始使用Vivado之前,需要进行以下准备工作:•安装Vivado软件:进入Xilinx官方网站,下载并安装最新版本的Vivado软件。

•确定目标FPGA设备:选择合适的FPGA芯片作为目标设备,并了解其技术规格和功能。

•编写VHDL代码:使用VHDL语言编写需要实现的功能代码。

3. 创建新项目完成准备工作后,可以开始创建新的Vivado项目。

按照以下步骤进行:1.启动Vivado软件,选择“Create New Project”选项。

2.在弹出的对话框中,指定项目名称和保存路径。

3.选择目标FPGA设备,并指定时钟频率、IO标准等参数。

4.选择VHDL作为设计源文件语言。

5.添加设计源文件:将之前编写好的VHDL代码文件添加到项目中。

6.完成项目创建,进入Vivado集成化设计环境。

4. 添加约束文件在Vivado中,约束文件是用于指定设计中信号的时钟频率、引脚约束、时序要求等重要信息的文件。

要将约束文件添加到项目中,请按照以下步骤进行:1.在Vivado界面的左侧面板中,打开“Sources”选项卡。

2.右键单击“Constraints”文件夹,并选择“Add Sources”。

3.在弹出的对话框中,选择约束文件并添加到项目中。

4.在Vivado界面的左侧面板中,打开“Constraints”选项卡,确认约束文件已成功添加。

5. 进行综合和实现在Vivado中,综合是将HDL(硬件描述语言)代码和约束文件结合起来,生成逻辑网表的过程。

vivado使用手册

vivado使用手册

Vivado是一款由Xilinx公司开发的集成开发环境(IDE),主要用于FPGA的设计和开发。

以下是Vivado的基本使用手册:
1. 打开Vivado软件,创建一个新工程:点击“Create New Project”,在弹出的界面上填写工程名并选择保存位置。

在选择工程类型时,选择RTL Project(一般为RTL工程)。

2. 在新工程中添加源文件:在新建的工程中,右键点击工程名,选择“Add Sources”来添加Verilog源文件。

在弹出的对话框中选择“OK”和“Yes”完成设计文件的新建。

3. 编写代码:在Sources文件夹中双击新建的设计文件,即可在右边的代码编辑区进行代码的编写。

4. 运行仿真:在编写完代码后,需要进行仿真测试。

在工程名上右键选择“New Run Block”,选择仿真语言为混合语言,然后点击“OK”。

在仿真界面中设置仿真参数,然后点击“Run”开始仿真。

5. 生成比特流:在仿真通过后,需要生成比特流文件以便将设计烧录到FPGA芯片中。

在工程名上右键选择“Generate Bitstream”,在弹出的界面中选择目标语言为Verilog,然后点击“OK”。

等待生成比特流文件的完成。

6. 下载到FPGA:将生成的比特流文件下载到FPGA芯片中进行实际测试。

可以使用Vivado提供的Tcl命令或者第三方工具进行下载。

以上是Vivado的基本使用流程,具体操作可能会根据不同的版本和实际需求有所不同。

建议参考Xilinx提供的官方文档和教程进行学习。

vivado使用教程

vivado使用教程

vivado使用教程Vivado 是一款由 Xilinx 公司开发的 FPGA 设计和开发工具。

使用 Vivado 可以对 FPGA 进行硬件描述语言编码、综合、实现、仿真和下载,从而实现对 FPGA 的可编程逻辑进行配置和控制。

以下是 Vivado 的基本使用步骤:1. 打开 Vivado:双击 Vivado 的图标,或者在终端中使用命令`vivado` 打开 Vivado。

2. 创建新工程:在Vivado 的欢迎界面,点击"Create Project",输入工程名称和保存路径,然后点击 "Next"。

3. 选择项目类型:在 "Project Type" 中选择 "RTL Project",然后点击 "Next"。

4. 添加源文件:在 "Add Sources" 中点击 "Add Files",选择需要的硬件描述语言文件,如 Verilog 或 VHDL 文件,然后点击"Finish"。

5. 添加约束文件:在 "Add Constraints" 中点击 "Add Files",选择约束文件,如 XDC 文件,然后点击 "Finish"。

6. 设置目标设备:在 "Default Part" 中选择目标设备,点击"Next"。

7. 设置仿真选项:在 "Add Simulation Sources" 中点击 "Create Simulation Source",选择仿真文件,如测试文件,然后点击"Finish"。

8. 点击 "Finish" 完成工程创建。

9. 生成比特流文件:在 Vivado 的左侧面板中点击 "Generate Bitstream",等待 Vivado 完成比特流文件的生成。

Vivado使用简介150908

Vivado使用简介150908

Vivado 使用入门简介:一个典型的,用Vivado进行数字逻辑电路设计的过程包括:创建模块,创建用户约束文件,创建Vivado工程,插入创建的模块,声明创建的约束文件,随意地运行动作的仿真,对创建的模块进行综合,执行设计,产生位文件,最后将文件下载到硬件上验证设计的正确性等步骤。

Figure 1. A typical design flow完成一个实际电路的实例一、新建工程步骤如下:1 打开VivadoStart > All Programs > Xilinx Design Tools > Vivado 2013.3 >Vivado 2013.3 或双击桌面图标,显示如下界面:“Creating New Project”:建立新工程导航,用于建立各种类型的工程。

“Open Project”:打开一个已有的工程。

“Open Example Project”:打开示例工程。

“Documentation and Tutorials”:文件夹和说明书。

可以打开Xilinx使用说明书和部分设计数据。

“User Guide”:打开Vivado用户指南。

“Quick Take Videos”:打开Xilinx视频说明书。

2 点击“Create New Project”,开始新建工程向导。

弹出下图点击“Next”,进入设置此次所建项目的名称对话框。

第一次实验前,请为本课程所有的项目新建一个文件夹,如“digital”,以后所有本课程相关项目均放在此文件夹下,在“project location”栏选择此文件夹。

接着,为本项目取名,如“tutorial01”,勾选“Create Project Subdirectory”,在当前目录下为本工程新建一个同工程名的子目录,保存工程所有数据文件。

注意:工程名称和存储路径中不能出现中文和空格,建议工程名称和路径名称都是以字母开头,由字母、数字、下划线来组成。

vivado设计流程教程_ug8...

vivado设计流程教程_ug8...

vivado设计流程教程_ug8... Vivado Design Suite TutorialDesign Flows OverviewUG888 (v2015.4) November 18, 2015Revision HistoryThe following table shows the revision history for this document.Table of ContentsRevision History (2)Vivado Design Flows Overview (4)Introduction (4)Lab 1: Using the Non-Project Design Flow (8)Introduction (8)Step 1: Examine the Example Script (8)Step 2: Starting Vivado with the Example Design (8)Step 3: Synthesizing the Design (10)Step 4: Launching the Vivado IDE (10)Step 5: Defining Timing Constraints and I/O Planning (12) Step 6: Exporting the Modified Constraints (15)Step 7: Implementing the Design (16)Step 8: Opening a Design Checkpoint (17)Step 9: Analyzing Implementation Results (17)Step 10: Exiting the Vivado Tool (20)Lab 2: Using the Project Design Flow (21)Introduction (21)Step 1: Creating a Project (21)Step 2: Using the Sources Window and Text Editor (27)Step 3: Elaborating the RTL Design (31)Step 4: Using the IP Catalog (32)Step 5: Running Behavioral Simulation (33)Step 6: Reviewing Design Run Settings (34)Step 7: Synthesizing and Implementing the Design (37)Step 8: Analyzing the Synthesized Design (38)Step 9: Analyzing the Implemented Design (41)Step 10: Generating a Bitstream file (43)Conclusion (45)Legal Notices (46)Please Read: Important Legal Notices (46)Vivado Design Flows OverviewIMPORTANT: This tutorial requires the use of the Kintex?-7 family of devices. You willneed to update your Vivado tools installation if you do not have this device family installed.Refer to the Vivado Design Suite User Guide: Release Notes, Installation, and Licensing(UG973) for more information on Adding Design Tools or Devices.IntroductionThis tutorial introduces the use models and design flows recommended for use with the Xilinx? Vivado?Integrated Design Environment (IDE). This tutorial describes the basic steps involved in taking a small example design from RTL to bitstream, using two different design flows as explained below. Both flows can take advantage of the Vivado IDE, or be run through batch Tcl scripts. The Vivado Tcl API provides considerable flexibility and power to help set up and run your designs, as well as perform analysis and debug.VIDEO:You can also learn more about the Vivado Design Suite design flows by viewing thequick take video at Vivado Design Flows.TRAINING: Xilinx provides training courses that can help you learn more about theconcepts presented in this document. Use these links to explore related courses:Vivado Introductory WorkshopVivado Design Suite Tool FlowEssentials of FPGA DesignWorking in Project Mode and Non-Project ModeSome users prefer the design tool for automatically managing their design flow process and design data, while others prefer to manage sources and process themselves. The Vivado Design Suite uses a project file () and directory structure to manage the design source files, store the results of different synthesis and implementation runs, and track the project status through the design flow. This automated management of the design data, process and status requires a project infrastructure. For this reason, Xilinx refers to this flow as the Project Mode.Other users prefer to run the FPGA design process more like a source file compilation, to simply compile the sources, implement the design, and report the results. This compilation style flow isreferred to as the Non-Project mode. The Vivado Design Suite easily accommodates both of these use models.Both of these flows utilize a project structure to compile and manage the design. The main distinctions are that Non-Project mode processes the entire design in memory. No files are written to disk. While Project mode creates and maintains a project directorystructure on disk to manage design sources, results, and project settings and status.The following provides a brief overview of Project mode and Non-Project mode. For a more complete description of these design modes, and the features and benefits of each, refer to this link in the Vivado Design Suite User Guide: Design Flows Overview (UG892).Non-Project ModeThis use model is for script-based users who do not want Vivado tools to manage their design data or track their design state. The Vivado tools simply read the various source files and compile the design through the entire flow in-memory. At any stage of the implementation process, you can generate a variety of reports, run design rule checks (DRCs), and write design checkpoints. Throughout the entire flow, you can open the design in-memory, or any saved design checkpoint, in the Vivado IDE for design analysis or netlist/constraint modification. Source files, however, are not available for modification in the IDE when running the Non-Project mode. It is also important to note that this mode does not enable project-based features such as source file and run management, cross-probing back to source files, design state reporting, etc. Essentially, each time a source file is updated on the disk; you must know about it and reload the design.There are no default reports or intermediate files created within the Non-Project mode. You must direct the creation of reports or design checkpoints with Tcl commands.Project ModeThis use model is for users who want the Vivado tools to manage the entire design process, including features like source file, constraint and results management, integrated IP design, and cross probing back to sources. In Project mode, the Vivado tools create a directory to manage the design source files, IP data, synthesis and implementation run results and related reports. The Vivado Design Suite manages and reports the status of the source files, configuration, and the state of the design. You can create and configure multiple runs to explore constraint or command options. In the Vivado IDE, you can cross-probe implementation results back to the RTL source files. You can also script the entire flow with Tcl commands, and open Vivado IDE as needed. Using Tcl CommandsThe Tcl commands and scripting approach vary depending on the design flow used. When using the Non-Project mode, the source files are loaded using read_verilog, read_vhdl, read_edif,read_ip, and read_xdc commands. The Vivado Design Suite creates an in-memory design database to pass to synthesis, simulation, and implementation. When using Project mode, you can use thecreate_project, add_files, import_files, and add_directories commands to create theproject infrastructure needed to manage source files and track design status. Replace the individual “atomic” commands,synth_design, opt_design, place_design, route_design, andwrite_bitstream in the Batch flow, with an all-inclusive command called launch_runs. The launch_runs command groups the atomic commands together with other commands to generate default reports and track the run status. The resulting Tcl run scripts for the Project mode are different from the Non-Project mode. This tutorial covers the Project mode and Non-Project mode, as well as the Vivado IDE.Many of the analysis features discussed in this tutorial are covered in more detail in other tutorials. Not every command or command option is represented here. To view the entire list of Tcl commands provided in the tools, consult the Vivado Design Suite Tcl Command Reference Guide (UG835).This tutorial contains two labs that can be performed independently.Lab 1: Using the Non-Project Design FlowWalk through a sample run script to implement the bft design.View various reports at each step.Review the vivado.log file.Write design checkpoints.Open the Vivado IDE after synthesis to review timing constraint definition and I/O planning and demonstrate methods to update constraints.Open the implemented Design Checkpoint to analyze timing, power, utilization and routing.Lab 2: Using the Project Based Design FlowCreate a new project.Walk through implementing the bft design using the Vivado IDE.View various reports at each step.Open the synthesized design and review timing constraint definition, I/O planning and design analysis.Open the implemented design to analyze timing, power, resource utilization, routing, and cross-probing.Tutorial Design DescriptionThe sample design used throughout this tutorial consists of a small design called bft. There are several VHDL and Verilog source files in the bft design, as well as a XDC constraints file.The design targets an xc7k70T device. A small design is used to allow the tutorial to be run with minimal hardware requirements and to enable timely completion of the tutorial, as well as to minimize the data size.Hardware and Software RequirementsThis tutorial requires that the 2015.3 Vivado Design Suite software release or later is installed. The following partial list describes the operating systems that the Vivado Design Suite supports on x86 and x86-64 processor architectures:See the Vivado Design Suite User Guide: Release Notes, Installation, and Licensing (UG973) for a complete list and description of the system and software requirements.Preparing the Tutorial Design FilesYou can find the files for this tutorial in the Vivado Design Suite examples directory at the following location:/Vivado//examples/Vivado_TutorialYou can also extract the provided ZIP file, at any time, to write the tutorial files to your local directory, or to restore the files to their starting condition.Extract the ZIP file contents from the software installation into any write-accessible location./Vivado//examples/Vivado_Tutorial.zipThe extracted Vivado_Tutorial directory is referred to as the in this Tutorial. Note: You will modify the tutorial design data while working through this tutorial. You should use a new copy of the original Vivado_Tutorial directory each time you start this tutorial. Lab 1: Using the Non-Project Design FlowIntroductionThis lab focuses on Non-Project mode and the associated Tcl commands.Step 1: Examine the Example Script1.Open the example script:/Vivado_Tutorial/create_bft_kintex7_batch.tcl, in a text editor and review the different steps.STEP#0: Define output directory location.STEP#1: Setup design sources and constraints.STEP#2: Run synthesis, report utilization and timing estimates, write checkpoint design.STEP#3: Run placement and logic optimization, report utilization and timingestimates, write checkpoint design.STEP#4: Run router, report actual utilization and timing, write checkpointdesign, run drc, write verilog and xdc out.STEP#5: Generate a bitstream.Notice that many of the Tcl commands are commented out. You will run them manually, one at a time.2.Leave the example script open, as you will copy and paste commands from it later in this tutorial. Step 2: Starting Vivado with the Example DesignOn Linux1.Change to the directory where the lab materials are stored:cd /Vivado_Tutorial/doc/0aad815a178884868762caaedd3383c4bb4cb489.html unch the Vivado Design Suite Tcl shell, and source a Tcl script to create the tutorial design:vivado -mode tcl -source create_bft_kintex7_batch.tclOn Windows/doc/0aad815a178884868762caaedd3383c4bb4cb489.html unch the Vivado Design Suite Tcl shell: Start > All Programs > Xilinx Design Tools > Vivado 2015.x >Vivado 2015.x Tcl ShellNote: Your Vivado Design Suite installation may be called something other than Xilinx Design Tools on the Start menu.2.In the Tcl shell, change to the directory where the lab materials are stored:Vivado% cd /Vivado_Tutorial3.Source a Tcl script to create the tutorial design:Vivado% source create_bft_kintex7_batch.tclAfter the sourced script has completed, the Vivado Design Suite Tcl shell, hereafter called the Tcl shell, displays the Tcl prompt: Vivado%Figure 1: Start Vivado and Source Tcl ScriptYou can enter additional Tcl commands from the Tcl prompt.Step 3: Synthesizing the Design1.Copy and paste the synth_design command from the create_bft_kintex7_batch.tclscript into the Tcl shell and wait for synthesis to complete. You can paste into the Tcl shell using the popup menu, by clicking the right mouse button.synth_design -top bftNote:The command in the example script is a comment. Do not copy the leading ‘#’ character, or your command will also be interpreted as a comment.2.Examine the synthesis report as it scrolls by.3.When the Vivado Tcl prompt has returned, copy and paste the write_checkpoint,report_timing_summary, report_power, report_clock_interaction, andreport_high_fanout_nets commands that follow synthesis.write_checkpoint -force $outputDir/post_synthreport_timing_summary -file $outputDir/post_synth_timing_summary.rptreport_power -file $outputDir/post_synth_power.rptreport_clock_interaction -delay_type min_max -file \$outputDir/post_synth_clock_interaction.rptreport_high_fanout_nets –fanout_greater_than 200 -max_nets 50 -file \$outputDir/post_synth_high_fanout_nets.rpt4.Open another window to look at the files created in the output directory. On Windows, it may beeasier to use the file browser./Vivado_Tutorial/Tutorial_Created_Data/bft_output/doc/0aad815a178884868762caaedd3383c4bb4cb489.html e a text editor to open the various report (*.rpt) files that were created.Step 4: Launching the Vivado IDEEven though a Vivado project has not been created on disk, the in memory design is available in the tool, so from the Tcl shell you can open the Vivado IDE to view the design.Non-Project mode enables the use of the Vivado IDE at various stages of the design process. The current netlist and constraints are loaded into memory in the IDE, enabling analysis and modification. Any changes to the logic or the constraints are live in memory and are passed to the downstream tools. This is quite a different concept than with the ISE tools that require saving and reloading files.Open the IDE using the start_gui command.Vivado% start_guiThe Vivado IDE provides design visualization and exploration capabilities for your use. From the Vivado IDE, you can perform further analysis and constraint manipulation on the design.Figure 2: Vivado IDE - Non-Project Modecommand. If you use the File > Exit command from the Vivado IDE, you will completelyexit the Vivado tool.Since the design does not have a project in Non-Project mode, the Vivado IDE does not enable source file or run management. You are effectively analyzing the current in memory design. The Vivado FlowNavigator and other project based commands are also not available in Non-Project mode.Step 5: Defining Timing Constraints and I/O PlanningYou must often define timing and physical constraints for the design prior to implementation. The Vivado tools let you load constraints from constraints file(s), or enter constraints interactively using the IDE.Defining Timing Constraints1. Open the Timing Constraints window: Window > Timing Constraints, as shown in the followingfigure:Figure 3: Define Timing ConstraintsA tree view of the different types of constraints displays on the left side of the Timing Constraintswindow. This is a menu of timing constraints that can be quickly defined.Notice the two clock constraints, wbClk and bftClk, displayed in the Timing Constraintspreadsheet on the right side of the Timing Constraints window. The values of currently defined constraints can be modified by directly editing them in the spreadsheet.2.In the left hand tree view of the Timing Constraints window,double-click Create Clock under theClocks category, as shown in Figure 3.Note: Expand the Clocks category if needed by clicking the +.The Create Clock wizard opens, as shown in the following figure, to help you define clockconstraints. Notice the Tcl Command line on the bottom displays the XDC command that will be executed.Do not create or modify any timing constraints at this time.Figure 4: Create Clock Dialog Box3.Click Cancel.4.Close the Timing Constraints window by clicking the X in the window tab.The Vivado Design Suite offers a variety of features for design analysis and constraint assignment.Other tutorials cover these features in detail, and they are only mentioned here. Feel free toexamine some of the features under the Tools menu.matlI/O PlanningVivado has a comprehensive set of capabilities for performing and validating I/O pin assignments. These are covered in greater detail in the I/O Planning Tutorial.1.Open the I/O Planning view layout by selecting I/O Planning from the Layout Selector pull down,as shown in Figure 5.2.Make the Package window the active view if it is not active.Note: If the Package window is not open, you can open it using the Windows > Packagecommand from the main menu.Figure 5: Open I/O Planning View Layout3.In the Package window, double-click to select a placed I/O Port, shown asan orange block inside a package pin.4.Drag the selected I/O Port onto another pin site in the same I/O bank.5.Examine the I/O Ports window, look at the port name and package pinsite columns.6.Examine the data displayed in the I/O Port Properties window. Click eachof the tabs at the bottom of the window.7.Remember the port name and site of the port you moved.If necessary, write them down. You will look for the LOC constraint of the placed port in the XDC file after implementation.Step 6: Exporting the Modified ConstraintsModified constraints can be output for later use. You can also save design checkpoints that include the latest changes. You will explore design checkpoints later in this tutorial.IMPORTANT: The Vivado Design Suite does not support NCF/UCF constraints. Youshould migrate existing UCF constraints to XDC format. Refer to the ISE to VivadoDesign Suite Migration Guide (UG911) for more information./doc/0aad815a178884868762caaedd3383c4bb4cb489.html e the Export Constraints command to output a modified XDC constraints file with the new I/OLOC constraint value.File > Export > Export ConstraintsThe Export Constraints dialog box opens to let you specify a file name to create, as shown in the following figure.Figure 6: Export Constraints2.Enter a name and location for the file and click OK.Notice the checkbox for Include unconstrained placement locations. When this is enabled, LOC constraints of all placed cells are exported, rather than of only fixed cells. For a more detailed description of fixed versus unfixed cells, refer to this link in the Vivado Design Suite User Guide: Using Constraints (UG903)./doc/0aad815a178884868762caaedd3383c4bb4cb489.html e the File > Open File command to open the constraints file in the Text Editor.4.Browse to select the newly exported constraints file and click OK.5.Notice the file reflects the I/O Port placement change you made earlier.You can open any ASCII file in the Text Editor. This is helpful for editing Tcl scripts and constraints files, and viewing reports. The Text Editor is context sensitive, and highlights keywords andcomments when displaying file types such as Verilog, VHDL, XDC, and Tcl.6.Select the Tcl Console tab at the bottom of the IDE, and enter the stop_gui command.The Vivado IDE closes, and you are returned to the Tcl prompt in the Tcl shell.Step 7: Implementing the Design1.Open the create_bft_kintex7_batch.tcl script, or bring the script window to the front.2.Individually copy and paste the Tcl commands in the script, in order from opt_design towrite_bitstream:opt_designplace_designphys_opt_designwrite_checkpoint -force $outputDir/post_placereport_timing_summary -file $outputDir/post_place_timing_summary.rptroute_designwrite_checkpoint -force $outputDir/post_routereport_timing_summary -file $outputDir/post_route_timing_summary.rptreport_timing -sort_by group -max_paths 100 -path_type summary –file \$outputDir/post_route_timing.rptreport_clock_utilization -file $outputDir/clock_util.rptreport_utilization -file $outputDir/post_route_util.rptreport_power -file $outputDir/post_route_power.rptreport_drc -file $outputDir/post_imp_drc.rptwrite_verilog -force $outputDir/bft_impl_netlist.vwrite_xdc -no_fixed_only -force $outputDir/bft_impl.xdcwrite_bitstream -force $outputDir/bft.bit3.Examine each command and notice the various messages produced as the commands are run.4.Close the text editor displaying the create_bft_kintex7_batch.tcl script.5.Examine the files created in the output directory./Vivado_Tutorial/Tutorial_Created_Data/bft_output/doc/0aad815a178884868762caaedd3383c4bb4cb489.html e a text editor to open the various report (*.rpt) files that were created.7.Open the bft_impl.xdc file.8.Validate that the design has been implemented with the I/O Port constraint that you modifiedearlier.Step 8: Opening a Design CheckpointThe Vivado IDE can open any saved design checkpoint. This snapshot of the design can be opened in the Vivado IDE or Tcl shell for synthesis, implementation, and analysis.1.Open the Vivado IDE again: start_guiThis loads the active design in-memory into the IDE.You will now load the implemented design checkpoint, closing the current in-memory design. 2.Open the implemented checkpoint.Use File > Open Checkpoint and browse to select the checkpoint file:/Vivado_Tutorial/Tutorial_Created_Data/bft_output/post_route.dcp3.If prompted, select Close Without Saving to close the current in-memory design.Now you can use the visualization and analysis capabilities of the IDE, working from a placed and routed design checkpoint. Step 9: Analyzing Implementation ResultsVivado has an extensive set of features to examine the design and device data from a number of perspectives. You can generate standard reports for power, timing, utilization, clocks, etc. With the Tcl API, the custom reporting capabilities in the Vivado tools are extensive.1.Click on the Device window tab to bring it front to the screen.2.Run the report_timing_summary command to analyze timing data.Tools > Timing > Report Timing Summary3.In the Report Timing Summary dialog, click OK to accept the default run options.Examine the information available in the Timing Summary window. Select the various categories from the tree on the left side of the Timing Summary window and examine the data displayed. 4.Now run the report_timing command to perform timing analysis Tools > Timing > Report Timing5.In the Report Timing dialog, click OK to accept the default run options.6.Collapse the bftClk tree in the Timing Checks – Setup window.7.Select the first path listed under the wbClk in the Setup area.8.Maximize or float the Path Properties window to look at the path details.Figure 7: Float the Path Properties Window9.Restore the Path Properties window by clicking the Restore button, or the Dock button, in thewindow banner.10.In the Timing – Report Timing window, right-click to open the popup menu and select theSchematic command to open a Schematic window for the selected path.Note: Alternatively, you can press the F4 function key to open the Schematic window.11.Double-click on a schematic object, such as on a cell, pin, or wire, to expand the schematicconnections and traverse the design hierarchy.12.Close the Schematic window, or click the Device window tab to bring it to the front.13.In the Device window, check to ensure that the Routing Resources button is enabled to displaythe detailed device routing.Notice the Device window displays and highlights the routing for the selected path.Figure 8: Displaying the Device Routing14.Select the Auto Fit Selection button in the Device window toolbar menu to enable the Vivado IDE to automatically zoom into selected objects.15.Select some additional paths from the Timing results window.16.Examine the routing for the selected paths in the Device window.17.Expand the Tools main menu and examine the available analysis features under the different sub-menus such as Timing and Report.18.Run some of the available analysis commands: Report Power, Report Clock Interaction, Report Clock Networks, Report Utilization, etc.Many of these Design Analysis features are covered in other Vivado tutorials.。

Vivado使用方法

Vivado使用方法

Vivado使用方法Vivado是一款全面的FPGA设计工具套件,主要用于ASIC、FPGA硬件设计和开发。

该工具套件提供了基于IP管理、综合、实现、建模等组件,同时还有用于调试和分析的工具。

Vivado支持一系列设计语言,包括Verilog、VHDL、SystemVerilog等。

这里介绍一下Vivado的使用方法,包括工程创建、IP核添加、约束文件添加、综合和实现。

一. 工程创建和添加文件在电脑上进入Vivado软件,然后选择“Create Project”,在弹出的窗口中设置工程的名字和路径等相关信息,选择创建工程。

在工程创建完成后,需要添加文件。

这些文件包括hdl文件、约束文件、仿真模型、模块文档等。

在Vivado中添加文件的方式如下:点击菜单栏“File → Add Sources”,选择要添加的文件类型对应的选项。

例如要添加一个Verilog文件,选择“Add or create design sources”,然后选择“Add Files...”,并选择相应的文件。

二. IP核添加Vivado提供了大量的IP核,可以帮助设计师快速构建基础电路。

可以通过以下步骤将IP核添加到工程中:点击菜单栏“Tools → Create and Package IP”,弹出“Create and Package New IP”对话框。

按照提示完成IP核的创建和封装,并选择“Add IP...”将IP核添加到工程中。

三. 约束文件添加在进行综合和实现之前,需要先添加一个约束文件。

这些约束文件用于描述设计中的时序和约束条件,并将这些信息传递给Vivado工具进行综合和实现。

四. 综合综合是将原理图转换成可编程逻辑单元的过程,通常用来验证设计中的逻辑功能。

在Vivado中进行综合,可以通过以下方法:点击菜单栏“Flow Navigator → Run Synthesis”选项卡,然后点击“Run Synthesis”按钮。

vivado synthesis implementation 流程

vivado synthesis implementation 流程

vivado synthesis implementation 流程Vivado是一款用于FPGA设计的综合与实现工具,它是由Xilinx公司开发的,提供了全面的设计和验证环境。

本文将分步介绍Vivado的综合与实现流程,以帮助读者更好地了解如何使用Vivado进行FPGA设计。

第一步:创建工程首先,在Vivado中创建一个新的工程。

选择“Create New Project”并填写工程名称、路径等信息。

然后,选择工程类型(例如RTL设计),以及目标设备(例如Xilinx的Artix-7系列)。

第二步:添加设计文件在创建工程后,需要添加设计文件。

这些文件包括RTL源代码文件、约束文件等。

通过选择“Add Sources”按钮,可以将设计文件添加到工程中。

第三步:约束与设置在添加设计文件后,需要为设计添加约束。

约束文件为Vivado提供了关于时钟、时序要求等重要信息。

通过选择“Add Constraints”按钮,可以添加约束文件。

此外,还可以进行一些设置,例如选择时钟频率、时序约束等。

第四步:运行综合在完成约束与设置后,可以运行综合工具对设计进行综合。

综合将RTL代码转换为门级网表,并进行一系列的优化以实现设计的功能。

第五步:查看综合报告在综合完成后,可以查看综合报告。

综合报告提供了关于设计资源使用情况、时序分析等重要信息。

通过查看综合报告,可以评估设计的性能、资源占用等情况。

第六步:运行实现在确认综合结果无误后,可以运行实现工具对设计进行实现。

实现工具将门级网表映射到目标FPGA设备的特定元件中,并进行布局和布线等过程。

第七步:查看实现报告在实现完成后,可以查看实现报告。

实现报告提供了关于布局、布线、时序分析等重要信息。

通过查看实现报告,可以评估设计的性能、资源占用等情况。

第八步:生成比特流文件在实现成功后,可以生成比特流文件。

比特流文件包含了设计在目标FPGA 设备中的配置信息。

这些信息将在FPGA启动时加载到其配置存储器中,以实现设计的功能。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

ቤተ መጻሕፍቲ ባይዱ 二、建立工程
添加模块设计后,在设计区域提示添加IP,点击“add IP”添加 IP或者点击工具栏图标添加
添加IP
二、建立工程
在IP搜索栏输入Ipcore的名称可以帮助我们快速找到需要添加的IPcore
二、建立工程
添加IP core后工具自动提示添加外设连线,可以根据工具提示自动完成模块之间 的连接。
1、使用xdc文件添加约束 2、使用vivado提供的约束工具添加约束
1、使用XDC文件添加约束
当所有功能模块的文件的代码编写完成后我们需要对我们的设计添加各种约束文 件,约束文件包括管教约束,时序约束和区域约束。添加约束文件可以通过直接 编写约束文件完成也可以利用vivado提供的添加窗口完成。
三、建立仿真环境
输入帮助命令后,vivado将在提示 栏给出详细的库文件编译命令和需要 编译的所有xilinx库文件名等信息。
我们可以根据需求进行库文件编译, 例如如下编译方式:
compile_simlib -directory C:/Xilinx_vivado/XLX_LIB_FOR_MO DELSIM/VIVADO_2014 -simulator modelsim -family zynq -family virtex7 -family kintex7 -family artix7 -library all -language all
为工程添加HDL代码,点击Add source添加hdl文件
二、建立工程
添加HDL文件时可以选择creat一个新的文件也可以add一个本地已经写好的 HDL代码
二、建立工程
Creat 一个新的模块,需要在对话框内添加模块名称,并且可以选择性的在 下面添加主要的端口名称和属性
二、建立工程
当模块化设计完成后,如果此模块仅 是一个工程中的子模块,我们需要将 模块化设计的模块creat出一个HDL 文件,然后添加到工程文件下面,并 在顶层中调用此模块
三、建立仿真环境
在对设计好的工程进行仿真的时候可以使用vivado自带的仿真工 具仿真也可以使用第三方仿真工具仿真。使用vivado自带仿真工具仿 真时只需要编写测试激励就可以直接利用vivado进行仿真。当使用 modelsim等第三方仿真工具仿真时,我们需要提前对xilinx的仿真库 进行编译。
二、建立工程
对外部的接口 和总线可以点 击模块总线接 后,拖动一下, 然后点击右键, 选择make external为总 线提供外部端 口,选择creat port为总线或 者单个信号线 添加外部接口。
二、建立工程
完成模块化设计后,点击validat design快捷工具图标对设计进行错误检查
二、建立工程
三、建立仿真环境
在完成库文件编译后,我们就可以对modelsim的配置文件根据库 文件编译的结果进行修改,将modelsim中配置文件增加xilinx库名称和 库文件路径。
在编译完成仿真库后,使用vivado调用modelsim的方式进行仿真, 需要在vivado软件中指定仿真工具和仿真库文件的路径。也可以自己 编写脚本利用脚本启动modelsim进行仿真。
在vivado中编译仿真库和ISE稍有不同,ISE提供的可视化的库文 件编译环境,而在vivado设计环境下,编译仿真库需要使用TCL脚本 进行编译。
三、建立仿真环境
在tcl命令窗口,我们 敲入help可以获得关于 vivado软件操作的帮助说 明。
此时我们先输入help, 然后在给出的帮助主题中 选择simulation主题继续查 找帮助。在simulation主题 下给出的帮助包括添加文 件,编译仿真库和配置编 译仿真文件等等多个帮助 主题,我们选择编译仿真 库主题。
三、建立仿真环境
Vivado调用modelsim仿真时,指定仿真工具所在的路 径
三、建立仿真环境
对仿真工具和仿真库文件路径进行设定
三、建立仿真环境
完成库文件编译和对vivado 的设置后,可以点run simulation并选择需要的仿 真方式对自己的设计代码进 行仿真验证
四、为工程添加约束
1、使用XDC文件添加约束
添加约束文件可以选择creat一个新的约束文件也可以选择添加原有约束文件
1、使用XDC文件添加约束
添加好文件后,可以打开文件进行编辑,进行时序约束、管脚约束和区域约束
2、使用软件约束工具添加约束
Vivado除为我们提供了添加约束文件的方法来 为工程添加约束外,还提供了窗口界面操作的 办法来提供约束,我们可以通过点击 implementation design下面的各个功能按钮来 添加约束。
Vivado使用方法
一、软件安装 二、建立工程 三、建立仿真环境 四、为工程添加约束 五、综合、布局布线和生成bit文件 六、debug
一、软件安装
一、软件安装
一、软件安装
一、软件安装
一、软件安装
二、建立工程
二、建立工程
二、建立工程
二、建立工程
二、建立工程
二、建立工程
添加一个模块设计
2、使用软件约束工具添加约束
1)添加时序约束
2、使用软件约束工具添加约束
1)添加时序约束
2、使用软件约束工具添加约束
2)添加管脚约束
2、使用软件约束工具添加约束
2)添加管脚约束
2、使用软件约束工具添加约束
3)添加区域约束
五、综合、布局布线和生成bit文件
当完成代码和必要的约束后,我 们就可以开始进行编译综合和实现了。 完成这些只需要按照vivado开发工具 提供的流程逐步进行即可。也可以通 过TCL脚本输入命令控制。
六、debug
在对程序进行debug时,vivado为我们提供了ILA工具,他和 ISE下的chipscope同样可以用JTAG的方式让我们看到芯片内部的 信号。他的启动方式和使用方法和chipscope略有不同。
ILA工具允许我们在代码中标注debug时观测的信号,在代码 中声明为”DEBUG”,即使没有连接到其他模块,也不会被优化掉。 这样方便我们添加和找到需要观察的信号。
ILA也可以和chipscope一样在完成综合后,查找信号并添加 到ILA中。
除此之外ILA可以允许添加多个采样时钟,对不同组观测信号 一起在vivado下编译。这样可以提高debug时的工作效率。
相关文档
最新文档