主要内容

Architecture Development

R2026b
Develop and define AUTOSAR software compositions and components in software architectures (requires System Composer™)

AUTOSAR Blockset software supports software composition modeling for the AUTOSAR Adaptive Platform and Classic Platform. An AUTOSAR architecture model provides resources and a canvas for developing AUTOSAR composition and component models. From the architecture model, you can:

    • Define component behavior by creating, importing, or linking Simulink® models.

    • Define and share interfaces, data types, and constants using Simulink data dictionaries.

    • Configure scheduling and simulation.

    • Design AUTOSAR Adaptive software components by refining software component service interfaces and algorithmic model content. (AUTOSAR Adaptive Platform)

    • Add Basic Software (BSW) service calls and service implementations. (AUTOSAR Classic Platform)

    • Add and configure AUTOSAR parameter components and parameter ports. (AUTOSAR Classic Platform)

Tools

Architectural Data Editor(To be removed) Manage Architectural Data section of Simulink data dictionaries (Since R2023b)
Code Mappings EditorMap AUTOSAR elements for code generation
Interface EditorCreate and author interfaces in local and shared data dictionaries
Service Mappings EditorMap model elements to service interface definitions (Since R2026b)

Blocks

Adaptive Component blockAdaptive ComponentModel adaptive software component in AUTOSAR architecture model (Since R2023a)
Classic Component blockClassic ComponentModel classic software component in AUTOSAR architecture model
Software Composition blockSoftware CompositionModel software composition in AUTOSAR architecture model
Diagnostic Service Component blockDiagnostic Service ComponentConfigure AUTOSAR Diagnostic Services and Runtime Environment (RTE) for emulation
NVRAM Service Component blockNVRAM Service ComponentConfigure AUTOSAR NVRAM Services and Runtime Environment (RTE) for emulation
Adapter blockAdapterConnect components with different interfaces
Variant Component blockVariant ComponentConditional variations of AUTOSAR architecture models (Since R2025a)

Objects

Simulink.dictionary.ArchitecturalDataEdit architectural data in a Simulink data dictionary programmatically (Since R2023b)
autosar.dictionary.ARClassicPlatformMappingManage platform-specific properties for elements in data dictionary mapped to AUTOSAR Classic Platform (Since R2022b)
autosar.arch.ModelAUTOSAR architecture model
autosar.arch.CompositionAUTOSAR software composition in architecture model
autosar.arch.ComponentAUTOSAR software component in architecture model
autosar.arch.CompPortAUTOSAR component or composition port in architecture model
autosar.arch.ConnectorConnection between ports in AUTOSAR architecture model
autosar.arch.ParameterComponentAUTOSAR software parameter component (Since R2025a)
autosar.arch.ParameterPortAUTOSAR software parameter component port (Since R2025a)

Functions

openOpen AUTOSAR architecture model
findFind AUTOSAR architecture, composition, component, parameter component and elements
getGet property of AUTOSAR architecture element
getArchPortGet architecture port corresponding to component or composition port
getXmlOptionsGet XML option for AUTOSAR architecture model
getPlatformPropertyGet AUTOSAR platform property from data dictionary (Since R2022b)
setPlatformPropertySet AUTOSAR properties for data interface or element in data dictionary (Since R2022b)
getPlatformPropertiesGet AUTOSAR platform properties from data dictionary (Since R2022b)
connectConnect AUTOSAR architecture components and compositions
layoutArrange AUTOSAR composition or architecture model layout based on heuristics
setSet property of AUTOSAR architecture element
linkDictionaryLink data dictionary to AUTOSAR architecture model (Since R2023a)
setInterfaceAssign port interface to AUTOSAR component, composition, or architecture port
setPlatformSet platform kind of architecture model to classic or adaptive (Since R2023a)
setXmlOptionsSet XML option for AUTOSAR architecture model

Topics

Composition and Component Development

Architecture Data Management

Simulation

Featured Examples