安装ing Vivado, Xilinx SDK, and Digilent Board Files

介绍

This guide will show the process of installing and configuring the Vivado development environment, used for developing projects to run on Digilent FPGAs. In addition to the installation, Vivado will be pointed at Digilent's board support files, which are used to make the process of creating a new project significantly faster. In addition, the board files make it significantly easier to add a variety of peripherals (such as DDR memory) to a project. Xilinx SDK, used for developing C/C++ projects that target your hardware designs created in Vivado, will be installed as part of this process.

重要的:随着Vivado 2019.2的发布,Xilinx推出了Vitis Unified软件平台。在此之后和之前,安装程序之间的安装程序略有不同。看一下安装ing Vivado, Vitis, and Digilent Board Filesguide instead if you want to install version 2019.2 or newer.


Prerequisites

  • 40+GBof free hard-drive space. The actual number varies depending on the specific tools and device support installed.

Guide

1. Install Vivado

Note:While the screenshots for this guide were taken for Vivado 2017.4, the installation process has not substantially changed in newer versions (through to 2019.1, at time of writing).

OpenXilinx's Downloads pagein a new tab. Open the “Vivado Archive”, and navigate to the version you want to install. Find the section of the page entitled “Vivado Design Suite - HLx Editions - (version number) Full Product Installation”. Select the “Self Extracting Web Installer” download for the appropriate operating system. Follow the prompts to sign in or create an account for Xilinx's website. Once signed in, the internet browser will download the selected installer.

重要的:Digilent提供的示例项目针对Vivado的特定版本,并且将它们移植到其他版本可能很困难或不可能。选择版本时要注意。


To launch the installer, choose the dropdown for the appropriate operating system, and follow the instructions:

视窗

使用Windows资源管理器找到安装程序executable in the Downloads directory. Double click on the executable to run it.

Linux

导航到在终端应用程序中下载安装程序二进制文件的目录,然后使用正确的文件名输入以下命令,以将其作为超级用户执行:

chmod +x .bin && sudo ./.bin

Note:All use of Vivado in Linux should be done as a super-user.

The rest of the steps in Section 1 are the same for both Windows and Linux.


在欢迎屏幕上,请确保在兼容性列表中列出了所使用的计算机的操作系统,然后单击Next.


Use the same credentials as on the Xilinx website for user authentication. Select theDownload and Install Nowoption and clickNext.


Read andacceptall three license agreements, then clickNext.


On the “Select Edition to Install” screen, several options are presented. Vivado WebPACK Edition is fully free, but will not work when developing for Digilent FPGAs that use a Kintex-7 or Virtex-7 part. Vivado Design Edition can be used without a license, and is the edition recommended by Digilent. A license is required to use Vivado System Edition. This guide does not cover the acquisition and management of licenses. Select the most appropriate edition for the situation, then clickNext.


This screen provides more detailed options for the customization of the installation. The majority of these options do not need to be changed for a basic installation, but unnecessary features can be removed to reduce the installation's footprint on the file-system - for example, most users will not need their Vivado installation to support Ultrascale, Kintex, or Virtex devices. The important options for a beginner to note here are described in the list below. Review the selections, then clickNext.

  • Design Tools:
    • Vivado Design Suite:
      • 安装s the main Vivado development environment.
    • 软件Development Kit:
      • 安装s an Eclipse-based development environment for Microblaze and Zynq designs.
    • DocNav:
      • 安装s a navigation tool to quickly find appropriate Xilinx documentation of IP and examples.
  • Devices:
    • Allows customization of the set of Xilinx FPGA parts that can be designed for after installation.
  • 安装ation Options:
    • 安装电缆驱动程序:
      • 安装适当的驱动程序,以便可以对连接的FPGA进行编程。如果之前没有安装Vivado,请确保检查此问题!
    • Acquire or Manage a License Key:
      • Launches the Xilinx License manager after installation is complete.Most users do not need to manage licenses.

Note:Changes can be made to the installation after it is complete by selecting Add Design Tools or Devices under the Help menu in the Vivado toolbar.


The “Select Destination Directory” screen shows how and where the installation will be placed in the computer's file system. Leaving all of these settings as default is typically fine. ClickNext和thenYesif prompted to confirm that the installer will be creating a new directory.


Review the “Installation Summary”, then click安装.


