mardi 11 juillet 2023

Invalid attribute value in C High Level Synthesis on Vivado 2018.2 CMD

I am working with xfOpenCV and Vivado High Level Synthesis (implementing a machine learning accelerator) and I have written the main module and its test bench.

The TCL script that I am trying to run is as follows:

open_project FSRCNN
set_top FSRCNN
add_files FSRCNN.cpp -cflags "-D__XFCV_HLS_MODE__ --std=c++11 -IC:\xfopencv-2018.2\include"
add_files -tb tb.cpp -cflags "-IC:\xfopencv-2018.2\include -IC:\opencv\install\include -D__XFCV_HLS_MODE__ --std=c++11 -Wno-unknown-pragmas"
add_files -tb input_image.jpeg -cflags "-Wno-unknown-pragmas"
open_solution "solution1"
set_part {xc7z020clg400-1} -tool vivado
create_clock -period 4 -name default
csim_design -ldflags {-L C:\opencv\install\x64\mingw\lib -lopencv_core453 -lopencv_highgui453 -lopencv_imgproc453 -lopencv_imgcodecs453 -lopencv_flann453 -lopencv_features2d453} -argv {input_image.jpeg} -clean 
csynth_design
export_design -format ip_catalog

When I run it through Vivado Command Prompt by the following command,

`C:\Users\Administrator\Desktop\vhc>vivado_hls -f run_hls.tcl` 

I get the following error:

`INFO: [HLS 200-10] In directory 'C:/Users/Administrator/Desktop/vhc'
INFO: [HLS 200-10] Creating and opening project 'C:/Users/Administrator/Desktop/
vhc/FSRCNN'.
INFO: [HLS 200-10] Adding design file 'FSRCNN.cpp' to the project
Invalid attribute value '-D__XFCV_HLS_MODE__ --std=c++11 -IC:opencv-2018.2includ
e'
    while executing
"source [lindex $::argv 1] "
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 { source [lindex $::argv 1] } "

INFO: [Common 17-206] Exiting vivado_hls at Tue Jul 11 12:35:42 2023...`

I have checked whether my G++ compiler supports std c++11 and it does. The paths I have added to xfOpenCV, OpenCV for module and testbench file are also correct.

I am not sure how to proceed with this problem. Help will be appreciated.

Aucun commentaire:

Enregistrer un commentaire