mirror of
https://github.com/litex-hub/litex-boards.git
synced 2025-01-03 03:43:36 -05:00
targets: Map SPRAM to SRAM when use as SRAM.
This commit is contained in:
parent
524387b45d
commit
88ab3eca6f
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# 128KB SPRAM (used as SRAM) ---------------------------------------------------------------
|
||||
self.spram = Up5kSPRAM(size=128 * KILOBYTE)
|
||||
self.bus.add_slave("sram", self.spram.bus, SoCRegion(size=128 * KILOBYTE))
|
||||
self.bus.add_slave("sram", self.spram.bus, SoCRegion(origin=self.mem_map["sram"], size=128 * KILOBYTE))
|
||||
|
||||
# SPI Flash --------------------------------------------------------------------------------
|
||||
# 4x mode is not possible on this board since WP and HOLD pins are not connected to the FPGA
|
||||
|
|
|
@ -73,7 +73,7 @@ class BaseSoC(SoCCore):
|
|||
|
||||
# 128KB SPRAM (used as SRAM) ---------------------------------------------------------------
|
||||
self.spram = Up5kSPRAM(size=64 * KILOBYTE)
|
||||
self.bus.add_slave("sram", self.spram.bus, SoCRegion(size=64 * KILOBYTE))
|
||||
self.bus.add_slave("sram", self.spram.bus, SoCRegion(origin=self.mem_map["sram"], size=64 * KILOBYTE))
|
||||
|
||||
# SPI Flash --------------------------------------------------------------------------------
|
||||
from litespi.modules import W25Q64FV
|
||||
|
|
Loading…
Reference in a new issue