Main Content

Check usage of bit-shift operations

Check ID: mathworks.hism.hisl_0073

Description

Identifies blocks or expressions that perform bit-shift operations greater than the bit width of Input type that might result in violation of coding standards.

Available with Simulink® Check™.

Results and Recommended Actions

ConditionRecommended Action
One or more blocks or expressions in the model perform bit-shift operations greater than the bit width of Input type.Remodel to avoid bit-shift operations greater than the bit width of Input type.

Capabilities and Limitations

  • This check does not verify Expressions with signals as inputs. Such expressions must be verified manually.

  • Runs on library models.

  • Analyzes content in masked subsystems that have no workspaces and no dialogs. By default, the input parameter Look under masks is set to all.

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

  • Allows exclusions of blocks and charts.

See Also