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 34 forks source link

SVD generator: redundant cluster layer #111

Open hegza opened 3 months ago

hegza commented 3 months ago

SVD files generated from IP-XACT memory maps typically have a redundant cluster layer even when not always necessary. I'm guessing the UI might be enforcing this.

<peripheral>periph</peripheral>
  <cluster>cluster</cluster> <!-- This layer shouldn't be necessary. -->
    <register>reg0</register>
    <register>reg1</register>
    ...
<peripheral>periph</peripheral>
  <!-- Registers can be defined at this layer already. -->
  <register>reg0</register>
  <register>reg1</register>
  ...

We see in the output that there's usually some workaround looking thing like <cluster>registers</cluster>.