Floating point tolerance
Numeric tolerance when comparing floating point values from Simulink output with the DPI component outputs running in the HDL simulator
Since R2025a
Model Configuration Pane: SystemVerilog DPI / Test Bench Generation
Description
Specify a numeric tolerance when comparing floating point values from Simulink® output with the DPI component outputs running in the HDL simulator. Differences smaller than the specified tolerance value are considered equivalent.
Small differences can be caused when the HDL simulator is using different math libraries than the ones Simulink and MATLAB® use.
Dependencies
To enable this parameter, you must select Generate test bench.
Settings
4.09e-16
(default)Default:
4.409e-16
.
Programmatic Use
Parameter:
DPIFloatingPointTolerance |
Type: |
Values:
4.09e-16 |
Default:4.09e-16
|
Version History
Introduced in R2025a