MATLAB: Regarding HDL Code generation

HDL CodersimpowersystemsSimscape Electrical

Hi,
Can we generate HDL code for simulink models designed using SimPowerSystems?
If not, why?
Regards
Sriharsha S

Best Answer

Simulink HDL Coder can generate HDL for a supported set of Simulink blocks. While this list is fairly extensive, it does not include any support for SimPowerSystems. SimPowerSystems is designed to model electrical power systems; that is, analog power systems. If you have a SimPowerSystems design that contains, for example, a control system constructed out of HDL-supported blocks, you can generate HDL from that portion of the design.