File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
hls4ml/templates/vitis_accelerator Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
.PHONY : clean
2
2
3
+ myplatform
4
+ PLATFORM =myplatform
5
+
3
6
app.exe : ./myproject_host.cpp
4
7
g++ -Wall -g -std=c++11 ./myproject_host.cpp -o app.exe \
5
8
-I firmware/ap_types -I/opt/xilinx/xrt/include \
@@ -8,11 +11,16 @@ app.exe: ./myproject_host.cpp
8
11
myproject_kernel.xo : myproject_kernel.cpp
9
12
v++ --target hw --compile -I" ./" --config accelerator_card.cfg -o" build/myproject_kernel.xo" " myproject_kernel.cpp"
10
13
14
+ ifneq (,$(findstring vck5000,$(PLATFORM ) ) )
11
15
myproject_kernel.xsa : ./build/myproject_kernel.xo
12
16
v++ -l -t hw --config ./accelerator_card.cfg ./build/myproject_kernel.xo -o myproject_kernel.xsa
13
17
14
18
myproject_kernel.xclbin : ./myproject_kernel.xsa
15
19
v++ --package -t hw --config ./accelerator_card.cfg ./myproject_kernel.xsa -o myproject_kernel.xclbin
20
+ else
21
+ myproject_kernel.xclbin : ./myproject_kernel.xo
22
+ v++ -l -t hw --config ./accelerator_card.cfg ./myproject_kernel.o -o myproject_kernel.xclbin
23
+ endif
16
24
17
25
emconfig.json :
18
26
emconfigutil --platform xilinx_vck5000_gen4x8_qdma_2_202220_1 --nd 1
You can’t perform that action at this time.
0 commit comments