Fix base_address for LiteDRAMWishbone2Native

Fixes `origin == None` due to https://github.com/litex-hub/litex-boards/commit/ba01776
This commit is contained in:
developandplay 2021-06-08 00:51:11 +02:00 committed by GitHub
parent a064e9d048
commit f2caeaf83a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):