Use file I/O to read/write test bench data
Create and use data files for reading and writing test bench input and output data
Model Configuration Pane: Test Bench
Description
Create and use data files for reading and writing test bench input and output data.
Dependencies
This option is disabled if you select the entire model. Select the DUT instead for Generate HDL for setting.
Settings
On (default) | OffOnCreate and use data files for reading and writing test bench input and output data.
OffUse constants in the test bench for DUT stimulus and reference data.
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
makehdltbfunction.makehdltb('sfir_fixed/symmetric_fir', ... 'UseFileIOInTestBench', 'off')
When you use
hdlset_param, you can set the parameter on the model and then generate HDL code usingmakehdltb.hdlset_param('sfir_fixed', 'UseFileIOInTestBench', 'off') makehdltb('sfir_fixed/symmetric_fir')
Recommended Settings
No recommendations.
Programmatic Use
Parameter: UseFileIOInTestBench |
| Type: character vector |
Value: 'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2013a