HDL Code Generation
Generate HDL code for your plant model to deploy onto a target hardware platform. Use
the sschdladvisor
function to generate an HDL-compatible state-space model called an HDL implementation model. You can use HDL Coder™ to generate code for this model.
Before generating code, you can specify a single
or
double
floating-point data type, or fixed-point
data
type for performing the matrix computations of your HDL algorithms. You can generate the
logic to verify whether the generated HDL implementation model is functionally equivalent to
your original Simscape™ model. For this logic you can also specify the tolerance value for the
numerical correctness.
Functions
sschdladvisor | Open Simscape HDL Workflow Advisor |
hdladvisor | Display HDL Workflow Advisor |
hdlsetuptoolpath | Set up system environment to access FPGA synthesis software |
makehdl | Generate HDL RTL code from model, subsystem, or model reference |
Topics
- Generate HDL Code for Simscape Models
Generate HDL code from Simscape switched linear models.
- Generate HDL Code for FPGA Platforms from Simscape Models (Simscape)
Learn how to convert Simscape models to HDL Code for FPGA Deployment.
- Generate Optimized HDL Implementation Model from Simscape
Optimize area and timing of HDL implementation model generated from Simscape by using HDL Coder optimizations.
- Validate HDL Implementation Model to Simscape Algorithm
Validate and resolve simulation mismatch between Simscape algorithm and HDL implementation model.
- Improve FPGA Sampling Frequency of HDL Implementation Model Generated from Simscape Algorithm
Oversampling in generated HDL implementation model, and relation between model sample time and sample time of original Simscape algorithm.
- Generate HDL Code for Two-Speed Transmission Model Containing Mode Charts
Generate HDL code and synthesize the results for a two-speed transmission model with braking that contains mode charts.
- Synthesis Results for Simscape Hardware-in-the-Loop Workflow
Access synthesis results for Simscape hardware-in-the-loop workflow example models.