UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer jwizard93
Observer
4,852 Views
Registered: ‎06-07-2016

UG902 - "...automatically includes header files"

Hello,

 

I'm a bit confused about header files when using HLS.

 

According to page 24 of UG902 one can put header files in the main project directory and they will be included. At least that's my best interpretation of the guide.

 

However, I see in examples that only a portion or even just one header file is sometimes in that folder, while others are used.

 

Furthermore, I can't seem to get headers to be found during synthesis unless all headers and headers included by those headers are in the folder that initially held the c code. I mean where I found it during the "add files" stage of project creation.

 

I put all source and header files in that directory and then I have no problem. I don't like that type of pooling everything together, though.

 

I'm curious: what is the best way to provide linkage between all required files?

 

As far as I can tell there is supposed to be only dropping the headers in the HLS project dir and using the -I/place/with/header C-Flag. Neither of those options has been successful for me.

0 Kudos