From d06e2dda23862f872f0e6775f17dace6b3a93e7e Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 30 Sep 2020 11:41:43 +0200 Subject: [PATCH] phy/usddrphy: simplify dq_bitslip.o mapping. --- litedram/phy/usddrphy.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/litedram/phy/usddrphy.py b/litedram/phy/usddrphy.py index 12a58d1..4621901 100644 --- a/litedram/phy/usddrphy.py +++ b/litedram/phy/usddrphy.py @@ -421,18 +421,8 @@ class USDDRPHY(Module, AutoCSR): io_IO = pads.dq[i], ) ] - - self.comb += [ - dfi.phases[0].rddata[i].eq(dq_bitslip.o[0]), - dfi.phases[1].rddata[i].eq(dq_bitslip.o[2]), - dfi.phases[2].rddata[i].eq(dq_bitslip.o[4]), - dfi.phases[3].rddata[i].eq(dq_bitslip.o[6]), - - dfi.phases[0].rddata[databits+i].eq(dq_bitslip.o[1]), - dfi.phases[1].rddata[databits+i].eq(dq_bitslip.o[3]), - dfi.phases[2].rddata[databits+i].eq(dq_bitslip.o[5]), - dfi.phases[3].rddata[databits+i].eq(dq_bitslip.o[7]), - ] + for n in range(8): + self.comb += dfi.phases[n//2].rddata[n%2*databits+i].eq(dq_bitslip.o[n]) # Read Control Path ------------------------------------------------------------------------ # Creates a shift register of read commands coming from the DFI interface. This shift register