Advertisement
Guest User

Untitled

a guest
Oct 11th, 2021
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. class CRG(Module):
  2. def __init__(self, platform, sys_clk_freq):
  3. self.rst = Signal()
  4. self.clock_domains.cd_sys = ClockDomain()
  5.  
  6. # Clk/Rst
  7. clk_in = platform.request("dram0_refclk")
  8.  
  9. # PLL
  10. self.submodules.pll = pll = USMMCM(speedgrade=-1)
  11. pll.register_clkin(clk_in, 300e6)
  12. pll.create_clkout(self.cd_sys, sys_clk_freq)
  13. platform.add_false_path_constraints(self.cd_sys.clk, pll.clkin) # Ignore sys_clk to pll.clkin path created by SoC's rst.
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement