target/kc705: allow access to pll_sys signal before BUFG
authorYann Sionneau <ys@m-labs.hk>
Wed, 25 Feb 2015 17:57:09 +0000 (18:57 +0100)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Thu, 26 Feb 2015 22:56:10 +0000 (15:56 -0700)
targets/kc705.py

index 4af947fc3042c7347e4831d06d82c12278980238..92d08498a2268c9e64b9d2307c94e4848831a511 100644 (file)
@@ -20,7 +20,7 @@ class _CRG(Module):
 
                pll_locked = Signal()
                pll_fb = Signal()
-               pll_sys = Signal()
+               self.pll_sys = Signal()
                pll_sys4x = Signal()
                pll_clk200 = Signal()
                self.specials += [
@@ -33,7 +33,7 @@ class _CRG(Module):
                                i_CLKIN1=clk200_se, i_CLKFBIN=pll_fb, o_CLKFBOUT=pll_fb,
 
                                # 125MHz
-                               p_CLKOUT0_DIVIDE=8, p_CLKOUT0_PHASE=0.0, o_CLKOUT0=pll_sys,
+                               p_CLKOUT0_DIVIDE=8, p_CLKOUT0_PHASE=0.0, o_CLKOUT0=self.pll_sys,
 
                                # 500MHz
                                p_CLKOUT1_DIVIDE=2, p_CLKOUT1_PHASE=0.0, o_CLKOUT1=pll_sys4x,
@@ -45,7 +45,7 @@ class _CRG(Module):
 
                                p_CLKOUT4_DIVIDE=4, p_CLKOUT4_PHASE=0.0, #o_CLKOUT4=
                        ),
-                       Instance("BUFG", i_I=pll_sys, o_O=self.cd_sys.clk),
+                       Instance("BUFG", i_I=self.pll_sys, o_O=self.cd_sys.clk),
                        Instance("BUFG", i_I=pll_sys4x, o_O=self.cd_sys4x.clk),
                        Instance("BUFG", i_I=pll_clk200, o_O=self.cd_clk200.clk),
                        AsyncResetSynchronizer(self.cd_sys, ~pll_locked),