Main Content

Software Component

Model software component in AUTOSAR architecture model

  • Library:
  • AUTOSAR Blockset

  • Software Component block

Description

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 Component block to add a software component to an AUTOSAR software design.

To add and connect AUTOSAR components:

  • For each component required by the design, from the Modeling tab or the palette, add a Software Component block. You can use the Property Inspector to set the component KindApplication, ComplexDeviceDriver, EcuAbstraction, SensorAccuator, or ServiceProxy. (Application and SensorAccuator are common.)

  • Add component require and provide ports. To add each component port, click an edge of a Software Component block. When port controls appear, select Input for a require port or Output for a provide port.

  • To connect the Software Component blocks to other blocks, connect the block ports with signal lines.

  • To connect the Software Component blocks to architecture or composition model root ports, drag from the component 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.

After you add and connect AUTOSAR components, add Simulink behavior to the AUTOSAR components by creating, importing, or linking models.

If you have Simulink Requirements™ software, you can link components in an AUTOSAR architecture model to Simulink requirements.

Ports

Input

expand all

Require port in the AUTOSAR software component port interface.

If you link the component block to an implementation model, the port interfaces of the block and model, including the number of ports, match.

Output

expand all

Provide port in the AUTOSAR software component port interface.

If you link the component block to an implementation model, the port interfaces of the block and model, including the number of ports, match.

Introduced in R2019b