主要内容

Simscape Hardware-in-the-Loop Workflow

SIMSCAPE支金宝app持HDL代码生成和工作流程,以生成模型中的HDL代码并部署到目标硬件

您可以使用SIMSCAPE™块为您开发的工厂模型生成HDL代码,然后将生成的代码部署到独立的FPGA板上,或在Speedgoat上进行FPGA®I/O模块,SOC设备等。通过将植物模型部署到FPGA板上,您可以加速植物模型的模拟,并通过使用硬件(HIL)模拟实时模拟该模型。

在生成HDL代码之前,请使用sschdladvisorfunction 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 = irwhereRcan 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 HDL工作流顾问