필터 지우기
필터 지우기

HDL Coder For Each Subsystem Assertion failed: B:\matlab\​src\cgir_h​dl\pir_tag​s\ForEachD​ataTag.hpp​:178:nativ​eVObj.get(​)

조회 수: 3 (최근 30일)
When generating HDL code using the For Each Subsystem and a partitioned mask parameter, the following error message is generated:
Assertion failed: B:\matlab\src\cgir_hdl\pir_tags\ForEachDataTag.hpp:178:nativeVObj.get()
I believe it is related to the fact that in order for a mask parameter to be partioned using the for each subsystem, the parameter must be tunable for some reason. If there was a way to partition a non-tunable parameter I dont think this would not be an issue. However, when making the parameter non-tunable, the parameter partition tab shows the parameter as greyed-out:

채택된 답변

Kiran Kintali
Kiran Kintali 2024년 1월 15일
The error message is not expected. Can you share your model? Either HDL Coder needs to generate code from the model or generate a proper conformance related validation message for any unsupported behaviors..
Here is the related release note for the ForEach mask partition feature.
Starting R2021a release HDL code generation for For Each Subsystem block with 1-D and 2-D partitioning of mask parameters
You can generate HDL code for the For Each Subsystem block with 1-D and 2-D partitions of mask parameter values. To partition the mask parameters, in the Parameter Partition tab of the For Each block, select each mask parameter that you want to partition, and then specify the Partition Dimension and Partition Width.
  댓글 수: 2
Jason Katcha
Jason Katcha 2024년 1월 15일
Attached is a minimum reproducible example. The system is intended to function as a linear mapping function with initialization code embedded in the PreLoadFcn callback to define the constants. Again I think the issue arrises with the mask parameter being tunable. It seems like HDL coder does not like this and fails the assertion. I don't need this paramenter to be tunable, so it would be nice if the parameter partion of the for each subsystem would still function with non-tunable parameters. Thanks for taking a look!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by