phy/kusddrphy: fix input bit ordering, working :)
This commit is contained in:
parent
99fe71d622
commit
7b31005bc4
|
@ -9,8 +9,6 @@ from litex.soc.interconnect.csr import *
|
|||
from litedram.common import PhySettings
|
||||
from litedram.phy.dfi import *
|
||||
|
||||
# TODO:
|
||||
# - test on hardware
|
||||
|
||||
class KUSDDRPHY(Module, AutoCSR):
|
||||
def __init__(self, pads):
|
||||
|
@ -265,15 +263,15 @@ class KUSDDRPHY(Module, AutoCSR):
|
|||
)
|
||||
]
|
||||
self.comb += [
|
||||
self.dfi.phases[0].rddata[i].eq(dq_bitslip.o[7]),
|
||||
self.dfi.phases[1].rddata[i].eq(dq_bitslip.o[5]),
|
||||
self.dfi.phases[2].rddata[i].eq(dq_bitslip.o[3]),
|
||||
self.dfi.phases[3].rddata[i].eq(dq_bitslip.o[1]),
|
||||
self.dfi.phases[0].rddata[i].eq(dq_bitslip.o[0]),
|
||||
self.dfi.phases[1].rddata[i].eq(dq_bitslip.o[2]),
|
||||
self.dfi.phases[2].rddata[i].eq(dq_bitslip.o[4]),
|
||||
self.dfi.phases[3].rddata[i].eq(dq_bitslip.o[6]),
|
||||
|
||||
self.dfi.phases[0].rddata[databits+i].eq(dq_bitslip.o[6]),
|
||||
self.dfi.phases[1].rddata[databits+i].eq(dq_bitslip.o[4]),
|
||||
self.dfi.phases[2].rddata[databits+i].eq(dq_bitslip.o[2]),
|
||||
self.dfi.phases[3].rddata[databits+i].eq(dq_bitslip.o[0]),
|
||||
self.dfi.phases[0].rddata[databits+i].eq(dq_bitslip.o[1]),
|
||||
self.dfi.phases[1].rddata[databits+i].eq(dq_bitslip.o[3]),
|
||||
self.dfi.phases[2].rddata[databits+i].eq(dq_bitslip.o[5]),
|
||||
self.dfi.phases[3].rddata[databits+i].eq(dq_bitslip.o[7]),
|
||||
]
|
||||
|
||||
# Flow control
|
||||
|
|
Loading…
Reference in New Issue