Main Content

Check usage of bit operation blocks

Check ID: mathworks.hism.hisl_0019

Identify bit operation blocks with signed data types as inputs

Description

This check identifies the use of the Bitwise Operations for the input and output data types. The check also looks at other bit operations blocks as following:

  • Bit Clear

  • Bit Set

  • Bit Shift

  • Bitwise operator

  • Extract Bits

  • Shift Arithmetic

Available with Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action
Bitwise Operations are used with signed data types.Use unsigned data type for Bitwise operations.

Capabilities and Limitations

  • Allows exclusions of blocks and charts.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to all.

  • Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to on.

See Also