Visible to Intel only — GUID: mwh1409958796097
Ixiasoft
Visible to Intel only — GUID: mwh1409958796097
Ixiasoft
4.3.8.5. Include an Internal Register Map Description in the .svd for Agent Interfaces Connected to an HPS Component
To specify their internal register map, the IP component designer must write and generate their own .svd file and attach it to the agent interface using the following command:
set_interface_property <agent interface> CMSIS_SVD_FILE <file path>
The CMSIS_SVD_VARIABLES interface property allows for variable substitution inside the .svd file. You can dynamically modify the character data of the .svd file by using the CMSIS_SVD_VARIABLES property.
Setting the CMSIS_SVD_VARIBLES Interface Property
For example, if you set the CMSIS_SVD_VARIABLES in the _hw tcl file, then in the .svd file if there is a variable {width} that describes the element <size>${width}</size>, it is replaced by <size>23</size> during generation of the .svd file. Note that substitution works only within character data (the data enclosed by <element>...</element>) and not on element attributes.
set_interface_property <interface name> \
CMSIS_SVD_VARIABLES "{width} {23}"