赛灵思
直播中

李思路

7年用户 173经验值
私信 关注
[问答]

如何在HLS 14.3中编写pow功能?

嗨〜
如何在HLS 14.3中编写pow功能?
HLS 14.3不支持exp和pow功能。
我在我的代码中写了“#include math.h”。
但是,它不起作用。
另外,我想知道C代码中hls_math.h和math.h之间的区别是什么?我什么时候才能使用“#include hls_math.h”?
非常感谢你!

以上来自于谷歌翻译


以下为原文

Hi~
      How to write pow function in HLS 14.3 ? Neither exp nor pow function does HLS 14.3 supports. I had writen the "#include math.h" in my code. However , it doen't work.
      Besides,I'd like to know what's the diffence between hls_math.h and math.h in C code?When shall I use "#include hls_math.h"?
      Thank you very much!

回帖(3)

h1654155275.5998

2019-3-5 13:52:03
谁能帮帮我呢?

以上来自于谷歌翻译


以下为原文

Who can help me, please?
举报

张丽丽

2019-3-5 13:59:23
有关Vivado HLS Math库的深入了解,请参阅以下用户指南的第291页:http://www.xilinx.com/support/documentation/sw_manuals/xilinx2013_4/ug902-vivado-high-level-synthesis.pdf
Vivado HLS不支持math.h或cmath.h(C ++)中未列出的函数。

以上来自于谷歌翻译


以下为原文

For in-depth understanding of Vivado HLS Math libraries please refer to page 291 of the following user guide:

http://www.xilinx.com/support/documentation/sw_manuals/xilinx2013_4/ug902-vivado-high-level-synthesis.pdf

The functions not listed in math.h or cmath.h (C++) will not be supported by Vivado HLS.
举报

h1654155275.5998

2019-3-5 14:12:27
好。
谢谢 !
圣诞节快乐!

以上来自于谷歌翻译


以下为原文

OK. Thank you ! Merry Cheristmas!
举报

更多回帖

发帖
×
20
完善资料,
赚取积分