Main Content

jc_0611: Input sign for multiplication and division blocks

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — a

  • JMAAB — a

MATLAB Versions

All

Rule

Sub ID a

When using fixed-point values as the input to the multiplication and division Product block, the sign of the data type shall be the same for all input signals.

Custom Parameter

Not Applicable

Rationale

Sub ID a:

  • A utility function is created for each least significant bit (LSB) when fixed-point code is generated. Unification of data type signs can reduce the number of utility functions.

Verification

Model Advisor check: Check signs of input signals in product blocks (Simulink Check)

Last Changed

R2020a

Version History

Introduced in R2020a