how to use exp funnction in hdl coder?

8 visualizzazioni (ultimi 30 giorni)
Shubham Kapoor
Shubham Kapoor il 22 Apr 2015
Risposto: Kiran Kintali il 22 Giu 2020
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?

Risposte (2)

Raghav Mishra
Raghav Mishra il 19 Giu 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 il 22 Giu 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

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by