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.
Specify automatic placement of blocks in the HDL model.
Default: On
Property:
autoplace |
Type: character vector |
Value:
'on' | 'off' |
Default:
'on' |
To set this property, use hdlset_param
:
hdlset_param(gcs,'autoplace','on')
To select Auto block placement, first select Generated model.
Specify automatic routing of signals in the generated HDL model.
Default: On
Property:
autoroute |
Type: character vector |
Value:
'on' | 'off' |
Default:
'on' |
To set this property, use hdlset_param
:
hdlset_param(gcs,'autoroute','on')
To select Auto signal routing, first select Auto block placement.
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.
Default: 1.7
Property:
InterBlkHorzScale |
Type: positive
integer | positive double |
Default:
1.7 |
To set this property, use hdlset_param
:
hdlset_param(gcs,'InterBlkHorzScale', 1.7)
To select Inter-block horizontal scaling, first select Auto block placement.
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.
Default: 1.2
Property:
InterBlkVertScale |
Type: positive
integer | positive double |
Default:
1.2 |
To set this property, use hdlset_param
:
hdlset_param(gcs,'InterBlkVertScale', 1.2)
To select Inter-block vertical scaling, first select Auto block placement.