soc: add memory.name_override to name when adding csrbankarray.srams to csr_regions
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 3 Apr 2015 10:45:32 +0000 (12:45 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 3 Apr 2015 10:45:32 +0000 (12:45 +0200)
misoclib/soc/__init__.py

index 441ad5e4393b9fa6607ba2f79592b671d7251f94..f900dac9147454d64aa6a678b70dccafc33804bc 100644 (file)
@@ -179,7 +179,7 @@ class SoC(Module):
                        for name, csrs, mapaddr, rmap in self.csrbankarray.banks:
                                self.add_csr_region(name, self.mem_map["csr"]+0x80000000+0x800*mapaddr, self.csr_data_width, csrs)
                        for name, memory, mapaddr, mmap in self.csrbankarray.srams:
-                               self.add_csr_region(name, self.mem_map["csr"]+0x80000000+0x800*mapaddr, self.csr_data_width, memory)
+                               self.add_csr_region(name + "_" + memory.name_override, self.mem_map["csr"]+0x80000000+0x800*mapaddr, self.csr_data_width, memory)
 
                # Interrupts
                if hasattr(self.cpu_or_bridge, "interrupt"):