Describe how your compiler for the hardware rounds the result of dividing two signed integers.
Category: Hardware Implementation
Choose this option if neither
Floor describes the compiler behavior, or if that
behavior is unknown.
If the quotient is between two integers, the compiler chooses the integer that is closer to zero as the result.
If the quotient is between two integers, the compiler chooses the integer that is closer to negative infinity.
To simulate rounding behavior of the C compiler that you use to compile generated code, use the Integer rounding mode parameter for blocks. This setting appears on the Signal Attributes pane of the parameter dialog boxes of blocks that can perform signed integer arithmetic, such as the Product block.
For most blocks, the value of Integer rounding mode
completely defines rounding behavior. For blocks that support fixed-point data and the
Simplest rounding mode, the value of Signed integer division rounds to also affects rounding. For details, see
Rounding (Fixed-Point Designer).
For more information on how this parameter affects code generation, see Hardware Implementation Options (Simulink Coder).
This table lists the compiler behavior described by the options for this parameter.
Selecting a device by using the Device vendor and Device type parameters sets a device-specific value for this parameter.
This parameter is enabled only if you can modify it for the selected hardware.
|Debugging||No impact for simulation or
|Traceability||No impact for simulation or
|Efficiency||No impact for simulation or
recommendation for simulation
without code generation.