Clear Filters
Clear Filters

Does Simscape Specialized Power Systems blocks work with HDL Coder?

10 views (last 30 days)
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

Answers (2)

R
R on 19 Jun 2024
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 on 19 Jun 2024
Edited: Kiran Kintali on 19 Jun 2024
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.

Categories

Find more on Hardware-in-the-Loop Simulation with Simulink Real-Time in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!