Fix SoC name in SVD generator

The name was overwritten with one of the CSR region names
This commit is contained in:
Vadim Kaushan 2020-10-21 16:33:43 +03:00
parent 5a6b8f452d
commit e4997295bd
No known key found for this signature in database
GPG Key ID: A501C5DF67C05C4E
1 changed files with 2 additions and 2 deletions

View File

@ -347,9 +347,9 @@ def get_csr_svd(soc, vendor="litex", name="soc", description=None):
interrupts[csr] = irq interrupts[csr] = irq
documented_regions = [] documented_regions = []
for name, region in soc.csr.regions.items(): for region_name, region in soc.csr.regions.items():
documented_regions.append(DocumentedCSRRegion( documented_regions.append(DocumentedCSRRegion(
name = name, name = region_name,
region = region, region = region,
csr_data_width = soc.csr.data_width) csr_data_width = soc.csr.data_width)
) )