Create bus from input signals
Simulink / Commonly Used Blocks
Simulink / Signal Routing
HDL Coder / Signal Routing
The Bus Creator block combines a set of input signals into a bus. You can connect any signal types to the input ports, including other buses. You can access signals in a bus by using a Bus Selector block.
Elements of a bus must have unique names. If duplicate names are present, the Bus
Creator block appends the port number to all input signal names. For signals that do not
have names, the Bus Creator block generates names in the form
signaln
, where n
is the port number connected
to the signal. You can refer to signals by name when you search for their sources or
select signals for connection to other blocks. For signal naming guidelines, see Signal Names and Labels.
For models that include buses composed of many elements, consider using the In Bus Element and Out Bus Element blocks. You can use these bus element port blocks instead of Inport with Bus Selector blocks for inputs, and Outport with Bus Creator blocks for outputs.
Bus element port blocks:
Reduce signal line complexity and clutter in a block diagram.
Make it easier to change the interface incrementally.
Allow access to a bus element closer to the point of usage, avoiding the use of a Bus Selector and Goto block configuration.
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Bus Assignment | Bus Selector | Bus to Vector | Out Bus Element