Check usage of vector and bus signals
Guideline: na_0010: Usage of vector and bus signals
This check verifies the usage of buses and Mux blocks.
This check requires a Simulink® Check™ license.
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 ID
|na_0010_a: Check usage of Mux and Demux blocks
|Mux 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 blocks
|Mux 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 vectors
|One or more configuration parameters are set inappropriately.
|Set the configuration parameters to the recommended value.
|na_0010_d: Check usage of bus signals
|One 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
Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to