diff --git a/src/gateware/cxp_downconn.py b/src/gateware/cxp_downconn.py index 45718bb..0cbbe8e 100644 --- a/src/gateware/cxp_downconn.py +++ b/src/gateware/cxp_downconn.py @@ -297,31 +297,13 @@ class QPLL(Module): self.tx_usrclk_freq = (sys_clk_freq*fbdiv_real/self.Xxout_div)/20 - # QPLL reset - pll_reset_cycles = ceil(sys_clk_freq/125e6) - pll_reset_timer = WaitTimer(pll_reset_cycles) - self.submodules += pll_reset_timer - - reset = Signal() - startup_fsm = FSM(reset_state="IDLE") - self.submodules += startup_fsm - - startup_fsm.act("IDLE", - If(self.reset, NextState("RESET_PLL")) - ) - startup_fsm.act("RESET_PLL", - reset.eq(1), - pll_reset_timer.wait.eq(1), - If(pll_reset_timer.done, NextState("IDLE")) - ) - self.specials += [ Instance("GTXE2_COMMON", i_QPLLREFCLKSEL=0b001, i_GTREFCLK0=refclk, i_QPLLPD=0, - i_QPLLRESET=reset, + i_QPLLRESET=self.reset, i_QPLLLOCKEN=1, o_QPLLLOCK=self.lock, o_QPLLOUTCLK=self.clk,