为 FPGA 或其他平台生成代码
您可以使用 Simulink® Coder™ 和 Embedded Coder® 从 Simscape™ 和 Simulink 模型为特定的实时操作系统生成代码。为了节约编译过程所需的时间,请预编译 Simscape 及其附加产品为支持的编译器提供的静态运行时库。
主题
- Generate HDL Code for FPGA Platforms from Simscape Models
Learn how to convert Simscape models to HDL Code for FPGA Deployment.
- Linearize a Simscape Model to Prepare for HDL Code Generation
Learn how to linearize a model that uses the Backward Euler solver for HDL deployment.
- Requirements for Using Alternative Platforms
Follow the recommendations for minimum hardware, software, and compiler specifications to deploy your Simscape model for hardware-in-the-loop (HIL) simulation using a custom standalone application.
- Extending Embedded and Generic Real-Time System Target Files
Use the Target Language Compiler to generate custom source code for performing hardware-in-the-loop using an alternative platform.
- Precompiled Static Libraries
Precompiled libraries are provided for supported compilers.
- Initialization Cost
Learn how to avoid CPU overloads during initialization when you use an alternative platform for hardware-in-the-loop simulation.