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 drilip
Observer
110 Views
Registered: ‎04-02-2019

Vivado HLS basic constructs

I have good command over verilog and I want to use Vivado for some designs but it supports C/C++. Can somebody suggest me how to write a HLS supported synthesizable C/C++ code along with a test bench. I have tried a program to for C=A+B and used printf for output display, but it is not working, also when to include .h file and how to write .h file  for a design. Suggest a basic coding construct.

0 Kudos
1 Reply
Contributor
Contributor
15 Views
Registered: ‎10-25-2019

Re: Vivado HLS basic constructs

If you are familiar at C/C++, I suggest you reading UG871 for understaing the tool and pp4fpga for understanding hls. If something is not working then please do post here about its detail.

Header file generally consists of function declarations, constants, data type definitions and we use it whenever required. This saves lot of coding in muliple file programs. There are many good resources like this one to get you started with writing header files.

Feel free to accept as solution if it solves your issue.

Regards,
jagannath@logictronix.com
0 Kudos