Tolerance Value - Enter the tolerance value based on the floating-point tolerance check setting that you specify - MATLAB (original) (raw)

Main Content

Enter the tolerance value based on the floating-point tolerance check setting that you specify

Model Configuration Pane: Test Bench

Description

Enter the tolerance value based on the floating-point tolerance check setting that you specify.

Settings

1e-07 (default) | 0

The value must be a positive integer or a double data type.

The default tolerance value depends on the floating-point tolerance check setting that you specify. When you set the Floating point tolerance check based on to:

Tips

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

For example, to specify the floating-point tolerance value for a model, use the hdlset_param function to specify the tolerance strategy, and then enter the tolerance value. For example, to check the floating-point tolerance based on ULP error and enter the tolerance value:

% Check for floating-point tolerance based on ULP hdlset_param('sfir_single', 'FPToleranceStrategy', 'ULP');

% When using ULP, optionally enter tolerance value >= 0
hdlset_param('FP_test_16a', 'FPToleranceValue', 1);

% Generate HDL testbench with specified tolerance setting makehdltb('sfir_single/symmetric_fir')

No recommendations.

Programmatic Use

Property: FPToleranceValue
Type: double | integer
Default: 1e-07

Version History

Introduced in R2017a