HDL Coder Error while converting AWGN function code to Fixed-Point code. Any suggestion to solve it?
古いコメントを表示
I am using HDL Coder to convert AWGN function to Fixed-Point code as part of VHDL code conversion. but it produces an rrror while converting AWGN function code to Fixed-Point code. Any suggestion to solve it?
Can anyone help me how can I fix and solve the error? It very important.
Thank you for your help. Best Regards, Ghazanfar Latif
4 件のコメント
Walter Roberson
2016 年 12 月 21 日
What error message is produced?
Ghazanfar Latif
2016 年 12 月 21 日
編集済み: Ghazanfar Latif
2016 年 12 月 21 日
Walter Roberson
2016 年 12 月 21 日
coder.extrinsic cannot be used for code that is to be deployed.
Ghazanfar Latif
2016 年 12 月 21 日
回答 (1 件)
Walter Roberson
2016 年 12 月 21 日
1 投票
HDL Coder does not support any of the random number generators.
Fortunately I researched this earlier this year and found some suggestions on how to implement random numbers in HDL:
1 件のコメント
Walter Roberson
2016 年 12 月 22 日
See http://www.gaussianwaves.com/2015/06/how-to-generate-awgn-noise-in-matlaboctave-without-using-in-built-awgn-function/ for a code outline.
The difficult part there is that randn() is not implemented for HDL. The Answer I link to above contains references to two HDL implementations of random number routines, which you could use to generate the normally distributed random numbers.
カテゴリ
ヘルプ センター および File Exchange で FPGA, ASIC, and SoC Development についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!