phy/s7ddrphy: fix dqs_sys_latency for DDR2
This commit is contained in:
parent
7b427391bd
commit
6017e7a763
|
@ -406,7 +406,10 @@ class S7DDRPHY(Module, AutoCSR):
|
|||
]
|
||||
|
||||
# dqs preamble/postamble
|
||||
dqs_sys_latency = cwl_sys_latency-1 if with_odelay else cwl_sys_latency
|
||||
if memtype == "DDR2":
|
||||
dqs_sys_latency = cwl_sys_latency-1
|
||||
elif memtype == "DDR3":
|
||||
dqs_sys_latency = cwl_sys_latency-1 if with_odelay else cwl_sys_latency
|
||||
self.comb += [
|
||||
dqs_preamble.eq(last_wrdata_en[dqs_sys_latency-1] &
|
||||
~last_wrdata_en[dqs_sys_latency]),
|
||||
|
|
Loading…
Reference in New Issue