Generate - Generate HDL code for subsystem or model - MATLAB (original) (raw)
Main Content
Generate HDL code for subsystem or model
Description
Model Configuration Pane: HDL Code Generation
The Generate button generates HDL code for theSubsystem block that you specify by using Generate HDL for parameter. If the Subsystem is not HDL compatible, the code generator displays errors in the HDL Check Report.
Alternatively, in the Simulink Toolstrip, on the HDL Code tab, click the button.
Programmatic Use
Use the makehdl function.
For example, to generate HDL code for the subsystem symmetric_fir
within the model sfir_fixed
, use this command:
makehdl("sfir_fixed/symmetric_fir")
Version History
Introduced in R2013a