The installation process will take quite a while, potentially more than an hour. Find something else to work on until it completes.


Vivado is now successfully installed! If the “Acquire or Manage a License Key” box was checked in Step 1.7, the Vivado License Manager will launch. The majority of users will not need a license to use Vivado, so the License Manager can just beclosed.


2. Installing Cable Drivers on Linux

视窗users may skip this section and continue on to步骤3.

The Vivado installer does not install the USB drivers required to recognize an FPGA on a Linux system, regardless of whether the option was checked or not. In order to install these drivers, navigate to the Vivado installation'sdata/xicom/cable_drivers/lin64/install_script/install_drivers/directory in a console window. The Vivado installation directory is typically the/opt/Xilinx/Vivado/*/directory - the “*” representing the Vivado version number (2018.2, for example). From within this directory, run the./install_drivers作为超级用户的命令。此命令成功完成后,将安装所需的驱动程序。

Note:Some older versions of Vivado may require that the install_drivers command be extracted from a TAR file before use.


为了将USB驱动程序与串行终端一起使用,必须将使用串行终端的每个用户添加到拨号组中。串行终端对于调试实现USB-UART控制器的FPGA设计非常有用。可以将用户添加到拨号组中sudo adduser $USER dialout命令。请注意,这仅添加当前活动的用户。为了在身份验证为root时添加非super用户,请使用命令adduser 拨号相反,用“ ”替换为要添加的用户名称。


3.安装Digilent板文件

Digilent提供board filesfor each FPGA development board. These files make it easy to select the correct part when creating a new project and allow for automated configuration of several complicated components (including the Zynq Processing System and Memory Interface Generator) used in many designs.

The board files will be copied into your version of Vivado's installation directory. At the end of this section, an alternate method of installation is presented, which users familiar with git may find more convenient.


下载最新的Master Branch ZIP Archiveof Digilent'svivado-boardsGithub repository and extract it.


Open the folder extracted from the archive and navigate to itsnew/board_filesfolder. You will be copying all of this folder's subfolders.

Note:When installing Vivado versions 2014.4 or older, use the files found in 'old/board_files' instead.


Open the folder that Vivado was installed into -C:/Xilinx/Vivado或者/opt/Xilinx/Vivadoby default. Under this folder, navigate to its<版本> /数据/板/ board_filesdirectory. If this folder doesn't exist, create it.

复制all of the folders found in vivado-boards'new/board_filesfolder, thenpastethem into this folder.


Appendix: Installing the Board Files via the "vivado-boards" Github Repository
You might want to use this method instead if you are familiar with git and want to have a clean way of pulling in the latest changes to the board files, without needing to manually copy-paste the files into every newly-installed version.

Download theZIP archiveof the Digilent's “vivado-boards” Github repository and extract it into a memorable location where it can stay. Alternatively, you can use git and a command prompt to clone the repository into the current working directory with the commandgit clonehttps://github.com/Digilent/vivado-boards.


Find the file “Vivado_init.tcl” in the “utility” subdirectory of the vivado-boards repo.复制pasteit into the%APPDATA%/Xilinx/Vivado/directory for Windows or$HOME/.Xilinx/Vivado/(after authenticating as superuser) in Linux. This file is a script that will be run whenever Vivado is launched. It will load Digilent's board files for use in Vivado from the directory they were extracted into.

Note:You can also find the path to this directory by launching Vivado and, before changing directory, running thepwdcommand in the Tcl Console.

Note:The script init.tcl should be used instead of Vivado_init.tcl for Vivado versions 2016.4 and older. If multiple versions of Vivado from before and after 2016.4 are installed, both scripts should used.


Open the copied init script in a text editor. Change the textin the script to the path to the extracted vivado-boards folder.节省closethe file.

该脚本将板设置为板。对路径的参数为固定路径。每当启动任何版本的Vivado版本时,该脚本都会运行,并且该版本的Vivado的参数将在您完成会话后仍保持设置。这意味着,通过安装脚本,您将为您使用的每个Vivado版本设置板文件存储库,即使将来可能会删除脚本后,更改仍将保留。您随时可以用命令清除参数set_param board.repoPaths “”, again, this persists between sessions.


In Conclusion

With Vivado, Xilinx SDK, and Digilent's board files installed, you are ready to start developing FPGA projects! To start learning how to use Vivado, check out one of the tutorials below: