mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
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
1 changed files with 5 additions and 4 deletions
|
@ -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 a new issue