Main Content

Use Floating Point

Use native floating-point library

Since R2023a

Model Configuration Pane: Floating Point

Description

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.

Settings

on (default) | off

Default: on

on

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

off

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

Tips

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", ... 
            "UseFloatingPoint","on")
  • When you use hdlset_param, set the parameter on the model and then generate HDL code by using makehdl.

    hdlset_param("sfir_single","UseFloatingPoint","on")
    makehdl("sfir_single/symmetric_fir")

Programmatic Use

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

Version History

Introduced in R2023a

expand all