From e4997295bdf7bb4cc1245a303c9fb8ef64d14e6a Mon Sep 17 00:00:00 2001 From: Vadim Kaushan Date: Wed, 21 Oct 2020 16:33:43 +0300 Subject: [PATCH] Fix SoC name in SVD generator The name was overwritten with one of the CSR region names --- litex/soc/integration/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/integration/export.py b/litex/soc/integration/export.py index c1957703b..7d63a31ed 100644 --- a/litex/soc/integration/export.py +++ b/litex/soc/integration/export.py @@ -347,9 +347,9 @@ def get_csr_svd(soc, vendor="litex", name="soc", description=None): interrupts[csr] = irq documented_regions = [] - for name, region in soc.csr.regions.items(): + for region_name, region in soc.csr.regions.items(): documented_regions.append(DocumentedCSRRegion( - name = name, + name = region_name, region = region, csr_data_width = soc.csr.data_width) )