mirror of
https://github.com/litex-hub/litex-boards.git
synced 2025-01-03 03:43:36 -05:00
efinix_xyloni_dev_kit: Use PLL.
This commit is contained in:
parent
16a629269d
commit
fc05379929
1 changed files with 5 additions and 9 deletions
|
@ -35,15 +35,11 @@ class _CRG(Module):
|
||||||
clk33 = platform.request("clk33")
|
clk33 = platform.request("clk33")
|
||||||
rst_n = platform.request("user_btn", 0)
|
rst_n = platform.request("user_btn", 0)
|
||||||
|
|
||||||
if sys_clk_freq == int(33.333e6):
|
# PLL.
|
||||||
self.comb += self.cd_sys.clk.eq(clk33)
|
self.submodules.pll = pll = TRIONPLL(platform)
|
||||||
self.specials += AsyncResetSynchronizer(self.cd_sys, ~rst_n)
|
self.comb += pll.reset.eq(~rst_n)
|
||||||
else:
|
pll.register_clkin(clk33, 33.333e6)
|
||||||
# PLL TODO: V1 simple pll not supported in infrastructure yet
|
pll.create_clkout(self.cd_sys, sys_clk_freq, with_reset=True)
|
||||||
self.submodules.pll = pll = TRIONPLL(platform)
|
|
||||||
self.comb += pll.reset.eq(~rst_n)
|
|
||||||
pll.register_clkin(clk33, 33.333e6)
|
|
||||||
pll.create_clkout(self.cd_sys, sys_clk_freq, with_reset=True)
|
|
||||||
|
|
||||||
# BaseSoC ------------------------------------------------------------------------------------------
|
# BaseSoC ------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue