How can HDL Code Generation for a full system be performed with System Composer Model that contains multiple Simulink models?

22 views (last 30 days)
I have an architecture in System Composer and have developed Simulink HDL Coder behavioral models for its subsystems. How do I generate HDL code for the entire system rather than each simulink model individually? Performing the code generation at the individual models independently is not only time consuming, but it creates conflicts when those pieces are merged in the synthesis tool because the create duplicate libraries and datatypes with their code.

Accepted Answer

Kiran Kintali
Kiran Kintali on 26 Mar 2024
Hi Brad,
can you create a support request to help further address this issue? We can followup offline on how to connect System Composer workflows to HDL Coder workflows.
Some of the items you refer to here w.r.to module / interface name uniqification and type definition usage across multiple modules are already addressed with top model containing instances of reference models using model blocks.
We need to review what is missing from the System composer context. Looking forward to the conversation.
  1 Comment
Brad Williams
Brad Williams on 2 Apr 2024 at 13:22
Thank you. I'll create that request. Pre-codegen library merges can probably resolve this, but model reuse is where this tends to happen for us. In other words, two models from different organizations are brought into the same project and the models happen to have 1 or more identically named data types in their libraries since the libraries and models were developed independently. Merging the libraries and/or renaming datatypes is a heavy lift sometimes.

Sign in to comment.

More Answers (0)

Categories

Find more on System Composer in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!