Info

この質問は閉じられています。 編集または回答するには再度開いてください。

HDL Coder Control Model

2 ビュー (過去 30 日間)
Souradeep
Souradeep 2014 年 1 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Ok, it's like this. I want to get the HDL code of a Matlab Simulink Model ( Brake Control ), and generate the corrresponding graphs from it. So, what , I did was I simply opened the model , and generated the HDL code. That's were the problem began. The process terminates with errors. It faces problem for fixed point to floating point conversion. Now, how do I sove that ? COuld anyone please how do I do that alteration in the Simulink Model ?

回答 (1 件)

Tim McBrayer
Tim McBrayer 2014 年 1 月 21 日
You want to take a look at the Fixed-Point Designer. It will help you convert your floating-point model to fixed-point arithmetic, which is much more suitable for HDL code generation. HDL Coder supports code generation for a model that uses floating point; the primary limitation is you cannot convert data types from floating point to fixed point,l or vice versa. Be forewarned, though, that floating point values are not in general synthesizable.
  1 件のコメント
Souradeep
Souradeep 2014 年 1 月 21 日
Ok, let me try it out. Will let you know whether it worked for me Anyways, thanks for the reply .

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by