Main Content

Use Floating Point

Specify use of native floating-point library

Since R2023a

Model Configuration Pane: Floating Point


Use the native floating-point library in your design. You can specify the latency strategy and whether to handle denormal numbers in your design. See Latency Strategy and Handle Denormals.


off (default) | on

Default: Off


Map your design to the native floating-point target library.


Do not map your design to the native floating-point target library.


To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.

For example, you can enable the UseFloatingPoint setting when you generate HDL code for the symmetric_fir subsystem inside the sfir_single model by using either of these methods:

  • Pass the property as an argument to the makehdl function.

    makehdl('sfir_single/symmetric_fir', ... 
  • When you use hdlset_param, set the parameter on the model and then generate HDL code by using makehdl.


Recommended Settings

No recommended settings.

Programmatic Use

Parameter: UseFloatingPoint
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2023a