Main Content

Check blocks with nonzero ulp error

Check ID: com.mathworks.HDL.ModelChecker.runNFPULPErrorChecks

Check ID: com.mathworks.HDL.ModelAdvisor.runNFPULPErrorChecks

Check for blocks that have nonzero ulp error with Native Floating Point.

Description

This check detects blocks in your Simulink® model that have a nonzero ULP error in native floating-point mode. When you run the check, the Result subpane displays hyperlinks to the blocks that have nonzero ULP error, and the ulp values.

Results and Recommended Actions

To fix this warning, look for instances of blocks that have nonzero ULP error and specify a Tolerance Value by setting Floating point tolerance check based on the ulp error. You can then rerun the check.

Note

Fixing warnings that are reported by this check does not guarantee that your Simulink model has a zero ulp error. Make sure that you verify the ulp of your design by using multiple methods, such as by generating HDL code and test benches.

See Also

Numeric Considerations with Native Floating-Point