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

1 view (last 30 days)
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

Accepted Answer

Tim McBrayer
Tim McBrayer on 8 Aug 2016
Edited: Tim McBrayer on 9 Aug 2016
You can use variable-step discrete with no continuous states, but I don't think there is much benefit to doing so.
  3 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Code Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!