Simscape Hardware-in-the-Loop Workflow
您可以使用SIMSCAPE™块为您开发的工厂模型生成HDL代码,然后将生成的代码部署到独立的FPGA板上,或在Speedgoat上进行FPGA®I/O模块,SOC设备等。通过将植物模型部署到FPGA板上,您可以加速植物模型的模拟,并通过使用硬件(HIL)模拟实时模拟该模型。
在生成HDL代码之前,请使用sschdladvisor
function to generate an HDL implementation model from Simscape switched linear models. Switched linear models are models that contain blocks such as diodes or switches. These blocks are defined by a linear relationship such asv = ir
whereR
can switch between two or more values depending on the state of the diodes or switches.
After you generate the HDL implementation model, you can use HDL Coder™ to generate code for this model and deploy the generated code to target platforms by using the HDL Workflow Advisor. When you generate the HDL implementation model, you can specify whether to generate the implementation model with single-precision or double-precision floating-point data types. You can also specify insertion of a validation logic in the implementation model to verify whether the HDL implementation numerically matches the original Simscape algorithm.
Functions
sschdladvisor |
打开SIMSCAPE HDL工作流顾问 |
makehdl |
Generate HDL RTL code from model, subsystem, or model reference |
Topics
Modeling
- 开始使用SIMSCAPE硬件在循环工作流程
Simscape Hardware-in-the-Loop workflow modeling guidelines and restrictions. - Modeling Guidelines for Simscape Subsystem Replacement
Simscape modeling best practices for replacing Simscape subsystem with state-space algorithm. - Partition Simscape Models Containing a Large Network into Multiple Smaller Networks
Learn how to partition a large Simscape network into multiple networks. - Hardware-in-the-Loop Simulation with Simulink Real-Time(SIMSCAPE)
Hardware-in-the-loop simulation workflow, host-to-target hardware interface, run-time parameters
实现模型和代码生成
- Generate HDL Code for Simscape Models
从SIMSCAPE切换线性模型生成HDL代码。 - Generate HDL Code for Simscape Models with Multiple Networks
How to split a large Simscape network into multiple networks and generate HDL implementation model. - 从SIMSCAPE生成优化的HDL实现模型
Optimize area and timing of HDL implementation model generated from Simscape by using HDL Coder optimizations. - 验证HDL实现模型以SIMSCAPE算法
Validate and resolve simulation mismatch between Simscape algorithm and HDL implementation model. - 提高SIMSCAPE算法生成的HDL实现模型的采样率
了解有关生成的HDL实现模型中的过采样以及模型样本时间与原始SIMSCAPE算法的样本时间的关系。
SIMSCAPE HDL工作流顾问
- SIMSCAPE HDL工作流顾问任务
Learn about the Simscape HDL Workflow Advisor and the various tasks to convert the Simscape algorithm to HDL implementation model. - SIMSCAPE HDL工作流顾问提示和指南
Learn about tips in Simscape HDL Workflow Advisor UI and how to use them as workflow guidelines.