cancel
Showing results for 
Search instead for 
Did you mean: 
259 Views
Registered: ‎07-15-2019

Vivado HLS can't find sc_vector.h when C Synthesis

When I use Vivado HLS 2018.3, I got a problem. Please tell me how to solve the following.

I used sc_vector. C simulation was passed. However, when C Synthesis, Vivado HLS says,

WARNING: [HLS 200-40] In file included from project/test.cpp:3:project/test.h:7:10: fatal error: 'sysc/utils/sc_vector.h' file not found#include <sysc/utils/sc_vector.h>
         ^

Vivado's explorer represents sc_vector.h is C:\Xilinx\Vivado\2018.3\win64\tools\systemc\include\sysc\utlis .

I confirmed the location, the file exists.

What should I do to remove this error?

Tags (2)
0 Kudos
2 Replies
Highlighted
Contributor
Contributor
180 Views
Registered: ‎10-25-2019

Re: Vivado HLS can't find sc_vector.h when C Synthesis

Go to project setting and under synthesis tab select the module and edit CFLAG. There, add this line:
 -IC:\Xilinx\Vivado\2018.3\win64\tools\systemc\include 
Yes, this folder is already included but still it strangely works for some reason. 
This alone may not solve all your issues, but atleast it'll get rid of "file not found" issue". 

Regards,
jagannath@logictronix.com
0 Kudos
Highlighted
147 Views
Registered: ‎07-15-2019

Re: Vivado HLS can't find sc_vector.h when C Synthesis

Thank you for your answer, himalayan_fpga! 

Though I did your advice(added CFLAGS), Vivado still says "file not found".

0 Kudos