Does Simscape Specialized Power Systems blocks work with HDL Coder?

2 次查看(过去 30 天)
Hi, I'm getting errors generating HDL code using blocks from the SPS library. Want to know if this library is supported with HDL coder

回答(2 个)

R
R 2024-6-19
Specialized Power Systems Library is designed for modeling electrical power systems using specialized components and blocks. However, many of these components are not supported for HDL code generation because the models in the SPS library typically operate at a higher level of abstraction. They are suitable for system-level simulation rather than direct implementation on hardware platforms such as FPGAs or ASICs, which are the primary targets of HDL code generation.
To display the blocks compatible with HDL code generation:
  1. In the Apps tab, select HDL Coder. Then, in the HDL Code tab, select HDL Block Properties > Open HDL Block Library.
  2. Alternatively, you can enter `hdllib` at the command prompt. This command opens the Library Browser in standalone mode, showing blocks that are compatible with HDL code generation.
By constructing models using blocks from this Library Browser, you ensure that your models are compatible with HDL code generation.
Additionally, you can consult the Documentation page for blocks under Specialized Power Systems. Look under the Extended Capabilities to check whether HDL code generation is supported:
For instance, for a Boost converter, it is noted that you can only generate C/C++ code using Simulink Coder, indicating the absence of direct support for HDL code generation for this particular component.

Kiran Kintali
Kiran Kintali 2024-6-19
编辑:Kiran Kintali 2024-6-19
SPS blocks are not currently supported for HDL Code Generation. Please reach out to tech support and share your model of interest. We will reach out to you directly on the roadmap and the next steps in the Simscape Electrical area.

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by