Choose When to Use AUTOSAR Mapped Dictionary Hierarchies
R2026bWhen 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
| Goal | Data dictionary hierarchy
(EnableDictionaryHierarchy=true) | Single data dictionary
(EnableDictionaryHierarchy=false) |
|---|---|---|
| Use interfaces and type definitions across multiple data dictionaries that reference each other | Supported | Not supported |
| Have multiple data dictionaries with AUTOSAR platform mappings in the same reference hierarchy | Supported | Not supported |
| Import ARXML descriptions to data dictionaries | Not supported | Supported |
| Update data dictionaries from ARXML files | Not supported | Supported |
| Standalone ARXML export from a data dictionary | Not supported | Supported |
| Configure XML options for standalone ARXML export from a data dictionary | Not supported | Supported |
| Author software address methods | Not supported | Supported |
Edit AUTOSAR properties, such as InterfaceKind, Package, and SwCalibrationAccess | Supported | Supported |
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
EnableDictionaryHierarchytotrueat the time of platform mapping creation.