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.
Specify the prefix to the generated model name.
Default:
'gm_'
Specify the prefix as a character vector. HDL Coder™ appends the prefix to name of generated model.
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')
To specify Prefix for generated model, select Generated model.
Specify the suffix for the validation model name.
Default:'_vnl'
Specify the suffix as a character vector. HDL Coder appends the suffix to name of validation model.
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')
To specify Suffix for validation model, select Generated model and Validation model.