It’s now possible to duplicate an existing register map in airhdl.
For that, just click on the “Duplicate register map” link at the bottom of the register maps list:
This will bring up the “Duplicate register map” dialog, where you can select which register map you’d like to clone:
The freshly created register map has the same name as the original one, but with a “- COPY” suffix:
Of course, as register map names are not allowed to contains spaces and dashes, that’s not a valid identifier. So you will need to to rename it by selecting the “edit register map” function in the register map overview:
And then changing its name to a valid identifier:
If you like watching videos, here’s a short demonstration of the “duplicate register map” feature: