Generated model
Enable or disable generation of generated model
Model Configuration Pane: Global Settings / Model Generation
Description
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 code generator inserts are highlighted in the generated model.
Note
When you select Generated model, the Naming options and Layout options become available.
Settings
on (default) | offDefault: On
onSelect 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.
offClear 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.
Tips
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.
makehdl('sfir_fixed/symmetric_fir')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'); makehdl('sfir_fixed/symmetric_fir')
Recommended Settings
No recommended settings.
Programmatic Use
Parameter: GenerateModel |
| Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2017a