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 guidelines. #92

Open CalamaroS opened 9 months ago

CalamaroS commented 9 months ago

Hello, I'm new to the IPXACT world and right now I'm using Kactus2 as a memory map visualization tool, while I'm slowly digging into all of its features. Right now I need to generate an SVD file for a microprocessor which includes a memory map of its peripherals. Since I'm using only the memory map 'field' of the IPXACT, I'm having trouble to understand which are the requirements for SVD generation. In particular, since I don't have a cpu element, I'm having the following error: Screenshot from 2023-12-04 10-32-58

Is there any tutorial or guide to follow for svd generation? Thank you!

epekkar commented 9 months ago

Hi,

We are working on a set of tutorials, but right now there is no instructions on how to run the SVD generation. The error you are getting indicates you need a CPU element in your design. So, to elaborate on that: your microcontroller probably has a module that is the computation core and for that you should add a CPU element in the IP-XACT description in the component editor. The peripherals are their own components with the memory maps (and registers, fields etc.) and connect to the core somehow. The generator will check for the connectivity from the CPU core to the memory maps in the peripherals. In your case, the connection is not found and I guess the issue is that no component has a CPU defined.