Main Content

Inherit floating-point output type smaller than single precision

Inherited output data type behavior when block inputs are floating-point data types smaller than single precision

Since R2021a

Model Configuration Pane: Math and Data Types

Description

The Inherit floating-point output type smaller than single precision parameter specifies the desired inherited output data type behavior when block inputs are floating-point data types smaller than single precision.

Data types are smaller than single precision when the number of bits needed to encode the data type is less than the 32 bits needed to encode the single precision data type. For example, half and int16 are smaller than single precision.

This parameter affects only these blocks:

  • Abs

  • Add

  • Difference

  • Divide

  • Dot Product

  • Gain

  • Math Function

  • MinMax

  • Product

  • Product of Elements

  • Sqrt

  • Subtract

  • Sum

  • Sum of Elements

Dependencies

  • This parameter requires a Fixed-Point Designer™ license.

Settings

off (default) | on
On

Inherit a floating-point output data type smaller than single precision when block inputs are floating-point data types smaller than single precision. In cases of overflow, the output data type is set to single precision.

Off

Use an internal rule to determine the output data type of the block. The internal rule chooses a data type that optimizes numerical accuracy, performance, and generated code size, while taking into account the properties of the embedded target hardware. It is not always possible for the software to optimize efficiency and numerical accuracy at the same time.

Tips

  • This parameter affects blocks whose output data type is set to Inherit: Inherit via internal rule, Inherit: Keep MSB, Inherit: Keep LSB, or Inherit: Match scaling when the input is a floating-point data type smaller than single precision.

  • This parameter affects both simulation and code generation.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyOn (when targeting HDL code generation)
Off (otherwise)
Safety precautionNo impact

Programmatic Use

Parameter: InheritOutputTypeSmallerThanSingle
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2021a

See Also

(Fixed-Point Designer)