Merge pull request #932 from developandplay/patch-3

Fix base_address for LiteDRAMWishbone2Native
This commit is contained in:
enjoy-digital 2021-06-09 08:58:28 +02:00 committed by GitHub
commit 8cdb0b8db3
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):