File tree 27 files changed +125
-52
lines changed
vitis_hls_test_prj_template_v1
vitis_hls_test_prj_template_v2
27 files changed +125
-52
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # ------------------------------------------------------------------------------
2
+ # .gitignore for Vitis HLS projects
3
+ # published as part of https://github.com/pConst/basic_verilog
4
+ # Konstantin Pavlov, [email protected]
5
+ # ------------------------------------------------------------------------------
6
+
7
+ # INFO ------------------------------------------------------------------------
8
+ # rename the file to ".gitignore" and place into your HLS project directory
9
+ #
10
+
11
+ /prj
12
+
13
+ vitis_hls.log
14
+
Original file line number Diff line number Diff line change 4
4
# ------------------------------------------------------------------------------
5
5
6
6
# Create a project
7
- open_project proj -reset
8
- add_files hls_operator.cpp
9
- add_files -tb hls_operator_tb.cpp
7
+ open_project prj -reset
8
+ add_files src/ hls_operator.cpp
9
+ add_files -tb src/ hls_operator_tb.cpp
10
10
set_top hls_operator
11
11
12
12
# Create a solution
Original file line number Diff line number Diff line change
1
+ // ------------------------------------------------------------------------------
2
+ // published as part of https://github.com/pConst/basic_verilog
3
+ // Konstantin Pavlov, [email protected]
4
+ // ------------------------------------------------------------------------------
5
+
6
+ #include " ap_int.h"
7
+ #include " hls_stream.h"
8
+
9
+ void hls_operator (
10
+ hls::stream<int > &a,
11
+ hls::stream<int > &b,
12
+ hls::stream<int > &c,
13
+ hls::stream<int > &d
14
+ ){
15
+
16
+ #pragma HLS DATAFLOW disable_start_propagation
17
+ #pragma HLS INTERFACE mode=ap_ctrl_none port=return
18
+
19
+ #pragma HLS INTERFACE port=a ap_fifo
20
+ #pragma HLS INTERFACE port=b axis
21
+ #pragma HLS INTERFACE port=c ap_fifo
22
+ #pragma HLS INTERFACE port=d axis
23
+
24
+ c.write ( a.read () + b.read () );
25
+ d.write ( a.read () - b.read () );
26
+ }
27
+
File renamed without changes.
Original file line number Diff line number Diff line change 7
7
# Script to clean Vitis HLS project
8
8
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
9
9
10
- rm -rf proj
10
+ rm -rf prj
11
11
12
12
rm vitis_hls.log
13
13
Original file line number Diff line number Diff line change 8
8
# Script to perform HLS component co-simulation
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
Original file line number Diff line number Diff line change 8
8
# Script to perform HLS component simulation
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # ------------------------------------------------------------------------------
3
+ # published as part of https://github.com/pConst/basic_verilog
4
+ # Konstantin Pavlov, [email protected]
5
+ # ------------------------------------------------------------------------------
6
+
7
+ # Script to initialize HLS project solution and make CSYNTH compilation step
8
+ # see ../example_projects/vitis_hls_prj_template_v1/ for complete example
9
+
10
+
11
+
12
+ rm -rf ./prj/sol1/syn
13
+ rm -rf ./prj/sol1/impl
14
+
15
+ vitis_hls -f run_hls.tcl
16
+
17
+ # open top Verilog
18
+ subl ./prj/sol1/syn/verilog/hls_operator.v
19
+
20
+ # open main report
21
+ subl ./prj/sol1/syn/report/csynth.rpt
22
+
Original file line number Diff line number Diff line change 8
8
# Script to export HLS component to Vivado IP catalog
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
Original file line number Diff line number Diff line change 8
8
# Script to open Vitis HLS GUI
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
15
- vitis_hls -p proj
15
+ nohup vitis_hls -p prj & > /dev/null & disown
16
16
Original file line number Diff line number Diff line change 8
8
# Script to perform HLS IP synthesis and implementation
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+
2
3
# ------------------------------------------------------------------------------
3
4
# published as part of https://github.com/pConst/basic_verilog
4
5
# Konstantin Pavlov, [email protected]
5
6
# ------------------------------------------------------------------------------
6
7
7
- # Script to initialize HLS project solution and make CSYNTH compilation step
8
+ # Script to open Vitis HLS GUI
8
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
9
10
10
- vitis_hls -f run_hls.tcl
11
+ killall vitis_hls
11
12
Original file line number Diff line number Diff line change 8
8
# Script to perform HLS IP synthesis
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
Original file line number Diff line number Diff line change
1
+ #------------------------------------------------------------------------------
2
+ # .gitignore for Vitis HLS projects
3
+ # published as part of https://github.com/pConst/basic_verilog
4
+ # Konstantin Pavlov,
[email protected]
5
+ #------------------------------------------------------------------------------
6
+
7
+ # INFO ------------------------------------------------------------------------
8
+ # rename the file to ".gitignore" and place into your HLS project directory
9
+ #
10
+
11
+ /prj
12
+
13
+ vitis_hls.log
14
+
Original file line number Diff line number Diff line change 4
4
# ------------------------------------------------------------------------------
5
5
6
6
# Create a project
7
- open_project proj -reset
8
- add_files hls_operator.cpp
9
- add_files -tb hls_operator_tb.cpp
7
+ open_project prj -reset
8
+ add_files src/ hls_operator.cpp
9
+ add_files -tb src/ hls_operator_tb.cpp
10
10
set_top hls_operator
11
11
12
12
# Create a solution
Original file line number Diff line number Diff line change 7
7
# Script to clean Vitis HLS project
8
8
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
9
9
10
- rm -rf proj
10
+ rm -rf prj
11
11
12
12
rm vitis_hls.log
13
13
Original file line number Diff line number Diff line change 8
8
# Script to perform HLS component co-simulation
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
Original file line number Diff line number Diff line change 8
8
# Script to perform HLS component simulation
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
Original file line number Diff line number Diff line change 7
7
# Script to initialize HLS project solution and make CSYNTH compilation step
8
8
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
9
9
10
+
11
+
12
+ rm -rf ./prj/sol1/syn
13
+ rm -rf ./prj/sol1/impl
14
+
10
15
vitis_hls -f run_hls.tcl
11
16
17
+ # open top Verilog
18
+ subl ./prj/sol1/syn/verilog/hls_operator.v
19
+
20
+ # open main report
21
+ subl ./prj/sol1/syn/report/csynth.rpt
22
+
Original file line number Diff line number Diff line change 8
8
# Script to export HLS component to Vivado IP catalog
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
Original file line number Diff line number Diff line change 8
8
# Script to open Vitis HLS GUI
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
15
- vitis_hls -p proj
15
+ nohup vitis_hls -p prj & > /dev/null & disown
16
16
Original file line number Diff line number Diff line change 8
8
# Script to perform HLS IP synthesis and implementation
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # ------------------------------------------------------------------------------
4
+ # published as part of https://github.com/pConst/basic_verilog
5
+ # Konstantin Pavlov, [email protected]
6
+ # ------------------------------------------------------------------------------
7
+
8
+ # Script to open Vitis HLS GUI
9
+ # see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
+
11
+ killall vitis_hls
12
+
Original file line number Diff line number Diff line change 8
8
# Script to perform HLS IP synthesis
9
9
# see ../example_projects/vitis_hls_prj_template_v1/ for complete example
10
10
11
- if [ ! -d " ./proj " ]; then
11
+ if [ ! -d " ./prj " ]; then
12
12
source vitis_hls_csynth.sh
13
13
fi
14
14
You can’t perform that action at this time.
0 commit comments