Main Content

Check for double datatypes in the model with Native Floating Point

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

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

Check for double data types in the model.

Description

This check displays a warning when your Simulink® model uses double data types with Floating Point IP Library set to Native Floating Point. The check passes when your model uses double data types but does not have the Floating Point IP Library set to Native Floating Point.

Results and Recommended Actions

To fix this warning, update your design by converting double data types to single and then set the Floating Point IP Library to Native Floating Point. You can then rerun the check.

Note

The check passes when your model uses double data types but does not have the Floating Point IP Library set to Native Floating Point. However, double data types in your model can generate reals in the HDL code which is not synthesizable. To generate synthesizable HDL code, convert double data types to single and set the Floating Point IP Library to Native Floating Point.

See Also

Getting Started with HDL Coder Native Floating-Point Support