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

3 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Kiran Kintali
Kiran Kintali il 3 Giu 2022
Modificato: Kiran Kintali il 3 Giu 2022
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 Commenti
Michael Felger
Michael Felger il 2 Giu 2023
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

Accedi per commentare.

Categorie

Scopri di più su Code Generation in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by