This is an old revision of the document!


Installing 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软件平台。在此之后和之前,安装程序之间的安装程序略有不同。看一下Installing Vivado, Vitis, and Digilent Board Filesguide instead if you want to install version 2019.2 or newer.


先决条件

  • 20+GB免费的硬驱动空间。

Guide

1. Install Vivado

1.1

OpenXilinx的下载页面in 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.

1.2

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 ./< installer> bin

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

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

1.3

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

1.4

使用与Xilinx网站上相同的凭据进行用户身份验证。选择下载并立即安装option and click下一个.

1.5

Read andacceptall three license agreements, then click下一个.

1.6

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 click下一个.

1.7

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 click下一个.

  • 设计工具:
    • Vivado Design Suite:
      • Installs the main Vivado development environment.
    • 软件Development Kit:
      • Installs an Eclipse-based development environment for Microblaze and Zynq designs.
    • DocNav:
      • 安装导航工具,以快速查找IP和示例的适当Xilinx文档。
  • 设备:
    • 允许自定义安装后可以设计的Xilinx FPGA零件集。
  • 安装选项:
    • 安装电缆驱动程序:
      • 安装适当的驱动程序,以便可以对连接的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.

笔记:通过到完成后,可以对安装进行更改
Help → Add Design Tools or Devices在Vivado工具栏中。

1.8

“选择目标目录”屏幕显示了将安装放置在计算机文件系统中的方式和何处。将所有这些设置作为默认设置通常很好。点击下一个接着Yesif prompted to confirm that the installer will be creating a new directory.

1.9

Review the “Installation Summary”, then clickInstall.

1.10

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

1.11

Vivado现在已成功安装!如果在步骤1.7中检查了“获取或管理许可密钥”框,则Vivado许可证经理将启动。大多数用户将不需要使用Vivado的许可证,因此许可证经理可以是closed.

2.在Linux上安装电缆驱动程序

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

2.1

Vivado安装程序不安装在Linux系统上识别FPGA所需的USB驱动程序,无论是否检查了该选项。为了安装这些驱动程序,请导航到/data/xicom/cable_drivers/lin64/install_script/install_drivers/”控制台窗口中的目录。这directory is typically the“/opt/xilinx/vivado/*/”目录 - 代表Vivado版本号(2018.2)的“*”。从此目录中,运行“ ./install_drivers”作为超级用户的命令。此命令成功完成后,将安装所需的驱动程序。

笔记:一些较旧的Vivado版本可能要求在使用前从焦油文件中提取install_drivers命令。

2.2

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

3.安装Digilent板文件

3.1

下载拉链档案Digilent的“ Vivado板” GitHub存储库中,并将其提取到令人难忘的位置。

3.2

Find the file “Vivado_init.tcl” in the “utility” subdirectory of the vivado-boards repo.复制粘贴it into the“%APPDATA%/Xilinx/Vivado/”directory for Windows or“$HOME/.Xilinx/Vivado/”(作为超级用户身份验证后)在Linux中。该文件是一个脚本,每当启动Vivado时都会运行。它将加载Digilent的木板文件,供其从其提取到的目录中在Vivado中使用。

笔记:这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.

3.3

在文本编辑器中打开复制的初始脚本。更改文字“ <提取路径>”in the script to the path to the extracted vivado-boards folder.节省closethe file.

In Conclusion

借助Vivado和Digilent的董事会文件,您可以开始开发FPGA项目!要开始学习如何使用Vivado,请查看以下一个教程: