diff --git a/litex/soc/integration/export.py b/litex/soc/integration/export.py index 22de39f79..7c3f7c178 100644 --- a/litex/soc/integration/export.py +++ b/litex/soc/integration/export.py @@ -428,6 +428,15 @@ def get_csr_svd(soc, vendor="litex", name="soc", description=None): svd.append(' ') svd.append(' ') svd.append(' ') + if len(soc.mem_regions) > 0: + svd.append(' ') + for name, region in soc.mem_regions.items(): + svd.append(' ') + svd.append(' {}'.format(name.upper())) + svd.append(' 0x{:08X}'.format(region.origin)) + svd.append(' 0x{:08X}'.format(region.size)) + svd.append(' ') + svd.append(' ') svd.append('') return "\n".join(svd)