Naming and Layout Options for Model Generation

This section contains different naming options available in HDL Code Generation > Global Settings pane under Model Generation tab. You can control the prefix for the generated model name and the suffix for the validation model name.

Prefix for generated model name

Specify the prefix to the generated model name.

Settings

Default: 'gm_'

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

Command-Line Information

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

To set this property, use hdlset_param or makehdl. To view the property value, use 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', ... 
            'GeneratedModelNamePrefix','sm_')
  • When you use hdlset_param, set the parameter on the model, and then generate HDL code by using makehdl.

    hdlset_param('sfir_fixed','GeneratedModelNamePrefix','sm_')
    makehdl('sfir_fixed/symmetric_fir')

Dependency

To specify Prefix for generated model, select Generated model.

See Also

Suffix for validation model name

Specify the suffix for the validation model name.

Settings

Default:'_vnl'

Specify the suffix as a character vector. HDL Coder appends the suffix to name of validation model.

Command-Line Information

Property: ValidationModelNameSuffix
Type: character vector
Default: '_vnl'

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

For example, to indicate that you are using the generated model as a software interface model, you can use the suffix _sm for the validation model name. 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', ... 
            'ValidationModelNameSuffix','_sm')
  • When you use hdlset_param, set the parameter on the model, and then generate HDL code by using makehdl.

    hdlset_param('sfir_fixed','ValidationModelNameSuffix','_sm')
    makehdl('sfir_fixed/symmetric_fir')

Dependency

To specify Suffix for validation model, select Generated model and Validation model.

See Also

Auto block placement

Specify automatic placement of blocks in the HDL model.

Settings

Default: On

Command-Line Information

Property: autoplace
Type: character vector
Value: 'on' | 'off'
Default: 'on'

To set this property, use hdlset_param:

hdlset_param(gcs,'autoplace','on')

Dependency

To select Auto block placement, first select Generated model.

See Also

Model Generation Parameters for HDL Code

Auto signal routing

Specify automatic routing of signals in the generated HDL model.

Settings

Default: On

Command-Line Information

Property: autoroute
Type: character vector
Value: 'on' | 'off'
Default: 'on'

To set this property, use hdlset_param:

hdlset_param(gcs,'autoroute','on')

Dependency

To select Auto signal routing, first select Auto block placement.

See Also

Model Generation Parameters for HDL Code

Inter-block horizontal scaling

Scale the generated model horizontally. You can use this setting with Inter-block vertical scaling depending on how tightly packed or loosely packed you want the model to appear.

Settings

Default: 1.7

Command-Line Information

Property: InterBlkHorzScale
Type: positive integer | positive double
Default: 1.7

To set this property, use hdlset_param:

hdlset_param(gcs,'InterBlkHorzScale', 1.7)

Dependency

To select Inter-block horizontal scaling, first select Auto block placement.

See Also

Model Generation Parameters for HDL Code

Inter-block vertical scaling

Scale the generated model vertically. You can use this setting with Inter-block horizontal scaling depending on how tightly packed or loosely packed you want the model to appear.

Settings

Default: 1.2

Command-Line Information

Property: InterBlkVertScale
Type: positive integer | positive double
Default: 1.2

To set this property, use hdlset_param:

hdlset_param(gcs,'InterBlkVertScale', 1.2)

Dependency

To select Inter-block vertical scaling, first select Auto block placement.

See Also

Model Generation Parameters for HDL Code