The top design unit selected for HDL code generation may not be inside a triggered subsystem.

2 次查看(过去 30 天)
Hi,
why was this limitation intoduced in Matlab?
In Matlab 2019, this limitation is not there. I wanted to port my model to Matlab 2020b, and run into this issue. Unfortunately I don't find anything in the documentation about this error message.
Can this limitation be circumvented with some settings?
Is this limitation also there in the latest versions of Matlab?

回答(1 个)

Kiran Kintali
Kiran Kintali 2022-6-3
编辑:Kiran Kintali 2022-6-3
The DUT targeted for code generation can be a whole model with root ports, or a regular virtual or atomic subystem, model reference block. Control subsystems such as triggered, enabled and resettable subsystems cannot be currently specificed as DUT. They need to be wrapped in one of the supported DUT configurations described above.
  2 个评论
Michael Felger
Michael Felger 2023-6-2
Thank you, but this does not answer my question.
I understand that a triggered subsystem can not be the "DUT targeted for code generation".
Assume this topology:
  • Simulink Model
  • --> triggered subsystem
  • --> ---> normal subsystem = DUT for HDL code generation
With R2020b, with a "normal subsystem" DUT which can be targeted for code generation, it is not possible to generate HDL code if this DUT is inside a triggered subsystem.
Which does not make sense for me at all, why does the HDL coder care about the triggered subsystem, which is above the DUT (and therefore not targeted for code generation at all)?
Also I can not find any documentation about this.
https://de.mathworks.com/help/simulink/slref/triggeredsubsystem.html

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Code Generation 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by