How to deal with functions that are not supported in 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.
採用された回答
その他の回答 (1 件)
Tim McBrayer
2014 年 3 月 17 日
0 投票
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.
カテゴリ
ヘルプ センター および File Exchange で Code Generation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!