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

조회 수: 10 (최근 30일)
Sheelabhadra
Sheelabhadra 2014년 1월 8일
답변: Tim McBrayer 2014년 3월 17일
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.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2014년 3월 13일
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.

추가 답변 (1개)

Tim McBrayer
Tim McBrayer 2014년 3월 17일
One way to replace the use of coder.extrinsic is to replace the behavior of your call with a lookup table. This works best when you have a well defined range of possible inputs to your function. There is some effort that needs to be put into defining a lookup table, trading off suitable accuracy with the desire to minimize the table size.

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by