problems with HDL coder
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I try to convert a matlab program to HDL with HDL coder. I created two files, one with the main function (lorenzRK4) and another(the test bench, TBlorenzRK4) where there is just the name of the function.
But when I am at the the step "Define Input Types" I click on Run and I have several errors which all are "Undifined function or variable "X". The first assignement to a local variable determines its claas."
I know that my variables are not define but I don't know how to do this, I thought in Matlab we don't have to do this.
0 件のコメント
回答 (1 件)
Tim McBrayer
2014 年 8 月 25 日
You need to write each variable before reading it. Is this occurring? HDL Coder requires some sort of typing information in order to determine what HDL to generate. The HDL Coder flow handles defining the data types of the inputs to your design. All other types must either be defined internally, or be determinable via MATLAB's type propagation rules.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で HDL Coder についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!