Solver error in HDL verifier
5 次查看(过去 30 天)
显示 更早的评论
Hi there,
I'm trying to verify my VHDL code with HDL Verifier. I used the cosimWizard to generate the ModelSim Simulator block. When I try to start the Simulink simulation the following error appears:
The "VariableStepDiscrete" solver cannot be used to simulate block diagram 'control' because it contains continuous states
I tried to change the solver to FixedStepDiscrete but no way, same error.
Since the VHDL block I'm implementing is inherently discrete, why the solver give me such an error?
Thanks in advance.
0 个评论
回答(1 个)
stozaki
2020-2-8
编辑:stozaki
2020-2-8
When you generate and simulation to use the HDL coder, SolverType must set Fixed-Step.
Please see following URL
HDL Coder currently supports variable-step solvers under limited conditions. See hdlsetup
It is reasonable for you to use the hdlsetup function.
3 个评论
stozaki
2020-2-8
MathWorks provide modeling guideline for HDL coder. It says that Fixed Step Discrete Solver is recommended.
另请参阅
类别
在 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!