12-19-2013 10:27 AM
I dad write "#include <math.h>" in my code. However there's still the error " math function 'pow' is not supported for synthesis".Which C library shoud I choose or whice function shoude I use to get number's power?
I tried to write the pow function myself to get the power of 2 ,codes like:
int power_func(int n)
The trip count and lentancy both are "?". Maybe because n is an variable.
What can I do for the power?
Thanks a lot!
12-19-2013 10:54 AM - edited 12-19-2013 10:54 AM
This is not a forum for technical questions. This is the forum for discussing the forum design and usage.
-- Bob Elkind
12-23-2013 10:00 PM
12-23-2013 10:48 PM
12-24-2013 08:57 PM
Additional Info for : The trip count and latency both are "?".
When variable loop bounds are present, Vivado HLS reports the latency as a question mark
(?) instead of using exact values.
The first problem with variable loop bounds is therefore that the performance of the design
The two ways to overcome this problem are:
• Use the Tripcount directive.
• Use an assert macro in the C code.
Refer http://www.xilinx.com/support/documentation/sw_manuals/xilinx2013_4/ug902-vivado-high-level-synthesis.pdf on how to do those two things.