Skip to content

Commit

Permalink
phy/gw2ddrphy: fix cl/cwl latencies
Browse files Browse the repository at this point in the history
  • Loading branch information
trabucayre committed Aug 25, 2023
1 parent afdf1af commit 6dadc11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions litedram/phy/gw2ddrphy.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def __init__(self, pads,
wrphase = wrphase,
cl = cl,
cwl = cwl,
read_latency = cl_sys_latency + 10,
write_latency = cwl_sys_latency,
read_latency = cl_sys_latency + 9,
write_latency = cwl_sys_latency - 1,
read_leveling = True,
bitslips = 4,
delays = 8,
Expand Down Expand Up @@ -433,7 +433,7 @@ def __init__(self, pads,
)

# Read Control Path ------------------------------------------------------------------------
rdtap = cl_sys_latency # CHECKME: Latency.
rdtap = cl_sys_latency - 1 # CHECKME: Latency.

# Creates a delay line of read commands coming from the DFI interface. The taps are used to
# control DQS read (internal read pulse of the DQSBUF) and the output of the delay is used
Expand All @@ -454,7 +454,7 @@ def __init__(self, pads,
self.comb += dqs_re.eq(rddata_en.taps[rdtap] | rddata_en.taps[rdtap + 1])

# Write Control Path -----------------------------------------------------------------------
wrtap = cwl_sys_latency # CHECKME: Latency.
wrtap = cwl_sys_latency - 1 # CHECKME: Latency.

# Create a delay line of write commands coming from the DFI interface. This taps are used to
# control DQ/DQS tristates and to select write data of the DRAM burst from the DFI interface.
Expand Down

1 comment on commit 6dadc11

@kevinsu20
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry to bother you ,how did you come up with such reading and writing modifications

Please sign in to comment.