Skip to content

Commit

Permalink
litedram_gen: avoid second S7PLL for iodelay clk, generate it from ma…
Browse files Browse the repository at this point in the history
…in S7PLL on CLKOUT0 (with fractional divide).
  • Loading branch information
enjoy-digital committed Jun 3, 2020
1 parent 1b56dcf commit 361d250
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions litedram/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def __init__(self, platform, core_config):
self.submodules.sys_pll = sys_pll = S7PLL(speedgrade=core_config["speedgrade"])
self.comb += sys_pll.reset.eq(rst)
sys_pll.register_clkin(clk, core_config["input_clk_freq"])
sys_pll.create_clkout(self.cd_iodelay, core_config["iodelay_clk_freq"])
sys_pll.create_clkout(self.cd_sys, core_config["sys_clk_freq"])
if core_config["memtype"] == "DDR2":
sys_pll.create_clkout(self.cd_sys2x, 2*core_config["sys_clk_freq"])
Expand All @@ -289,10 +290,6 @@ def __init__(self, platform, core_config):

self.comb += platform.request("pll_locked").eq(sys_pll.locked)

self.submodules.iodelay_pll = iodelay_pll = S7PLL(speedgrade=core_config["speedgrade"])
self.comb += iodelay_pll.reset.eq(rst)
iodelay_pll.register_clkin(clk, core_config["input_clk_freq"])
iodelay_pll.create_clkout(self.cd_iodelay, core_config["iodelay_clk_freq"])
self.submodules.idelayctrl = S7IDELAYCTRL(self.cd_iodelay)

# LiteDRAMCoreControl ------------------------------------------------------------------------------
Expand Down

0 comments on commit 361d250

Please sign in to comment.