]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
XCKU MGTs: Set free-running clock freq to 40 MHz
authorThomas Gessler <Thomas.Gessler@exp2.physik.uni-giessen.de>
Tue, 20 Apr 2021 14:29:30 +0000 (16:29 +0200)
committerThomas Gessler <Thomas.Gessler@exp2.physik.uni-giessen.de>
Tue, 20 Apr 2021 14:34:21 +0000 (16:34 +0200)
This makes it easier to use the CRI's 40 MHz free-running ("boot")
clock.

media_interfaces/med_xcku_sfp_sync.vhd
media_interfaces/xcku/gth_xcku_2gbps0_100mhz/gth_xcku_2gbps0_100mhz.xci
media_interfaces/xcku/gth_xcku_2gbps0_200mhz/gth_xcku_2gbps0_200mhz.xci
media_interfaces/xcku/gth_xcku_2gbps4_120mhz/gth_xcku_2gbps4_120mhz.xci
media_interfaces/xcku/gth_xcku_top.vhd

index b34808d6144939ea3c9967daec1ad2678032c48a..93c577f1429413a74cad450f101f5e00401ffbce 100644 (file)
@@ -19,7 +19,7 @@ entity med_xcku_sfp_sync is
     );
     port (
         SYSCLK          : in  std_logic;
-        CLK_100         : in  std_logic;
+        CLK_40          : in  std_logic;
         RESET_ALL       : in  std_logic := '0';
         GTREFCLK        : in  std_logic;
         GTREFCLK_BUFG   : in  std_logic;
@@ -150,7 +150,7 @@ begin
         REFCLK_FREQ_HZ => REFCLK_FREQ_HZ
     )
     port map (
-        CLK_100           => CLK_100,
+        CLK_40            => CLK_40,
         GTREFCLK          => GTREFCLK,
         RXOUTCLK          => RXOUTCLK,
         TXOUTCLK          => TXOUTCLK,
index 3f3d41de0124723af5d97286e59f95e1c994579b..526ee3f33204d245163fa0eae46e6b90d056be70 100644 (file)
@@ -14,7 +14,7 @@
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_CPLL_VCO_FREQUENCY">2000.0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_ENABLE_COMMON_USRCLK">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_FORCE_COMMONS">0</spirit:configurableElementValue>
-        <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_FREERUN_FREQUENCY">100</spirit:configurableElementValue>
+        <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_FREERUN_FREQUENCY">40</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_GT_REV">17</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_GT_TYPE">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_INCLUDE_CPLL_CAL">2</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.DISABLE_LOC_XDC">1</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.ENABLE_COMMON_USRCLK">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.ENABLE_OPTIONAL_PORTS">rxcdrreset_in rxpcsreset_in rxpmareset_in txpcsreset_in txpippmen_in txpippmovrden_in txpippmpd_in txpippmsel_in txpippmstepsize_in txpmareset_in rxresetdone_out txbufstatus_out txresetdone_out</spirit:configurableElementValue>
-        <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.FREERUN_FREQUENCY">100</spirit:configurableElementValue>
+        <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.FREERUN_FREQUENCY">40</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.GT_DIRECTION">BOTH</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.GT_REV">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.GT_TYPE">GTH</spirit:configurableElementValue>
index 9e3276ddbdbd1f1a7cc8331554db835a42058528..cf337347e88c586b93572f32b9cde48c134c7542 100644 (file)
@@ -14,7 +14,7 @@
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_CPLL_VCO_FREQUENCY">2000.0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_ENABLE_COMMON_USRCLK">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_FORCE_COMMONS">0</spirit:configurableElementValue>
-        <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_FREERUN_FREQUENCY">100</spirit:configurableElementValue>
+        <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_FREERUN_FREQUENCY">40</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_GT_REV">17</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_GT_TYPE">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_INCLUDE_CPLL_CAL">2</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.DISABLE_LOC_XDC">1</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.ENABLE_COMMON_USRCLK">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.ENABLE_OPTIONAL_PORTS">rxcdrreset_in rxpcsreset_in rxpmareset_in txpcsreset_in txpippmen_in txpippmovrden_in txpippmpd_in txpippmsel_in txpippmstepsize_in txpmareset_in rxresetdone_out txbufstatus_out txresetdone_out</spirit:configurableElementValue>
-        <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.FREERUN_FREQUENCY">100</spirit:configurableElementValue>
+        <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.FREERUN_FREQUENCY">40</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.GT_DIRECTION">BOTH</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.GT_REV">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.GT_TYPE">GTH</spirit:configurableElementValue>
index 8d299ecd2f7ec26ac626a15613ccfa9ba4bc7938..60b366eb3b750a14361cc1c5361905b21543cbd1 100644 (file)
@@ -14,7 +14,7 @@
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_CPLL_VCO_FREQUENCY">2400.0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_ENABLE_COMMON_USRCLK">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_FORCE_COMMONS">0</spirit:configurableElementValue>
-        <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_FREERUN_FREQUENCY">100</spirit:configurableElementValue>
+        <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_FREERUN_FREQUENCY">40</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_GT_REV">17</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_GT_TYPE">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="MODELPARAM_VALUE.C_INCLUDE_CPLL_CAL">2</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.DISABLE_LOC_XDC">1</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.ENABLE_COMMON_USRCLK">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.ENABLE_OPTIONAL_PORTS">rxcdrreset_in rxpcsreset_in rxpmareset_in txpcsreset_in txpippmen_in txpippmovrden_in txpippmpd_in txpippmsel_in txpippmstepsize_in txpmareset_in rxresetdone_out txbufstatus_out txresetdone_out</spirit:configurableElementValue>
-        <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.FREERUN_FREQUENCY">100</spirit:configurableElementValue>
+        <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.FREERUN_FREQUENCY">40</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.GT_DIRECTION">BOTH</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.GT_REV">0</spirit:configurableElementValue>
         <spirit:configurableElementValue spirit:referenceId="PARAM_VALUE.GT_TYPE">GTH</spirit:configurableElementValue>
index 8b5078f794b3a5c59b64559e7a68e8b3b69d1487..404261226f7df52604a78f1eab19415370fb91d3 100644 (file)
@@ -10,7 +10,7 @@ entity gth_xcku_top is
         REFCLK_FREQ_HZ : integer := 100000000
     );
     port (
-        CLK_100         : in  std_logic;
+        CLK_40          : in  std_logic;
         GTREFCLK        : in  std_logic;
         RXOUTCLK        : out std_logic;
         TXOUTCLK        : out std_logic;
@@ -423,7 +423,7 @@ begin
         port map (
             gtwiz_userclk_tx_active_in(0)         => TXUSRCLK_ACTIVE,
             gtwiz_userclk_rx_active_in(0)         => RXUSRCLK_ACTIVE,
-            gtwiz_reset_clk_freerun_in(0)         => CLK_100,
+            gtwiz_reset_clk_freerun_in(0)         => CLK_40,
             gtwiz_reset_all_in(0)                 => RESET_ALL,
             gtwiz_reset_tx_pll_and_datapath_in(0) => '0',
             gtwiz_reset_tx_datapath_in(0)         => '0',
@@ -502,7 +502,7 @@ begin
         port map (
             gtwiz_userclk_tx_active_in(0)         => TXUSRCLK_ACTIVE,
             gtwiz_userclk_rx_active_in(0)         => RXUSRCLK_ACTIVE,
-            gtwiz_reset_clk_freerun_in(0)         => CLK_100,
+            gtwiz_reset_clk_freerun_in(0)         => CLK_40,
             gtwiz_reset_all_in(0)                 => RESET_ALL,
             gtwiz_reset_tx_pll_and_datapath_in(0) => '0',
             gtwiz_reset_tx_datapath_in(0)         => '0',
@@ -581,7 +581,7 @@ begin
         port map (
             gtwiz_userclk_tx_active_in(0)         => TXUSRCLK_ACTIVE,
             gtwiz_userclk_rx_active_in(0)         => RXUSRCLK_ACTIVE,
-            gtwiz_reset_clk_freerun_in(0)         => CLK_100,
+            gtwiz_reset_clk_freerun_in(0)         => CLK_40,
             gtwiz_reset_all_in(0)                 => RESET_ALL,
             gtwiz_reset_tx_pll_and_datapath_in(0) => '0',
             gtwiz_reset_tx_datapath_in(0)         => '0',