efinix_xyloni_dev_kit: Use PLL.

This commit is contained in:
Florent Kermarrec 2021-10-25 12:16:47 +02:00
parent 16a629269d
commit fc05379929

View file

@ -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 ------------------------------------------------------------------------------------------