Fixed-step or Variable-step when designing with HDL coder

11 ビュー (過去 30 日間)
DN
DN 2016 年 8 月 4 日
コメント済み: DN 2016 年 8 月 12 日
Can you use "Variable-step" with solver still set at discrete (no continuous states), or does the design have to be in fixed-step in your model configuration parameters settings when you are designing for HDL Coder? I initially thought that it should always be only fixed point, hence people also use fixed point designer, but then one also come across Simulink examples which uses Variable-step and also to demonstrate HDL coder. So I'm confused now. Hope someone can shine some light on this for me please. Thanks
Fixed-step or Variable-step when designing with HDL coder

採用された回答

Tim McBrayer
Tim McBrayer 2016 年 8 月 8 日
編集済み: Tim McBrayer 2016 年 8 月 9 日
You can use variable-step discrete with no continuous states, but I don't think there is much benefit to doing so.
  3 件のコメント
Tim McBrayer
Tim McBrayer 2016 年 8 月 9 日
No, a variable step solver shouldn't cause you any issue. I was trying to say that as far as the HDL portion of your design is concerned, there is nothing to be gained by using a variable step solver. All rates for the portion of the model converted to HDL must be fixed and discrete, irrespective of the Simulink solver used.
If your larger design benefits from the variable-discrete solver in some way then there is no issue with using that solver.
DN
DN 2016 年 8 月 12 日
Thanks makes sense

サインインしてコメントする。

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by