From 17277504f12adf88ba6d9975a00fb2671e3a5141 Mon Sep 17 00:00:00 2001 From: morgan Date: Tue, 13 Aug 2024 12:34:59 +0800 Subject: [PATCH] cxp downconn: remove unnessary waitimer --- src/gateware/cxp_downconn.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) 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,