This page describes configuration parameters that reside in the HDL Code Generation > Test Bench tab of the Configuration Parameters dialog box. Using the parameters in this tab, you can customize the postfix for the test bench name, data file, and test bench reference.
Specify a suffix appended to the test bench name.
Default:
_tb
For example, if the name of your DUT is my_test
,
HDL Coder™ adds the default postfix _tb
to form the name
my_test_tb
.
Make sure that the system selected is the DUT. This option is disabled if you select the entire model.
Property:
TestBenchPostFix |
Type: character vector |
Default:
'_tb' |
To set this property, use hdlset_param
or makehdltb
. To view the property
value, use hdlget_param
.
Specify a character vector to be appended to names of reference signals generated in test bench code.
Default:
'_ref'
Reference signal data is represented as arrays in the generated test bench code. The character vector specified by Test bench reference postfix is appended to the generated signal names.
Make sure that the system selected is the DUT. This option is disabled if you select the entire model.
Parameter:
TestBenchReferencePostFix |
Type: character vector |
Default:
'_ref' |
To set this property, use hdlset_param
or makehdltb
. To view the property
value, use hdlget_param
.
Specify suffix added to test bench data file name when generating multi-file test bench.
Default:'_data'
HDL Coder applies the Test bench data file name postfix character vector only when generating a multi-file test bench (i.e., when Multi-file test bench is selected).
For example, if the name of your DUT is my_test
, and
Test bench name postfix has the default value
_tb
, the coder adds the postfix _data
to form the test bench data file name my_test_tb_data
.
This parameter is enabled by Multi-file test bench.
Property:
TestBenchDataPostFix |
Type: character vector |
Default:
'_data' |
To set this property, use hdlset_param
or makehdltb
. To view the property
value, use hdlget_param
.