integration/soc: set base_address on LiteDRAMWishbone2Native, fix addressing with...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 20 Feb 2020 15:16:07 +0000 (16:16 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 20 Feb 2020 15:16:36 +0000 (16:16 +0100)
litex/soc/integration/soc.py

index bd896e0bdd6cef99849cd0f333e9f534d1023db3..127aecec8b340a3735716f32e19ffe81cb9d3d85 100755 (executable)
@@ -1001,4 +1001,5 @@ class LiteXSoC(SoC):
             self.add_config("L2_SIZE", l2_cache_size)
 
             # Wishbone Slave <--> LiteDRAM bridge --------------------------------------------------
-            self.submodules.wishbone_bridge = LiteDRAMWishbone2Native(litedram_wb, port)
+            self.submodules.wishbone_bridge = LiteDRAMWishbone2Native(litedram_wb, port,
+                base_address = self.bus.regions["main_ram"].origin)