Main Content

Create AUTOSAR Architecture from System Composer Model

You can export a System Composer™ Component (System Composer) or architecture model to an AUTOSAR architecture model. You can select Classic or Adaptive Platform. For classic architecture modeling, data interfaces are supported. For adaptive architecture modeling, data interfaces and service interfaces are supported.

Create AUTOSAR Architecture from System Composer Component

To create an AUTOSAR architecture model from a System Composer component, use one of these methods:

  • In your System Composer architecture model, right-click the component and select Create AUTOSAR Architecture Model.

  • Select the component. In the toolstrip, on the Modeling tab, in the Component section, click Create AUTOSAR Architecture Model.

    Create AUTOSAR architecture model from toolstrip

  • Use the createArchitectureModel (System Composer) function with the ClassicAUTOSARArchitecture or AdaptiveAUTOSARArchitecture option for the modelType argument.

During the process, inline subcomponents are created as:

If the component being exported has a defined behavior, the software updates configuration parameters for the linked implementation model to support AUTOSAR modeling. Under Solver, the Type parameter changes to Fixed-step and the Solver parameter changes to auto. Under Code Generation, the System target file changes to autosar.tlc for classic architectures or autosar_adaptive.tlc for adaptive architectures.

After exporting, observe the AUTOSAR icon in the upper left corner. The new AUTOSAR architecture contains the elements from the component, including the previously applied stereotypes.

New AUTOSAR architecture from conversion of System Composer component

Export System Composer Architecture to AUTOSAR Architecture

To export your model to an AUTOSAR architecture, use one of these methods:

  • In the toolstrip, on the Simulation tab, click the Save button arrow, then select a model type.

    Save drop-down menu with emphasis on the Export Model To section.

    Once you select model type, you can specify the New model name and the Destination folder. You must also specify Platform and select Configure behavior models for AUTOSAR.

  • Export your model programmatically using the systemcomposer.exportToAUTOSARArchitecture (System Composer) function.

AUTOSAR Software Architecture Template Constraints and Limitations

The AUTOSAR Software Architecture template applies AUTOSAR platform specific constraints. Model elements in an existing System Composer architecture that are not supported in an AUTOSAR architecture are removed from your model when exported.

The benefit of using the AUTOSAR Software Architecture template is the application of AUTOSAR platform specific constraints. To allow for the capability of end-to-end AUTOSAR software design workflow, the template does not support the use of these elements:

  • A nonunique short name.

  • Local interfaces.

Some System Composer model elements are not supported in the AUTOSAR software architecture template. These elements include:

  • Client ports or server ports in AUTOSAR classic architecture models.

  • Adapter (System Composer) blocks with UnitDelay, RateTransition, or Merge as the applied interface conversion. The applied interface conversion changes to None for these Adapter blocks.

  • Reference components referencing a system or software architecture.

  • systemcomposer.arch.Function (System Composer) objects. System Composer functions are not supported in AUTOSAR Software Composition blocks.

Related Topics