Integrating fftw C function calls inside system verilog code

北战南征 提交于 2019-12-06 04:06:18

This is a good description and summary of the problem that we discussed earlier. I do not usually work on a *nix system, so I cannot suggest any specific details. What I will point out is that approaching a problem like this in steps is usually a good method.

Your first step of have the fft code called directly from main() is good. However, I did not see a step where (NOT USING SystemVerilog or ncsim) you compiled the fft code into a library and then called that code from main().

It would seem that getting the code to be stored in a separate lib and called from main() is a necessary step. After you have that working, then you should be able to include the fft lib in the SystemVerilog stuff without having to compile the fft routine at the same time?

You might need to export or setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/home/usr/fftw/local/lib:.. Unless your libdpi.so is linked with static FFTW library, otherwise, your code will need to load the dynamic version of the FFTW library (libfftw.so?) because you are using fftw_* APIs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!