Implementation Editor for Component References
The implementation editor for referenced components, i.e. the Impl Ref. Editor window, contains the following elements:
Implementation of Reference area
Implementation of Instance combo box and
buttonLists all available implementations of the referenced component. The button opens the implementation editor of the referenced component.
Memory Location of Instance combo box
Used to select the memory area in which the instance of the referenced component is located. Possible values depend on the target selected in the associated project or default project and – in case of a referenced item – the internal access settings of the explicit reference.
Memory Location of Reference combo box
Used to select the memory area in which the explicit reference is located. Possible values depend on the target selected in the associated project or default project.
Memory Segment combo box
In a project context with an ASCET‑SE target, this combo box is used to select a memory segment. See the ASCET‑SE user guide, chapter "Memory Segments", for more information.
AUTOSAR area
Policy combo box
The combo box is used to set the AUTOSAR <SW-IMPL-POLICY> element of the <DATA-DEF-PROPS>.
The following
settings are available.
Note |
|---|
See the ASCET AUTOSAR user guide or the publications on the AUTOSAR web site for more information on <SW-IMPL-POLICY> and <DATA-DEF-PROPS>. |
Several
restrictions apply.
With AUTOSAR, you can specify if a value may become invalid (e.g., due to a broken sensor).
The following selections are available:
replace
A received invalid value is replaced with the init value.
don't invalidate
Invalidation is switched off.
keep
A received invalid value is kept and dealt with.
external Replacement
The actual value is replaced by the value taken from the replaceWith attribute.
If you select a value other than don't invalidate, an invalidation policy entry is written to the interface description <SWC_name>_interfaces.arxml. The following code extract shows examples.
| EXAMPLE |
|---|
<INVALIDATION-POLICYS> <INVALIDATION-POLICY> <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/ASCET_Interfaces/Impl/SR_interface_name/element1</DATA-ELEMENT-REF> <HANDLE-INVALID>EXTERNAL-REPLACEMENT</HANDLE-INVALID> </INVALIDATION-POLICY> <INVALIDATION-POLICY> <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/ASCET_Interfaces/Impl/SR_interface/element2</DATA-ELEMENT-REF> <HANDLE-INVALID>REPLACE</HANDLE-INVALID> </INVALIDATION-POLICY> <INVALIDATION-POLICY> <DATA-ELEMENT-REF DEST="VARIABLE-DATA-PROTOTYPE">/ASCET_Interfaces/Impl/SR_interface/element3</DATA-ELEMENT-REF> <HANDLE-INVALID>KEEP</HANDLE-INVALID> </INVALIDATION-POLICY> </INVALIDATION-POLICYS> |
OK
Closes the window and accepts your settings.
Cancel
Closes the window without accepting your settings.
You can