Model software composition in AUTOSAR architecture model
In an AUTOSAR architecture model, you use the composition editor and the Simulink® Toolstrip Modeling tab to add and connect compositions and components. Use the Software Composition block to add a nested software composition to an AUTOSAR software design.
To add and connect a nested AUTOSAR composition:
From the Modeling tab or the palette, add a Software Composition block.
Add composition require and provide ports. To add each composition port, click an edge of the Software Composition block. When port controls appear, select Input for a require port or Output for a provide port.
Alternatively, open the Software Composition block. To add each composition port, click the boundary of the composition diagram. When port controls appear, select Input for a require port or Output for a provide port.
To connect the Software Composition block to other blocks, connect the block ports with signal lines.
To connect the Software Composition block to architecture or composition model root ports, drag from the composition ports to the containing model boundary. When you release the connection, a root port is created at the boundary.
Configure additional AUTOSAR properties using the Property Inspector.
An AUTOSAR composition contains a set of AUTOSAR components and compositions with a shared purpose. To populate a composition, open the Software Composition block and begin adding more Software Component and Software Composition blocks.
Input port— Composition require port
Require port in the AUTOSAR software composition port interface.
Output port— Composition provide port
Provide port in the AUTOSAR software composition port interface.