Main Content

Create AUTOSAR Architecture Views for Analysis

AUTOSAR architectures can be large and complex. Often development work is distributed, with different engineers working on different structural or functional parts of an architecture model. To help analyze structural or functional aspects of an architecture model, you can create filtered views of the model hierarchy.

  • A spotlight view displays the upstream and downstream dependencies of a selected architecture component or composition.

  • A custom view displays a subset of components from the architecture model, based on filtering conditions that you specify. You can filter model elements for operational, functional, or physical analysis.

Filtering an AUTOSAR architecture model for specific attributes and saving the filtered view with the model can help engineers focus and collaborate on their parts of the architecture.

View Component or Composition Dependencies

In an AUTOSAR architecture model, to help analyze component or composition dependencies, you can create a spotlight view. A spotlight view is a simplified view of an architecture component or composition that captures its upstream and downstream dependencies.

To create a spotlight view, open an architecture model and select a component or composition. On the Modeling tab, select Architecture Views > Spotlight.

The spotlight view displays the model elements to which the component or composition connects in a hierarchy. You cannot edit the spotlight diagram layout. This figure shows a spotlight view of component Monitor in AUTOSAR example model autosar_tpc_composition. (To open the example model in a local working folder, use the command openExample('autosar_tpc_composition').)

While in the spotlight view, you can move the spotlight focus to another component or composition. Select another component or composition, place your cursor over the displayed ellipsis, and select model cue Create Spotlight from Component.

To keep a spotlight view visible during model development, you can create the view in a separate model window. To create a separate model window, select a component or composition, right-click the selected block to open its context menu, and select Open in New Window. In the new window, create a spotlight view.

Updating the architecture model diagram with changes refreshes open spotlight views.

To return from a spotlight view to the architecture model view, click the Spotlight close icon or select a component or composition and select model cue Show in Composition.

Simulink® does not save spotlight views with the architecture model.

Create Custom Views for Analysis

To help analyze structural and functional aspects of an AUTOSAR architecture model, you can create a custom view. Based on filtering conditions that you specify, a custom view shows a subset of components from the architecture model. You can filter model elements for operational, functional, or physical analysis.

To create a custom view, open the Architecture Views Gallery. In an open architecture model, on the Modeling tab, select Architecture Views. This figure shows the initial gallery view of AUTOSAR example model autosar_tpc_composition. (To open the example model in a local working folder, use the command openExample('autosar_tpc_composition').)

The views editor shows the option to create a new view.

Suppose that you want to create a view of the architecture model autosar_tpc_composition containing only components that handle throttle position sensor (TPS) signals.

  1. In the gallery view of autosar_tpc_composition, click New View.

    To name the view, under View Properties, enter the name TPS Ports View.

  2. Specify a model elements filter for TPS Ports View.

    1. Under View Configurations, select the Filter tab.

    2. Add and configure a filter clause. Select Add Clause. From the Select drop-down list, select Port. From the Where drop-down list, select Name. In the value text box, enter TPS.

    A new view called 'TPS Ports View' with a filter.

  3. To display the updated TPS Ports View, click Apply Query. The view is filtered to select the components that contain throttle position sensor (TPS) ports.

    The updated view after applying the query.

When you save the architecture model, the view is saved in the Architecture Views Gallery. Other users can then access and share the view.

For more information, see Create Architecture Views Interactively (System Composer).

Related Topics