Skip to content

Issue #196 CP (Communication Pattern) not updated when renaming HW nodes

Le Van Truong requested to merge revert-883077ef into master

The root cause of this issue is when user renames a HW, the mapping name of this HW on Communication Pattern is not changed. There are 2 ways to rename a HW on the interactive simulation window:

  • Double click on HW node and then rename it.
  • Right click on HW node and choose "edit".

I have handled both methods above, now user can rename HW without worrying about CP connection. You can test this issue by the model "TTool/modeling/DIPLODOCUS/Zigbee_Andrea.xml" or you can create a new CP with any model for testing. For the testing script:

  • The model has 1 Bus named "Bus012", 2 CPUs named "Src" and "CPU1", 1 Memory named "Memory0" and 1 CP with the mapping to Bus012 and cpu "Src"
  • First I checked the initial mapping containing "CP.TransferInstance : Bus012" and "CP.ControllerInstance : Src"
  • After that I renamed the Bus to "Bus012newBusName" and checked the current mapping contains "CP.TransferInstance : Bus012newBusName" and "CP.ControllerInstance : Src" or not.
  • Finally I renamed cpu "Src" to "SrcnewCPUname" and checked the current mapping contains "CP.TransferInstance : Bus012newBusName" and "CP.ControllerInstance : SrcnewCPUname" or not. image

Merge request reports

Loading