how to use exp funnction in hdl coder?

3 vues (au cours des 30 derniers jours)
Shubham Kapoor
Shubham Kapoor le 22 Avr 2015
I have a program that uses exp function in it.While converting to hdl using hdl coder,o get the error that exp () function is not supported.Can anyone help me out?

Réponses (2)

Raghav Mishra
Raghav Mishra le 19 Juin 2020
For HDL support, you can use exponential block from HDL coder(under HDL floating point operations) library.
You can refer to the following documentation link for more details

Kiran Kintali
Kiran Kintali le 22 Juin 2020
Hi,
Can you add more details and share example files with projects and reproductions here so that we can give better guidance?
The answer is nuanced and depends on where the question is related to floating-point or fixed-point support and the specific use of exp() function in MATLAB function block in Simulink to HDL workflow versus standlone MATLAB to HDL workflow.
If the question is related to fixed-point the avaiable workflow choices are to use automated float2fixed conversion workflow versus manual conversion before you initiate the HDL code generation process.
Thanks

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by