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 comentarios

Thanks for reply. Here is the error message:
"The function 'awgn' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation."
I want to test the code in Xilinx. So can I still use the "coder.extrinsic" ? Can you please guide or give a hint to resolve this? Thank you so much for your kind help
coder.extrinsic cannot be used for code that is to be deployed.
Thanks for the answer.
So any possible way to solve this function issue? A small hint from your side might help to get the solution. Thanks

Iniciar sesión para comentar.

Respuestas (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 comentario

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.

Iniciar sesión para comentar.

Categorías

Más información sobre FPGA, ASIC, and SoC Development en Centro de ayuda y File Exchange.

Preguntada:

el 21 de Dic. de 2016

Comentada:

el 22 de Dic. de 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by