Main Content

Prefix for generated model name

Prefix of the generated model name

Model Configuration Pane: Global Settings / Model Generation


Specify the prefix of the generated model name.


To specify Prefix for generated model, select Generated model.


'gm_' (default) | character vector

Default: 'gm_'

Specify the prefix as a character vector. HDL Coder™ appends the prefix to name of generated model.


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

For example, to indicate that you are using the generated model as a software interface model, you can use the prefix sm_. Specify this property when you generate HDL code for the symmetric_fir subsystem inside the sfir_fixed model by using either of these methods:

  • Pass the property as an argument to the makehdl function.

    makehdl('sfir_fixed/symmetric_fir', ... 
  • When you use hdlset_param, set the parameter on the model, and then generate HDL code by using makehdl.


Recommended Settings

No recommended settings.

Programmatic Use

Parameter: GeneratedModelNamePrefix
Type: character vector
Default: 'gm_'

Version History

Introduced in R2012b