필터 지우기
필터 지우기

HDL Coder throws error "Minimize algebraic loop occurrences" not supported on atomic subsystem '...' for HDL code generation" when the option is disabled

조회 수: 3 (최근 30일)
I get the following error from HDL Coder when trying to generate code for a subsystem in a model:
"Minimize algebraic loop occurrences" not supported on atomic subsystem '...' for HDL code generation."
Minimize algebraic loop occurrences does not appear to be enabled for the respective module. The respective model is a resettable subssytem within a "For Each" subssytem. "HDL Code Advisor -> Check for algebraic loops" finds no algebraic loops.
I am struggling with understanding what is causing the error. Perhaps it is linked to the use of a resettable subsystem, which are always atomic, and thus may require some confguration. Is there perhaps an option I have missed?
  댓글 수: 1
Shivang
Shivang 2023년 12월 27일
Hi Eirik,
Is "Minimize algebraic loop occurrences" disabled for the 'For Each' subsystem?
Also it would be great if you could share the model.

댓글을 달려면 로그인하십시오.

채택된 답변

Swaraj
Swaraj 2024년 1월 2일
Hi Eirik,
When you generate HDL code for a Subsystem that is not at the top level of the model, the HDL Coder converts the Subsystem to a model reference. A referenced model is treated similar to an Atomic Subsystem.
The "Minimize algebraic loop occurrences" configuration parameter tries to eliminate artificial algebraic loops from a model that involves the current referenced model. Please make sure that you disable the "Minimize algebraic loop occurrences" configuration parameter for all the dependent subsystems since it is not supported for the atomic subsystem. This error signifies that the issue is occurring as this parameter is enabled.
Please share the model here to debug the issue further.
Hope it helps!

추가 답변 (1개)

Eirik Nordeng
Eirik Nordeng 2024년 1월 4일
I found the culprit. A submodule further down in the hierarchy had the option "Minimize algebraic loop occurrences" enabled, but it was reported for a module at a higher level in the hierarchy. Once I disabled the option for the respective module, the error disappeared.

카테고리

Help CenterFile Exchange에서 Ports and Subsystems에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by