soc: fix busword typo
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 11 Feb 2020 16:50:26 +0000 (17:50 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 11 Feb 2020 16:57:05 +0000 (17:57 +0100)
litex/soc/integration/soc.py

index c448ebf86d9932cad209d62ab450eeafe6b8bec0..e4c36ae923c05378396069b1202c7172ee491977 100755 (executable)
@@ -812,9 +812,9 @@ class SoC(Module):
         # Add Memory regions
         for name, memory, mapaddr, mmap in self.csr_bankarray.srams:
             self.csr.add_region(name + "_" + memory.name_override, SoCCSRRegion(
-                origin   = (self.bus.regions["csr"].origin + self.csr.paging*mapaddr),
-                busworkd = self.csr.data_width,
-                obj      = memory))
+                origin  = (self.bus.regions["csr"].origin + self.csr.paging*mapaddr),
+                busword = self.csr.data_width,
+                obj     = memory))
 
         # Sort CSR regions by origin
         self.csr.regions = {k: v for k, v in sorted(self.csr.regions.items(), key=lambda item: item[1].origin)}