cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ESCHen99
Visitor
Visitor
263 Views
Registered: ‎07-12-2021

[Vitis HLS] Do solution directives get synthesed in Vitis Unified Software Platform?

Jump to solution

Hi all,

 

This is my first post here!

My question is the following: Whenever I launch Vitis HLS to optimize a Vitis Unified Kernel  I try solutions and not as pragmas in the src code but as directives. I think the directives are somewhere in a .tcl script, but going back to the Vitis Unified Platform, and targeting HW compilation, does it actually use the .tcl script (which is unexpected as I am not choosing the solution) or should I specifically instate the pragmas? If so, which is an efficient way to transform solution directives to pragmas?

 

Thanks in advance!

0 Kudos
1 Solution

Accepted Solutions
randyh
Xilinx Employee
Xilinx Employee
241 Views
Registered: ‎01-04-2013

By default Vitis will not use directives from Vitis HLS. The easiest way to change them is to modify the directive in the Vitis HLS GUI in the Directives Editor and change them from directive to source file as described here: https://www.xilinx.com/html_docs/xilinx2021_1/vitis_doc/optimizinghlsproject.html#wsf1539734217502

There is a way to run the directives.tcl script in Vitis by using the --hls.pre_tcl option as described here: https://www.xilinx.com/html_docs/xilinx2021_1/vitis_doc/vitiscommandcompiler.html#mcj1568640526180__section_emy_hbk_dnb

But if you are working in Vitis HLS you can generate the Vitis kernel (.xo) directly and then use it in your Vitis application project as described here: https://www.xilinx.com/html_docs/xilinx2021_1/vitis_doc/buildingdevicebinary.html#yzy1565965133810

 

View solution in original post

1 Reply
randyh
Xilinx Employee
Xilinx Employee
242 Views
Registered: ‎01-04-2013

By default Vitis will not use directives from Vitis HLS. The easiest way to change them is to modify the directive in the Vitis HLS GUI in the Directives Editor and change them from directive to source file as described here: https://www.xilinx.com/html_docs/xilinx2021_1/vitis_doc/optimizinghlsproject.html#wsf1539734217502

There is a way to run the directives.tcl script in Vitis by using the --hls.pre_tcl option as described here: https://www.xilinx.com/html_docs/xilinx2021_1/vitis_doc/vitiscommandcompiler.html#mcj1568640526180__section_emy_hbk_dnb

But if you are working in Vitis HLS you can generate the Vitis kernel (.xo) directly and then use it in your Vitis application project as described here: https://www.xilinx.com/html_docs/xilinx2021_1/vitis_doc/buildingdevicebinary.html#yzy1565965133810

 

View solution in original post