Skip to content

Commit

Permalink
litex_sim: fix old name: get_cl_cw -> get_default_cl_cwl
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejboczar committed Jan 29, 2021
1 parent 7abfbd9 commit 61e605d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litex/tools/litex_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def get_sdram_phy_settings(memtype, data_width, clk_freq):
elif memtype in ["DDR2", "DDR3"]:
# Settings from s7ddrphy
tck = 2/(2*nphases*clk_freq)
cl, cwl = get_cl_cw(memtype, tck)
cl, cwl = get_default_cl_cwl(memtype, tck)
cl_sys_latency = get_sys_latency(nphases, cl)
cwl_sys_latency = get_sys_latency(nphases, cwl)
rdphase = get_sys_phase(nphases, cl_sys_latency, cl)
Expand All @@ -124,7 +124,7 @@ def get_sdram_phy_settings(memtype, data_width, clk_freq):
elif memtype == "DDR4":
# Settings from usddrphy
tck = 2/(2*nphases*clk_freq)
cl, cwl = get_cl_cw(memtype, tck)
cl, cwl = get_default_cl_cwl(memtype, tck)
cl_sys_latency = get_sys_latency(nphases, cl)
cwl_sys_latency = get_sys_latency(nphases, cwl)
rdphase = get_sys_phase(nphases, cl_sys_latency, cl)
Expand Down

0 comments on commit 61e605d

Please sign in to comment.