Main Content

Generated model

Enable or disable generation of generated model

Model Configuration Pane: Global Settings / Model Generation


Enable or disable generation of the generated model that shows latency and numeric differences between your Simulink® DUT and the generated HDL code. Delays that the coder inserts are highlighted in the generated model.


When you select Generated model, the Naming options and Layout options become available.


on (default) | off

Default: On


Select this setting to generate the generated model. By default, HDL Coder™ generates code and the generated model. To generate only the generated model, clear the Generate HDL code check box.


Clear this setting when you do not want to generate the generated model. When you click the Generate button, HDL Coder generates code for the model.


To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.

By default, the GenerateHDLCode property is enabled. You can use this property in conjunction with the GenerateModel property to specify whether to generate the generated model and the HDL code. To generate the code and the generated model, run makehdl.


If you want to generate only the generated model, disable the GenerateHDLCode property and run makehdl.

hdlset_param('sfir_fixed', 'GenerateModel','on');
hdlset_param('sfir_fixed', 'GenerateHDLCode',off');

Recommended Settings

No recommended settings.

Programmatic Use

Parameter: GenerateModel
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2017a