Initialize test bench inputs
Specify initial value driven on test bench inputs before data is asserted to DUT
Model Configuration Pane: Test Bench
Description
Specify initial value driven on test bench inputs before data is asserted to DUT.
Dependencies
This option is disabled if you select the entire model. Select the DUT instead for Generate HDL for setting.
Settings
Off
(default) | On
On
Initial value driven on test bench inputs is
'0'
.Off
Initial value driven on test bench inputs is
'X'
(unknown).
Tips
To set this property, use hdlset_param
or makehdltb
. To view the property value, use hdlget_param
.
For example, you can specify this parameter for the symmetric_fir
subsystem inside the sfir_fixed
model using either of these methods.
Pass the property as an argument to the
makehdltb
function.makehdltb('sfir_fixed/symmetric_fir', ... 'InitializeTestBenchInputs', 'on')
When you use
hdlset_param
, you can set the parameter on the model and then generate HDL code usingmakehdltb
.hdlset_param('sfir_fixed', 'InitializeTestBenchInputs', 'on') makehdltb('sfir_fixed/symmetric_fir')
Recommended Settings
No recommendations.
Programmatic Use
Parameter:
InitializeTestBenchInputs |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2012a