kactus2 / kactus2dev

Kactus2 is a graphical EDA tool based on the IP-XACT standard.
https://research.tuni.fi/system-on-chip/tools/
GNU General Public License v2.0
191 stars 35 forks source link

Deleting bus definition wire ports breaks components. #59

Closed TonyReinberger closed 2 years ago

TonyReinberger commented 2 years ago

Kactus2 3.9.171 64bit Windows

I've created a bus definition and defined a few wired ports.

image

I then have a component which maps them on a bus interface.

image

If I then delete a bus wired port (in this case port_1) and go back to the component, selecting the portmap, the table is now broken with an empty line.

image

Changing the sort order will even mess with the headings.

image

An attempt to save the component results in the following error.

The document contained the following error(s):

  • Could not locate logical port port_1 mapped within master bus interface bus_interface

The only way to fix the component is to go into the xml file and delete the portmap for port_1. Once this is done, the bus interface is restored without errors.

image

teuhom commented 2 years ago

Fixed in https://github.com/kactus2/kactus2dev/commit/62c64873baa98efc6fed89ce1b953c0eea6d732a