Merge pull request #488 from Icenowy/stlv7325-s7pll

sitlinv_stlv7325: use S7PLL instead of S7MMCM for system clock
This commit is contained in:
enjoy-digital 2023-04-04 08:22:16 +02:00 committed by GitHub
commit a4925d14f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class _CRG(LiteXModule):
rst_n = platform.request("cpu_reset_n") rst_n = platform.request("cpu_reset_n")
# PLL. # PLL.
self.pll = pll = S7MMCM(speedgrade=-2) self.pll = pll = S7PLL(speedgrade=-2)
self.comb += pll.reset.eq(~rst_n | self.rst) self.comb += pll.reset.eq(~rst_n | self.rst)
pll.register_clkin(clk200, 200e6) pll.register_clkin(clk200, 200e6)
pll.create_clkout(self.cd_sys, sys_clk_freq) pll.create_clkout(self.cd_sys, sys_clk_freq)