From f2caeaf83acb12ae52f047627713db51bbb30942 Mon Sep 17 00:00:00 2001 From: developandplay <34752929+developandplay@users.noreply.github.com> Date: Tue, 8 Jun 2021 00:51:11 +0200 Subject: [PATCH] Fix base_address for LiteDRAMWishbone2Native Fixes `origin == None` due to https://github.com/litex-hub/litex-boards/commit/ba01776 --- litex/soc/integration/soc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 9f36c0d8f..a2f2be55f 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -1326,7 +1326,7 @@ class LiteXSoC(SoC): self.submodules += LiteDRAMWishbone2Native( wishbone = litedram_wb, port = port, - base_address = origin) + base_address = self.bus.regions["main_ram"].origin) self.submodules += wishbone.Converter(mem_wb, litedram_wb) # Check if bus is a Native bus and connect it. if isinstance(mem_bus, LiteDRAMNativePort):