From 0c8c707f24ba2633073c1ce52ce5a8194e6b0fdd Mon Sep 17 00:00:00 2001 From: Greg Davill Date: Tue, 20 Oct 2020 16:38:00 +1030 Subject: [PATCH] ecp5ddrphy: Fix DELAYF initial value I've seen intermittent failures with recent builds. I suspect it is related to the DELAYF primitive not being correctly loaded with an initial value. Holding LOADN LOW ensures a value is correctly loaded. --- litedram/phy/ecp5ddrphy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/phy/ecp5ddrphy.py b/litedram/phy/ecp5ddrphy.py index 08b9b7f..f6b9190 100644 --- a/litedram/phy/ecp5ddrphy.py +++ b/litedram/phy/ecp5ddrphy.py @@ -350,7 +350,7 @@ class ECP5DDRPHY(Module, AutoCSR): self.specials += [ Instance("DELAYF", p_DEL_MODE = "DQS_ALIGNED_X2", - i_LOADN = 1, + i_LOADN = 0, i_MOVE = 0, i_DIRECTION = 0, i_A = dq_i,