Solver error in HDL verifier

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.

回答 (1 件)

stozaki
stozaki 2020 年 2 月 8 日
編集済み: stozaki 2020 年 2 月 8 日

0 投票

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 件のコメント

Giuseppe Galioto
Giuseppe Galioto 2020 年 2 月 8 日
編集済み: Giuseppe Galioto 2020 年 2 月 8 日
I have not generated my code with HDL Coder. I have written my own VHDL code and I'm usign HDL Verifier to test it in SImulink.
I tried with FixedStep Discrete Solver but it gives me the same error.
stozaki
stozaki 2020 年 2 月 8 日
編集済み: stozaki 2020 年 2 月 8 日
The solver affects when running a simulation. This setting is valid for code generation and simulation (include co-simulation).
stozaki
stozaki 2020 年 2 月 8 日
MathWorks provide modeling guideline for HDL coder. It says that Fixed Step Discrete Solver is recommended.

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

質問済み:

2020 年 2 月 8 日

コメント済み:

2020 年 2 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by