Output width of input vector
The Width block generates as output the width of its input vector.
You can use an array of buses as an input signal to a Width block. For details about defining and using an array of buses, see Combine Buses into an Array of Buses.
The Width block accepts real or complex signals of the following data types:
The Width block also supports mixed-type signal vectors.
When the Output data type mode is not
intrinsic data type, the block supports only built-in
numeric types. For more information, see Data Types Supported by Simulink in
the Simulink® documentation.
The Width block ignores the Data type override setting of the Fixed-Point Tool.
Specify the output data type to be the same as the input, or inherit the data type by back propagation. You can also choose to specify a built-in data type from the drop-down list in the Output data type parameter.
This parameter is visible when you select
intrinsic data type for Output data type mode.
Select a built-in data type from the drop-down list.
Double | Single | Boolean | Base Integer | Fixed-Point | Enumerated | Bus