From 00fc2c516652ae630d933f8b01fce8683213f0c8 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 16 Dec 2020 11:51:33 +0100 Subject: [PATCH] targets/orangecrab: use new DM remapping capability of LiteDRAM to fix LDM/UDM. Required by VexRiscv-SMP that uses DMs on LiteDRAM interface. --- litex_boards/targets/orangecrab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex_boards/targets/orangecrab.py b/litex_boards/targets/orangecrab.py index 016d443..df7768c 100755 --- a/litex_boards/targets/orangecrab.py +++ b/litex_boards/targets/orangecrab.py @@ -180,7 +180,8 @@ class BaseSoC(SoCCore): ddram_pads = platform.request("ddram") self.submodules.ddrphy = ECP5DDRPHY( pads = ddram_pads, - sys_clk_freq = sys_clk_freq) + sys_clk_freq = sys_clk_freq, + dm_remapping = {0:1, 1:0}) self.ddrphy.settings.rtt_nom = "disabled" self.add_csr("ddrphy") if hasattr(ddram_pads, "vccio"):