Validation model
Enable or disable generation of a validation model
Model Configuration Pane: Global Settings / Model Generation
Description
Enable or disable generation of a validation model that verifies the functional equivalence of the original model with the generated model. The validation model contains the original and the generated DUT models. You can use the generated DUT model to observe the effect of block settings and optimizations such as resource sharing, streaming, and delay balancing.
Settings
off
(default) | on
Default: Off
on
Select this setting to generate the validation model. By default, HDL Coder™ generates code and the validation model. To generate only the validation model, clear the Generate HDL code check box.
off
Clear this setting when you do not want to generate the validation model. When you click the Generate button, HDL Coder generates code for the model.
Tips
To set this property, use the functions hdlset_param
or makehdl
. To view the property value, use
the function hdlget_param
.
By default, the GenerateHDLCode
property is enabled. You can use this property in conjunction with the GenerateValidationModel
property to specify whether to generate the validation model and the HDL code. To generate the code and the validation model, enable the GenerateValidationModel
property with makehdl
.
hdlset_param('sfir_fixed', 'GenerateValidationModel','on'); makehdl('sfir_fixed/symmetric_fir')
If you want to generate only the validation model, disable the GenerateHDLCode
property and enable the GenerateValidationModel
property with makehdl
.
hdlset_param('sfir_fixed', 'GenerateValidationModel','on'); hdlset_param('sfir_fixed', 'GenerateHDLCode',off'); makehdl('sfir_fixed/symmetric_fir'
Recommended Settings
No recommended settings.
Programmatic Use
Parameter: GenerateValidationModel |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2012a