Skip to content

Commit

Permalink
Revert "soc/integration/soc: add_sdram, remove litedram_wb and conver…
Browse files Browse the repository at this point in the history
…ter: let LiteDRAMWishbone2Native dealing with addr/data width"

This reverts commit 6d34b8e.
  • Loading branch information
trabucayre committed Dec 12, 2023
1 parent 6d34b8e commit 94eca86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1710,12 +1710,15 @@ def add_sdram(self, name="sdram", phy=None, module=None, origin=None, size=None,
if l2_cache_full_memory_we:
l2_cache = FullMemoryWE()(l2_cache)
self.l2_cache = l2_cache
wb_sdram = self.l2_cache.slave
litedram_wb = self.l2_cache.slave
self.add_config("L2_SIZE", l2_cache_size)
else:
litedram_wb = wishbone.Interface(data_width=port.data_width, address_width=32, addressing="word")
self.submodules += wishbone.Converter(wb_sdram, litedram_wb)

# Wishbone Slave <--> LiteDRAM bridge.
self.wishbone_bridge = LiteDRAMWishbone2Native(
wishbone = wb_sdram,
wishbone = litedram_wb,
port = port,
base_address = self.bus.regions["main_ram"].origin
)
Expand Down

0 comments on commit 94eca86

Please sign in to comment.