Vivado Install and Tutorial
Vivado Install and Tutorial
1 Goal
This tutorial explains how to install and use Vivado Design Suite to develop and simulate Verilog model
codes.
1
2.2 Installing the Vivado Design Suite Tools
This section explains the installation process for all platforms for the Vivado Design Suite. Couple points
before extracting and installing the tools. Make sure your machine can support this toolchain. Also,
make sure that you have enough space on your system for this tool. It might take up to few Gigabytes.
Now, let’s start the installer you have downloaded in the previous step. After you click on your installer
it will extract the tool and prepare it for installation.
Click Next.
A window will pop up asking about your installation type and your Xilinx account. You can use the
account you’ve made at the beginning on the Xilinx website. Select the download and install now option.
2
Click Next.
3
2.3 License and edition Selection
In this step, you would select which edition of the Vivado tool you want to install. Choose Vivado ML
Standard. Click Next.
Only check needed tools shown above (Vivado design suite, DocNav, 7 Series). Click Next.
4
Check ”I Agree” boxes. Click Next.
5
Click Install.
6
3 Using The Vivado Design Suite
Run Vivado by double-clicking the Vivado icon on your desktop. Your initial screen will be like this:
7
Every new project needs a name, an address (location on your computer), and a collection of design
source codes. This new window asks you to choose a name for your project, and specify the directory
that you want to save your project in.
Click Next.
This new window asks you to determine the type of your project. You can define different types of
projects in Vivado.
8
• RTL Project - RTL to Hardware Validation
– Import RTL and IP to process design all the way to hardware
– Standalone IP - Create reusable preconfigured IP module
– Device exploration – Empty project to examine device resources
• Post-synthesis Project – Netlist to Hardware Validation
– Third Party synthesis
• I/O Planning Project – Early I/O Exploration and Assignment
– Create I/O port manually or import CSV, RTL, or XDC
– Can migrate to RTL Project
• Imported Project - Migrate Project from Synplify, XST, or ISE Project
– Imports sources and compilation order
– No synthesis or implementation result imported
– No tool setting migrated
• Example project
– Using Vivado examples
Select RTL Project option in the Project Type form, and click Next.
Click Next.
9
Hit finish button in new project summary window. This will create a project and give you the main
Vivado tool homepage.
10
3.2 Vivado Homepage
There are different parts here: flow navigator, sources, design summary, and design runs console.
Use flow navigator to create your block design, Add sources, and run a Simulation. The project summary
will give you the status of your project.
In the source window, you can manage your design sources and check the hierarchy.
In the next window you can add files you already have or you can choose to create a new file.
To add a file select Add Files, choose decoder 2to4.v, and click OK.
11
Hear we are going to create a new file. Click create file, find Verilog from file type menu, and choose a
name for your module. Click Ok and Finish.
This new window will ask you to define I/O ports for your module.
To design a 2:4 decoder we need 2 bits for input (I named it here as (dec in), and 4 bits outputs(dec out).
For every port you define:
• A name,
• The Direction of that port (if it is input port or output),
• The number of bits you need for that port (if this number is more than 1 check the bus box),
• order of bits in that port (which bit is the Most Significant Bit and which one is the Least Significant
Bit)
you also have this option to not define any port here and write down everything later in your code.
Click OK.
12
Now you can see your new source file (decoder 2to4) under design sources in the Sources window.
Double click on the decoder 2to4 to open it in a new window. Then we are going to write our code.
Note: A decoder has N inputs and 2N outputs. It asserts exactly one of its outputs depending on the
input combination. You can see the block diagram and truth table for a 2:4 decoder here.
13
3.4 Write the Code for your Design
Now we are going to write the code for our decoder. If you have a syntax error in this part. The line
which contains error will be underlined by red color. Make sure to correct all of them.
Your code should look like this. Save your code.
3.5 Simulation
To simulate your design, click on the simulation button in flow navigator window. Choose Run simula-
tion, run behavioral simulation. After successful simulation, the simulation window opens.
14
You can check your design function through this window. And if it is necessary, go back to your design
code and change it.
In the Object window right click on dec in and select ”Force Constant ...”. choose a value for the input
(dec in has 2 bits so you can choose 0,1,2, or 3), and set the starting and cancellation points. Click OK.
15
16