HDL Coder within subsystem on Simscape model

1 回表示 (過去 30 日間)
Joshua
Joshua 2015 年 5 月 16 日
回答済み: Shoumei 2019 年 1 月 29 日
I am working on an application to use an FPGA for a motor controller. Can I use Simscape to model the system as a whole, and have the FPGA in a subsystem using the HDL coder to both model what the FPGA will do and eventually generate the code for the FPGA when I build the real model?
If so can anyone point me to good resources on how to do this?
Thanks.

回答 (2 件)

Tim McBrayer
Tim McBrayer 2015 年 5 月 18 日
Yes, the approach you outline should work. Simscape blocks are not supported for HDL code generation but it seems that you are aware of this.
The effort here will be involved with defining your interface between your HDL model and the rest of your design.
There is a featured example for HDL Coder that seems quite relevant for you. It's entitled Field-Oriented Control of a Permanent Magnet Synchronous Machine, which sounds very similar to what you wish to do.

Shoumei
Shoumei 2019 年 1 月 29 日
HDL Coder started to support Simscape blocks in R2018b.
Switched-linear subset of Simscape components are supported to generate HDL with 'sschdladvisor'.
Here is the documentation link.

カテゴリ

Help Center および File ExchangeHardware-in-the-Loop Simulation with Simulink Real-Time についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by