Contenu principal

Choose When to Use AUTOSAR Mapped Dictionary Hierarchies

R2026b

When you add an AUTOSAR Classic Platform mapping to the Architectural Data section of a Simulink® data dictionary, you can choose between two configurations by using the EnableDictionaryHierarchy name-value argument of the addPlatformMapping function. Each configuration supports different workflows and capabilities. Use the guidance in this topic to choose the configuration that best matches your system design and organizational requirements.

Compare AUTOSAR Classic Platform Mapping Configurations

GoalData dictionary hierarchy (EnableDictionaryHierarchy=true)Single data dictionary (EnableDictionaryHierarchy=false)
Use interfaces and type definitions across multiple data dictionaries that reference each otherSupportedNot supported
Have multiple data dictionaries with AUTOSAR platform mappings in the same reference hierarchySupportedNot supported
Import ARXML descriptions to data dictionariesNot supportedSupported
Update data dictionaries from ARXML filesNot supportedSupported
Standalone ARXML export from a data dictionaryNot supportedSupported
Configure XML options for standalone ARXML export from a data dictionaryNot supportedSupported
Author software address methodsNot supportedSupported

Edit AUTOSAR properties, such as InterfaceKind, Package, and SwCalibrationAccess

SupportedSupported

When to Use Data Dictionary Hierarchies

Set EnableDictionaryHierarchy to true when:

  • You require the ability to manage separate data dictionaries with AUTOSAR platform mappings for different components or compositions within the same modeling hierarchy.

  • You want to author interfaces and types directly in Simulink rather than importing them from ARXML.

To add an AUTOSAR platform mapping to a data dictionary for use in data dictionary hierarchies, use the addPlatformMapping function.

dictName = "ControllerInterfaces.sldd";
archDataObj = Simulink.dictionary.archdata.open(dictName);
platformMapping = addPlatformMapping(archDataObj,"AUTOSARClassic", ...
    EnableDictionaryHierarchy=true);

When to Use One Data Dictionary

Set EnableDictionaryHierarchy to false when:

  • You need to import ARXML descriptions directly to a data dictionary.

  • You need to export ARXML from a standalone data dictionary.

  • You need to create or manage software address methods in a data dictionary.

For this use case, do not enable dictionary hierarchies when you add a platform mapping to the data dictionary. For example:

dictName = "MyInterfaces.sldd";
archDataObj = Simulink.dictionary.archdata.open(dictName);
platformMapping = addPlatformMapping(archDataObj,"AUTOSARClassic", ...
    EnableDictionaryHierarchy=false);

Constraints

  • All data dictionaries with an AUTOSAR platform mapping in the same reference hierarchy must be configured for use in data dictionary hierarchies by setting EnableDictionaryHierarchy to true at the time of platform mapping creation.

See Also

Functions

Objects

Topics