In this video, we are going to test our lab environment to get ready for experiencing HLS-design 1
techniques in the rest of the course. 2
To test our lab environment, we should test the Xilinx Vivado-HLS and Vivado software tools as 3
well as the Basys-3 evaluation board. 4
Let’s first test the Vivado-HLS. Run the software by double-clicking on its icon. If you are using 5
Linux OS, you can use 6
the vivado-hls command. For this purpose, 7
you should add the required Linux environment variables by running the following command in a shell. 8
Source Xilinx insolation pop slash, although it slashed 2000 nineteen point two, its life setting 9
source /Vivado/2019.2/settings64.sh then to start the vivado-hls IDE just run the vivado_hls command inside the same 10
shell. 11
Then create a new project by clicking on the “Create New Project” icon or clicking on File->New Project 12
option from the menu. Choose basic_output_vhls as the project name. 13
You can change the destination folder if you wish and click Next. 14
Then choose basic_output as the top-function name and click next twice. In the “Solution Configuration” window, 15
click on the ellipsis icon to select the target FPGA. 16
Click on the board and select the digilent from the vendor list. 17
Now you should see the Basys3 board in the list below. 18
If you cannot see the board name, then you haven’t properly copied the board definition file explained 19
in the previous video. 20
Choose the basys3 board press OK and then Finish buttons. 21
Now we should add the basic_output.cpp source file to the project. 22
You can find this file in the resources attached to this video. 23
Download the file in your computer. 24
Right-click on the source folder and select “Add files…” the find the basic_output.cpp file on your 25
computer and click on the Open button. Now you can synthesis the design by clicking on the synthesis button 26
on the toolbar. 27
You should get the synthesis report and the “Finished Synthesis” message in the console 28
view. 29
Then you can export the RTL design as a hardware IP by clicking on the proper button on the toolbar. 30
You should see the “Finished Export RTL” message in the console view. This completes the Vivado-HLS test process. 31
Now, let’s test our Basys3 board. 32
Firstly, we test the board using its default bitstream. Connect the board to the computer using a Micro-USB 33
cable. 34
Make sure that the JP1 jumper is on QSPI programming mode as shown here. 35
Then, turn on the board using the board power switch. 36
The board should be configured by QSPI to the default test program provided by Digilent. 37
You should see a 0-9 counter on seven segments. 38
Secondly, to make sure that the computer detects the board and can program it, 39
I am going to program the board using a bitstream file. For this purpose, turn off the board, change 40
the programming mode to JTAG using the JP1 jumper and then turn the board on again as shown here. 41
To program the board by a bitstream file, run the vivado by clicking on its icon. If you are using the 42
Linux OS, then you can start the Vivado by running 43
the vivado command. 44
But before that, make sure you have run the setting64.sh script file. 45
It is a good practice to run this script by the .bashrc file. For this purpose, 46
open the .bashrc file using a text editor such as gedit and add this source command, which I explained 47
earlier, at the end of the file. Save the file and close the editor. Now open a new terminal and run the 48
vivado command. The Viviado IDE should be opened. 49
Create a New Project by clicking on the “Create Project” link Enter the basic_outout_vivado as the project name. 50
Create a New Project by clicking on the “Create Project” link Enter the basic_outout_vivado as the project name. 51
In the default part, select board and choose the Digilent from the vendor list. You should see 52
the Basys3 board on the list. 53
Select that and click next and then finish buttons. 54
Download the basic_output.bit file from the Resources attached to this video on your 55
computer. 56
Then click on Open Hardware Manager on the left-hand side pane in Vivado. 57
Then click on the Open target link and select the “Auto connect” option 58
Click on the “Program device” Then click on the ellipsis button beside the Bitstream file. Find basic_output.bit file on your computer. 59
Click on the “Program device” Then click on the ellipsis button beside the Bitstream file. Find basic_output.bit file on your computer. 60
Click on the “Program device” Then click on the ellipsis button beside the Bitstream file. Find basic_output.bit file on your computer. 61
Then program the board. You should see four LEDs illuminating on the board. 62
This video is the last lecture in Part 1. I will explain how to design combinational circuits in 63
Part 2, starting from the following lecture.