Errors : algebraic loop in use HDL simulink coder

1 回表示 (過去 30 日間)
Pham Van Dung
Pham Van Dung 2013 年 6 月 2 日
回答済み: Kiran Kintali 2023 年 3 月 28 日
Dear friends, when i convert one Simulink block to Verilog use HDL Simulink coder, i have this problem: *_ Failed Cannot connect to model; please try Update Diagram (Ctrl-D).
Cause:
Block diagram 'untitled' contains an algebraic loop. The algebraic loop solver is disabled because of the current setting for Algebraic loop option in the Diagnostics page of the Configuration Parameters Dialog_*
Can you give me some suggestions to solve this problem? Thanks so much!
Pham Van Dung
  1 件のコメント
Pham Van Dung
Pham Van Dung 2013 年 6 月 7 日
編集済み: Pham Van Dung 2013 年 6 月 7 日
thanks for helping

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

回答 (2 件)

Tim McBrayer
Tim McBrayer 2013 年 6 月 3 日
The error message states you have an algebraic loop in your design. Basically, an algebraic loop is a path in your Simulink model that makes a loop, and has no delays in it. HDL Coder does not support code generated for designs with algebraic loops, as this will in general result in hardware that is unstable.
For more information about algebraic loops, see http://www.mathworks.com/support/solutions/en/data/1-16V6S/.
  1 件のコメント
Pham Van Dung
Pham Van Dung 2013 年 6 月 7 日
Thanks Tim McBrayer for your answer!
I already fix the problem in algebraic loop. I use a delay block in my feedback and now the model is ok. But i have a new problem: When i convert to verilog and co-simulation with Modelsim, i have a error that i have posted before:
It looks like the two waveforms are identical, but time-shifted.I already ask a question but nobody reply it.
Once again, i need your helping!
Thanks you so much!

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


Kiran Kintali
Kiran Kintali 2023 年 3 月 28 日

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by