Main Content

Test Bench Postfix Parameters

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.

Test bench name postfix

Specify a suffix appended to the test bench name.

Settings

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.

Dependencies

Make sure that the system selected is the DUT. This option is disabled if you select the entire model.

Command-Line Information

Property: TestBenchPostFix
Type: character vector
Default: '_tb'

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

Test bench reference postfix

Specify a character vector to be appended to names of reference signals generated in test bench code.

Settings

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.

Dependencies

Make sure that the system selected is the DUT. This option is disabled if you select the entire model.

Command-Line Information

Parameter: TestBenchReferencePostFix
Type: character vector
Default: '_ref'

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

Test bench data file name postfix

Specify suffix added to test bench data file name when generating multi-file test bench.

Settings

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.

Dependency

This parameter is enabled by Multi-file test bench.

Command-Line Information

Property: TestBenchDataPostFix
Type: character vector
Default: '_data'

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