Main Content

Check usage of vector and bus signals

Check ID: mathworks.jmaab.na_0010

Guideline: na_0010: Usage of vector and bus signals

Description

This check verifies the usage of buses and Mux blocks.

This check requires a Simulink® Check™ license.

Check Parameterization

This check contains sub-checks that correspond to sub IDs specified in the MAB and JMAAB modeling guidelines. You can use the Model Advisor configuration editor to specify which sub-IDs (one or multiple) to execute.

For reference, the MAB guideline sub-ID(s) that are recommended for use by the NA-MAAB and JMAAB modeling standards organizations are:

  • NA-MAAB — No recommendations

  • JMAAB — a, b, c, d

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
na_0010_a: Check usage of Mux and Demux blocksMux and Demux blocks are not used to generate and decompose vectors.Use Mux and Demux blocks to generate and decompose vectors respectively.
na_0010_b: Check inputs to Mux blocksMux blocks have inputs which are not scalars or vectors.Use only scalar or vector signals as inputs to Mux blocks.
na_0010_c: Check bus signals treated as vectorsOne or more configuration parameters are set inappropriately.Set the Bus signal treated as vector parameter to error.
na_0010_d: Check usage of bus signalsOne or more blocks are not supported for use with bus signals.Use buses only with bus-supported blocks.

Capabilities and Limitations

  • The check does not flag when blocks other than Demux and Mux are used to generate or decompose a vector. For example, a Selector block used instead of Demux or a Vector Concatenate used instead of Mux block. (Sub ID: a)

  • This check supports auto fix mechanism, you can now click on the Modify button to fix the errors displayed in the report.

  • Does not run on library models.

  • Allows exclusions of blocks or charts.

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

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

See Also