Guide For Installing Vivado
Guide For Installing Vivado
1
GUIDE FOR INSTALLING VIVADO
GETTING STARTED WITH VIVADO AND ARTY-Z7 BOARD
Author
Computer Engineering Lab
- Faculty of Computer Science and Engineering, HCMUT.
Revision History
TABLE OF CONTENTS
I. INTRODUCTION.............................................................................2
II. INSTALLATION.............................................................................. 2
1. Preparation..................................................................................................2
2. Installing on Windows..................................................................................4
3. Installing on Linux-based system.................................................................9
4. Installing Board Files for Arty-Z7................................................................10
III. GETTING STARTED WITH VIVADO AND ARTY-Z7............................12
1. Preparation................................................................................................12
2. Create a Vivado project.............................................................................12
3. Example Project.........................................................................................17
4. Generate bitstream and configure FPGA....................................................20
5. Simulation..................................................................................................23
1
QG0004 – Guide for Installing Vivado
I. INTRODUCTION
This document will show the process of installing and configuring the Xilinx Vivado
software to develop logic circuit on Arty-Z7 board in the subject Logic Design with HDL.
This guide is based on Vivado 2018.2 version, but other versions are similar. Students can
also install another version to study in the subject.
II. INSTALLATION
There are some useful online references at:
1. https://digilent.com/reference/programmable-logic/guides/installing-vivado-and-sdk
2. https://digilent.com/reference/vivado/getting-started-with-ipi/2018.2
1. Preparation
Dowload the installation file on Xilinx’s website.
2
QG0004 – Guide for Installing Vivado
- We need an Xilinx account to download softwares. Click on the user icon at the top-right
corner, select Login | Register.
- Click Create Account and follow the register process to acquire an Xilinx account.
- At Vivado Design Suite - HLx Editions - 2018.2 Full Product Installation, you can chose
the Installer which is appropriate with your operating system (In this guide, we use the Web
Installer). At this step, you are required to log in and fill some information to dowload.
3
QG0004 – Guide for Installing Vivado
2. Installing on Windows
- Open the installer. You may be asked for getting a newer verion, just click Continue.
- You should satisfy the system requirement noticed by the installer. Click Next.
4
QG0004 – Guide for Installing Vivado
- Fill your Xilinx account information, select Download and Install Now, then click Next.
5
QG0004 – Guide for Installing Vivado
- Customize the installation: you can deselect unneeded devices and options as Figure 8
for smaller download.
MUST select Install Calble Drivers to program FPGAs via USB cable.
Click Next.
6
QG0004 – Guide for Installing Vivado
- Select the installation folder. The Installer may ask to create a directory, click Yes. Cick
Next.
Note: Installation folder MUST NOT have space and special characters.
7
QG0004 – Guide for Installing Vivado
- Wait for downloading and installing. Windows may ask for install decvice software at the
end of installation to install cable driver, click Install.
8
QG0004 – Guide for Installing Vivado
- After installation completed, a notification window will appear, click OK. And a Vivado
License Manager window will pop-up, just close it.
The installation process is the same as on Windows. But we have to install the cable driver
manually.
<installation_path>/data/xicom/cable_drivers/lin64/install_script/install_drivers/
9
QG0004 – Guide for Installing Vivado
For example:
/opt/Xilinx/Vivado/2018.2/data/xicom/cable_drivers/lin64/install_script/install_drivers/
./install_drivers
- In order to use the USB drivers with a serial terminal, each user that will be using serial
terminals must be added to the dialout group. Run command:
- If you familiar with using git, you can clone the repository or you just dowload the .zip file
that compressed the sources by click on Code > Download ZIP.
10
QG0004 – Guide for Installing Vivado
- Extract the zip file, we have many of board files and the Arty-Z7 one is in the folder
vivado-board/new/board_files/arty-z7-20
<installation_path>/data/boards/board_files
11
QG0004 – Guide for Installing Vivado
You also can copy other board files folders to add them to Vivado.
Note: When installing Vivado versions 2014.4 or older, use the files found in
'old/board_files' instead.
- Open Vivado.
12
QG0004 – Guide for Installing Vivado
Note: This will create many files on the standing directory, you should create a
directory for Vivado projects and run above commands on that directory.
- Click Create Project. A New Project wizard window will appear, click Next.
13
QG0004 – Guide for Installing Vivado
- Type the project name and browse to the project location. Click Next.
Note: Location should be the common Vivado projects folder and you should tick on
the option Create project subdirectory.
14
QG0004 – Guide for Installing Vivado
- Add Source: You can add created source code (if any) or just skip this step by click Next.
- Add Constraint: You can add the downloaded constraint file at this step or just skip it by
click Next.
Note: You should tick on Copy constraint files into project to modified it without
losing the original contents.
+ Click Next
15
QG0004 – Guide for Installing Vivado
16
QG0004 – Guide for Installing Vivado
3. Example Project
+ At Project Manager, Sources board, click on the + symbol or select File > Add
Sources…
+ Click Next.
+ Click Finish.
17
QG0004 – Guide for Installing Vivado
- The created file is shown in Sources Hierarchy > Design Sources. Double click to open it.
18
QG0004 – Guide for Installing Vivado
- Edit the source as below, then save by click on the Save icon on editor window or Ctr+S:
module top_example(
input [3:0] in,
output [3:0] out
);
endmodule
Figure 26: Arty-Z7 constraint file with LEDs and Buttons assignment lines uncommented
+ Modify the port assignments to be the same as our module input/output port’s
names. Or you can name the ports of the module follow the port name in the constraint
file. Remember to save the file.
## LEDs
set_property -dict { PACKAGE_PIN R14 IOSTANDARD LVCMOS33 } [get_ports { out[0] }]; #IO_L6N_T0_VREF_34 Sch=LED0
set_property -dict { PACKAGE_PIN P14 IOSTANDARD LVCMOS33 } [get_ports { out[1] }]; #IO_L6P_T0_34 Sch=LED1
set_property -dict { PACKAGE_PIN N16 IOSTANDARD LVCMOS33 } [get_ports { out[2] }]; #IO_L21N_T3_DQS_AD14N_35 Sch=LED2
set_property -dict { PACKAGE_PIN M14 IOSTANDARD LVCMOS33 } [get_ports { out[3] }]; #IO_L23P_T3_35 Sch=LED3
## Buttons
set_property -dict { PACKAGE_PIN D19 IOSTANDARD LVCMOS33 } [get_ports { in[0] }]; #IO_L4P_T0_35 Sch=BTN0
set_property -dict { PACKAGE_PIN D20 IOSTANDARD LVCMOS33 } [get_ports { in[1] }]; #IO_L4N_T0_35 Sch=BTN1
set_property -dict { PACKAGE_PIN L20 IOSTANDARD LVCMOS33 } [get_ports { in[2] }]; #IO_L9N_T1_DQS_AD3N_35 Sch=BTN2
set_property -dict { PACKAGE_PIN L19 IOSTANDARD LVCMOS33 } [get_ports { in[3] }]; #IO_L9P_T1_DQS_AD3P_35 Sch=BTN3
19
QG0004 – Guide for Installing Vivado
- Select the Number of jobs to the maximum of your computer’s available cores/threads to
save running time. Click OK.
- Wait for the Design Runs complete. A window will show when the process completed,
just close it or select Open Hardware Manager > OK to configure the FPGA.
20
QG0004 – Guide for Installing Vivado
The Open Hardware Manager button is also under the Generate Bitstream button.
Note: Make sure that all jumpers are the same as Figure 29.
21
QG0004 – Guide for Installing Vivado
- The process is done. Check the buttons and leds on the board then investigate the
behavior.
- A summary report is generated in PROJECT MANAGER > Project Summay. Read the
report the see how many resources on the FPGA are used. Also check the timing and
power summary.
22
QG0004 – Guide for Installing Vivado
5. Simulation
- Create a source code file:
+ At Project Manager, Sources board, click on the + symbol or select File > Add
Sources…
+ Click Next.
+ Click Finish.
module top_example_tb;
23
QG0004 – Guide for Installing Vivado
end
endmodule
- Set top simulation: Right click on the created testbench file, select Set as Top.
- The waveform is in tab Untitle 1, click to see it. Use Zoom tools to scale the waveform.
Try to expand the signals, change a signal display radix by right click on it and change the
Radix. Let’s discover other functions in simulation window yourself.
End of document.
24