Main Content

Define Safety Levels for AUTOSAR Architecture Model Elements

AUTOSAR architecture model provides resources to define safety levels according to the ASIL (Automotive Safety Integrity Level) risk classification scheme defined by ISO 26262 standard. This classification helps defining the safety requirements. You can define the safety levels by using graphical user interfaces, equivalent architecture modeling functions, or both.

AUTOSAR Blockset enables you to define safety levels for these elements.

  • Component

  • Port of a component

  • Runnable of a component

  • Composition

You can export ASIL specification to an ARXML file, import an ARXML containing ASIL specification to a Simulink model and set the ASIL information on the imported model.

Configure ASIL Safety Level

  1. Open an AUTOSAR architecture model. You can open an example model using this command

    openExample('autosar_tpc_composition')

  2. Select Profile Editor > Import Profile > ASIL Profile under Modeling tab in the tool strip. Alternatively, you can perform the same by using the command.

    model = systemcomposer.loadModel('autosar_tpc_composition');
    model.applyProfile('ASILProfile');

  3. Set the ASILProfile.SafetyIntegrityLevel stereotype on the property inspector. Alternatively, you can perform the same by using the command.

    model.Architecture.applyStereotype('ASILProfile.SafetyIntegrityLevel');

  4. Set the ASIL levels for components, ports, composition by selecting the element and specifying the ASIL field in property inspector.

    Alternatively, you can perform the same by using the command.

    model.Architecture.setProperty('ASILProfile.SafetyIntegrityLevel.ASIL',"'D'");

  5. To set the ASIL level for a runnable, select the element from Function Editor and specify the ASIL level.

The ASIL levels are exported to ARXML and this ARXML code shows the ASIL level set to C for the component autosar_tpc_actuator.

The ASIL level specified for a component is applicable for the ports present in the component. You can override the ASIL level of a port by selecting the port and specifying the ASIL level.

See Also

(System Composer) | (System Composer) | (System Composer)