Dataflow Conversion Error when generating hdl code from simulink

조회 수: 3 (최근 30일)
Marshanda Febriana
Marshanda Febriana 2024년 2월 28일
편집: Kiran Kintali 2024년 3월 5일
I try to generate HDL Code form Simulink Subsystem Block and then it shows an error when I try to run from HDL Workflow Advisor in section 3.2 Generate RTL Code and Testbench. Here's an error
Failed Error:Dataflow conversion error: Function2SubsystemConverter.evalExpression: 0: variable description not found for the specified loop iteration
Error:Dataflow conversion error: Function2SubsystemConverter.evalExpression: 0: variable description not found for the
specified loop iteration
Error in slhdlcoder.HDLCoder/runPIRTransformAndCodegen
Error in slhdlcoder.HDLCoder/makehdl
Error in downstream.DownstreamIntegrationDriver/runGenerateRTLCodeAndTestbench
Error in runGenerateRTLCodeAndTestbench
Error in Simulink.ModelAdvisor/executeCheckCallbackFct
Error in Simulink.ModelAdvisor/run
Error in Simulink.ModelAdvisor/runCheck
Error in ModelAdvisor.Node/runTaskAdvisor
Failed Generated HDL code.

답변 (1개)

Kiran Kintali
Kiran Kintali 2024년 2월 28일
편집: Kiran Kintali 2024년 3월 5일
This is an unexpected error and seems related to this bug report.
  댓글 수: 2
Marshanda Febriana
Marshanda Febriana 2024년 2월 29일
Based on the link you've provided, I've upgraded my Matlab version to Matlab 2023b ver 7. But, I received another error, but it looks like it has the same cause. Here's the error
Error:Dataflow conversion error: PIRGraphBuilder.instantiateSumNode: 0: Index exceeds the number of array elements. Index must not exceed 7.
Kiran Kintali
Kiran Kintali 2024년 2월 29일
편집: Kiran Kintali 2024년 3월 5일
This unexpected error is encounteded due to sum function with 3D inputs does not seems to be implemented yet in this HDL Coder workflow. I have created an enhancement request to the development team to address this issue.
For now please consider splitting the matrix manually for 'add', you can do something like x(:,:,1)+x(:,:,2)+x(:,:,3) should work.
Please share the model with the respective fix if you continue to run into other issues.
Hope this helps.

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

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by