Skip to content

Commit

Permalink
targets: Map SPRAM to SRAM when use as SRAM.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Jul 17, 2024
1 parent 524387b commit 88ab3ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion litex_boards/targets/lattice_ice40up5k_evn.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, bios_flash_offset, sys_clk_freq=12e6,

# 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
Expand Down
2 changes: 1 addition & 1 deletion litex_boards/targets/muselab_icesugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, bios_flash_offset, sys_clk_freq=24e6,

# 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
Expand Down

0 comments on commit 88ab3ec

Please sign in to comment.