Is it necessary to declare functions and function calling in matlab code for hdl conversion?
1 回表示 (過去 30 日間)
古いコメントを表示
Sukhmani Kaur Thethi
2016 年 7 月 21 日
コメント済み: Tim McBrayer
2016 年 7 月 21 日
Hello, I'm working on a project 'PCA' which deals with large valued random matrix, currently I'm dealing with 10x5 random matrix. I'v used simple matlab functions like eig, rand and likewise, but didnot include any function declaration and function calling. And also I'm unable to convert my code in vhdl through hdl coder.
0 件のコメント
採用された回答
Walter Roberson
2016 年 7 月 21 日
As far as I recall, HDL Coder will refuse to compile a script as the main object. You must put a function header on the script in order to make it the entry point.
2 件のコメント
Tim McBrayer
2016 年 7 月 21 日
Walter is correct. HDL Coder uses the design function interface to define the number and types of the hardware input and output ports.
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!