Share and Reuse Bus-Routing Blocks
With custom libraries, you can share and reuse blocks that input or output buses. For a block linked to a parent library block that expects a bus input, you must provide the appropriate input bus. For example, the input bus for a Bus Selector block that is linked to a library must contain signals that have the same name as the signals that the parent library block selects.
To modify the parent library block, perform these steps. For details about modifying library links, see Linked Blocks.
Copy the parent library block to a model.
Connect a bus to the input port of the block.
Disable the link to the parent library block.
Edit the block within the context of the model.
Resolve the link to the library.
In the Link Tool, in Push/Restore Mode, select
Pushto place the edited content in the library.
Save the library.
To lock the interface of a parent library block, set its data type to a
With subsystem references, you can share and reuse a subsystem containing blocks that input or output buses and their associated signal lines. For more information, see Subsystem Reference.