phy/s7ddrphy: fix preamble/posamble latency when with_odelay (-1 since dqs clk is not shifted)
This commit is contained in:
parent
c37d3af5b5
commit
ed7eef12d4
|
@ -433,11 +433,12 @@ class S7DDRPHY(Module, AutoCSR):
|
|||
]
|
||||
|
||||
# dqs preamble/postamble
|
||||
dqs_sys_latency = cwl_sys_latency-1 if with_odelay else cwl_sys_latency
|
||||
self.comb += [
|
||||
dqs_preamble.eq(last_wrdata_en[cwl_sys_latency-1] &
|
||||
~last_wrdata_en[cwl_sys_latency]),
|
||||
dqs_postamble.eq(last_wrdata_en[cwl_sys_latency+1] &
|
||||
~last_wrdata_en[cwl_sys_latency]),
|
||||
dqs_preamble.eq(last_wrdata_en[dqs_sys_latency-1] &
|
||||
~last_wrdata_en[dqs_sys_latency]),
|
||||
dqs_postamble.eq(last_wrdata_en[dqs_sys_latency+1] &
|
||||
~last_wrdata_en[dqs_sys_latency]),
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue