Closed samlei-research closed 3 months ago
Bumping this, did you find a solution?
@SuperChamp234
I got it compiled with a workaround. I am using Vitis 2022.1, in the installation folder in /tools/Xilinx/Vitis_HLS/2022.1/src
there is the hls_math.zip
. I took the definition of circ_table_arctan_128[128]
from hls_cordic_apfixed.cpp
in the extracted hls_math, and put it into /tools/Xilinx/Vitis_HLS/2022.1/include/hls_cordic_apfixed.h
instead of extern const ap_ufixed<128,2> circ_table_arctan_128[128];
.
This solution might not be the intended way of using it, but it works for now.
I hope the solution shared by @samlei-research is working now..
I want to use the hls::atan() function for a self-defined ap_fixed datatype (ap_fixed<42,24>).
When using vitis hls directly I can run the synthesis, but if I use the ROS2 integration I get the following error when using colcon build XXX.
It seems there is an issue with the correct linking, but I did not figure out how to do it correctly. Has somebody a solution to it?