Skip to content

Commit e6f8477

Browse files
Merge pull request #774 from trabucayre/radiona_ulx4m_ld
targets/radiona_ulx4m_ld_v2: Disable DDR3 DM
2 parents 5fd0ff4 + 624d811 commit e6f8477

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

litex_boards/targets/radiona_ulx4m_ld_v2.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,21 @@ def __init__(self, revision="0.3", device="85F", toolchain="trellis", sys_clk_fr
147147
"MT41K512M16": MT41K512M16,
148148
}
149149
sdram_module = available_sdram_modules.get(sdram_device)
150+
l2_cache_size = kwargs.get("l2_size", 8192)
151+
if not l2_cache_size:
152+
raise ValueError("ULX4M-LD DDR3 requires an L2 cache when DM is disabled.")
150153

151154
self.submodules.ddrphy = ECP5DDRPHY(
152-
pads = PHYPadsReducer(platform.request("ddram"), [0, 1]),
153-
sys_clk_freq=sys_clk_freq)
155+
pads = PHYPadsReducer(platform.request("ddram"), [0, 1]),
156+
sys_clk_freq = sys_clk_freq,
157+
with_dm = False,
158+
)
154159
self.comb += self.crg.stop.eq(self.ddrphy.init.stop)
155160
self.comb += self.crg.reset.eq(self.ddrphy.init.reset)
156161
self.add_sdram("sdram",
157162
phy = self.ddrphy,
158163
module = sdram_module(sys_clk_freq, "1:4"),
159-
l2_cache_size = kwargs.get("l2_size", 8192)
164+
l2_cache_size = l2_cache_size,
160165
)
161166

162167
# Ethernet / Etherbone ---------------------------------------------------------------------

0 commit comments

Comments
 (0)