targets: fomu: use memory array for sram address

Use the memory array to find the address for the sram bank.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-09-17 17:07:26 +08:00
parent 348677598d
commit 218bd353c1
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class BaseSoC(SoCCore):
# Use this as CPU RAM.
spram_size = 128*1024
self.submodules.spram = up5kspram.Up5kSPRAM(size=spram_size)
self.register_mem("sram", 0x10000000, self.spram.bus, spram_size)
self.register_mem("sram", self.mem_map["sram"], self.spram.bus, spram_size)
if usb_core is not None:
# Add USB pads. We use DummyUsb, which simply enumerates as a USB