esynr3z / corsair

Control and Status Register map generator for HDL projects
https://corsair.readthedocs.io
MIT License
97 stars 35 forks source link

Add generator for CMSIS SVD #18

Open raffi-g opened 2 years ago

raffi-g commented 2 years ago

This PR adds a generator for CMSIS System View Description files (see here.

As described in #12, in a strictly correct SVD file, the registers are separated into peripherals. However, since this information is not provided in the current register definition, I've simply put them all into one peripheral for now (the name of which is defined as peripheral_name in the config file). Additionally the part_version and a description also have to be given in the config file.

I've checked the output using CMSIS's SVDConv tool.