how to use exp funnction in hdl coder?
Show older comments
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?
Answers (2)
Raghav Mishra
on 19 Jun 2020
0 votes
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
on 22 Jun 2020
0 votes
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
Categories
Find more on Code Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!