# Pastebin RBPjfZ4h diff --git a/litedram/phy/ecp5ddrphy.py b/litedram/phy/ecp5ddrphy.py index 53618db..e02c858 100644 --- a/litedram/phy/ecp5ddrphy.py +++ b/litedram/phy/ecp5ddrphy.py @@ -131,7 +131,7 @@ class ECP5DDRPHY(Module, AutoCSR): wrcmdphase = wrcmdphase, cl = cl, cwl = cwl, - read_latency = 2 + cl_sys_latency + 2 + log2_int(4//nphases) + 5, + read_latency = 2 + cl_sys_latency + 2 + log2_int(4//nphases) + 4, write_latency = cwl_sys_latency )