MATLAB: How to deal with functions that are not supported in HDL coder

HDL Coder

I am using HDL coder to generate Verilog code from Matlab algorithms. But I am getting the following error while trying to execute the 'Verify with Cosimulation' step :-
The function 'coder' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation.
I have the Mentor Graphics Modelsim student version installed in my system and have linked it with Matlab.
Please help me out in dealing with the issue.
Thanks in advance.

Best Answer

If you are using coder.extrinsic to call a function in your MATLAB code, it is likely that the function is not supported for code-generation. You will need to remove that call to be able to generate code from it.
Related Question