0
1
00:00:00,920 --> 00:00:07,340
After translating our simple combinational circuit design in HLS into the equivalent hardware IP, we should 
1

2
00:00:07,340 --> 00:00:10,490
generate the FPGA bitstream and program the basys3 board.
2

3
00:00:12,730 --> 00:00:19,090
For this purpose, run the Xilinx Vivado Suite software.
Create a new project and name its 
3

4
00:00:19,090 --> 00:00:25,000
simple_combinational_circuit-vivado. Also, choose the Basys3 board as the 
4

5
00:00:25,000 --> 00:00:25,900
target FPGA.
5

6
00:00:32,240 --> 00:00:36,590
Now, Click on the Create Block Design link and accept the default design name.
6

7
00:00:37,570 --> 00:00:42,940
Right-click somewhere inside the design area and select IP setting option from the drop-down menu. 
7

8
00:00:44,190 --> 00:00:50,100
Then select the repository option and click on the plus sign. Choose the Viviado-HLS project folder
8

9
00:00:50,250 --> 00:00:52,820
created in the previous lecture and press, OK.
9

10
00:00:55,430 --> 00:01:01,640
Then right-click anywhere inside the design area and select Add IP. On the search area, write 
10

11
00:01:01,670 --> 00:01:07,060
simple_combinational_circuit and add the IP to the design area.
11

12
00:01:09,620 --> 00:01:15,800
Now select the design ports. You can do that by holding the Ctrl key while clicking on the ports. 
12

13
00:01:17,740 --> 00:01:21,340
Then press the right-click and choose the Make External option. 
13

14
00:01:23,230 --> 00:01:27,100
You can also change the ports’ names to make them more convenient. 
14

15
00:01:38,020 --> 00:01:43,600
Now, we should connect the design ports to some pins on the FPGA. This can be done by adding a few
15

16
00:01:43,600 --> 00:01:44,380
constraints.
16

17
00:01:46,060 --> 00:01:51,880
For this purpose, go to the Source view and right-click on the Constraints folder and then select the
17

18
00:01:51,880 --> 00:01:53,050
Add Sources option.
18

19
00:01:54,890 --> 00:02:01,880
Make sure in the Add Source dialog box, the Add or create constraints is selected. Then in the add or 
19

20
00:02:01,880 --> 00:02:06,880
create constraints, click on Create File and choose the simple_combinational_circuit 
20

21
00:02:06,950 --> 00:02:09,080
as the file name.
21

22
00:02:10,930 --> 00:02:14,830
Now we can copy the Basys3 board constraints provided by its vendor. 
22

23
00:02:15,740 --> 00:02:18,530
Then uncomment and modify the required constraints. 
23

24
00:02:19,670 --> 00:02:27,290
We need three switches to provide binary values for our design inputs, and one LED to show the design output.
24

25
00:02:53,610 --> 00:02:56,130
Now we are almost ready for bitstream generation.
25

26
00:02:57,600 --> 00:03:02,820
But before that, right-click on the design option in the Source view and run the Generate Output
26

27
00:03:02,820 --> 00:03:03,720
products option.
27

28
00:03:14,570 --> 00:03:19,730
After that, right-click again on the design option in the Source view and choose the Create HDL
28

29
00:03:19,730 --> 00:03:20,540
Wrapper… option.
29

30
00:03:21,170 --> 00:03:23,080
Now we are ready to generate the bitstream.
30

31
00:04:29,230 --> 00:04:35,340
After generating the bitstream, we can connect the board to our computer and reconfigure the FPGA 
31

32
00:04:35,530 --> 00:04:36,660
and examine the design.
32

33
00:05:21,330 --> 00:05:27,660
Up to now, we managed to design a simple combinational circuit and run that on the target FPGA. In 
33

34
00:05:27,660 --> 00:05:32,300
our HLS design description, the C/C++ functions play important roles.
34

35
00:05:32,970 --> 00:05:37,950
The next section explains the structure of functions in a design description and their relationship 
35

36
00:05:38,160 --> 00:05:40,620
with the structure of the generated hardware module. 
36

37
00:05:42,790 --> 00:05:48,970
These are our takeaway messages. As well as the design RTL-IP, we should add the design physical constraints 
37

38
00:05:49,090 --> 00:05:55,450
to the Vivado project. To program the FPGA board, Connect the board to the computer, Turn on 
38

39
00:05:55,450 --> 00:05:58,150
the board, Use the Vivado IDE to program the board.
39

40
00:06:00,570 --> 00:06:06,810
Now the quiz question. Use the design RTL IP generated in the previous lecture quiz question and 
40

41
00:06:06,810 --> 00:06:09,470
program the Basys3 board and explore the design.
