AMC13
Firmwares for the different applications of the AMC13 uTCA board made at Boston University
 All Classes Files Variables
AMC_wrapper.vhd
1 ----------------------------------------------------------------------------------
2 -- Company:
3 -- Engineer:
4 --
5 -- Create Date: 11:15:28 03/21/2013
6 -- Design Name:
7 -- Module Name: AMC_wrapper - Behavioral
8 -- Project Name:
9 -- Target Devices:
10 -- Tool versions:
11 -- Description:
12 --
13 -- Dependencies:
14 --
15 -- Revision:
16 -- Revision 0.01 - File Created
17 -- Additional Comments:
18 --
19 ----------------------------------------------------------------------------------
20 library IEEE;
21 use IEEE.STD_LOGIC_1164.ALL;
22 use IEEE.STD_LOGIC_ARITH.ALL;
23 use IEEE.STD_LOGIC_UNSIGNED.ALL;
24 use IEEE.std_logic_misc.all;
25 use work.amc13_pack.all;
26 
27 -- Uncomment the following library declaration if using
28 -- arithmetic functions with Signed or Unsigned values
29 --use IEEE.NUMERIC_STD.ALL;
30 
31 -- Uncomment the following library declaration if instantiating
32 -- any Xilinx primitives in this code.
33 library UNISIM;
34 use UNISIM.VComponents.all;
35 
36 entity AMC_wrapper is
37  Port ( DRPclk : in STD_LOGIC;
38  SOFT_RESET : in STD_LOGIC;
39  UsrClk : in STD_LOGIC;
40  test : in STD_LOGIC;
41  Dis_pd : in STD_LOGIC;
42  AMC_en : in STD_LOGIC_VECTOR(11 downto 0);
43  RXDATA : out array12X16;
44  RxBufOvf : out STD_LOGIC_VECTOR(11 downto 0);
45  RxBufUdf : out STD_LOGIC_VECTOR(11 downto 0);
46  sampleRatio : in STD_LOGIC;
47  updateRatio : in STD_LOGIC;
48  RxClkRatio : out array12x21;
49  rxprbserr : out STD_LOGIC_VECTOR(11 downto 0);
50  rxprbssel : in array12X3;
51  RXNOTINTABLE : out array12X2;
52  rxcommaalignen : in STD_LOGIC_VECTOR(11 downto 0);
53  rxchariscomma : out array12X2;
54  rxcharisk : out array12X2;
55  rxresetdone : out STD_LOGIC_VECTOR(11 downto 0);
56  txdiffctrl : in array12X4;
57  TXDATA : in array12X16;
58  txoutclk : out STD_LOGIC_VECTOR(11 downto 0);
59  txcharisk : in array12X2;
60  txresetdone : out STD_LOGIC_VECTOR(11 downto 0);
61  txprbssel : in array12X3;
62  qpll_lock : out STD_LOGIC_VECTOR(2 downto 0);
63  txfsmresetdone : out STD_LOGIC_VECTOR(11 downto 0);
64  rxfsmresetdone : out STD_LOGIC_VECTOR(11 downto 0);
65  data_valid : in STD_LOGIC_VECTOR(11 downto 0);
66  AMC_REFCLK : in STD_LOGIC;
67  RXN : in STD_LOGIC_VECTOR(11 downto 0);
68  RXP : in STD_LOGIC_VECTOR(11 downto 0);
69  TXN : out STD_LOGIC_VECTOR(11 downto 0);
70  TXP : out STD_LOGIC_VECTOR(11 downto 0)
71  );
72 end AMC_wrapper;
73 architecture Behavioral of AMC_wrapper is
74 component amc_gtx5Gpd_init
75 generic
76 (
77  EXAMPLE_SIM_GTRESET_SPEEDUP : string := "TRUE"; -- simulation setting for GT SecureIP model
78  EXAMPLE_SIMULATION : integer := 0; -- Set to 1 for simulation
79 
80  STABLE_CLOCK_PERIOD : integer := 20;
81  -- Set to 1 for simulation
82  EXAMPLE_USE_CHIPSCOPE : integer := 0 -- Set to 1 to use Chipscope to drive resets
83 
84 );
85 port
86 (
87  SYSCLK_IN : IN std_logic;
88  SOFT_RESET_IN : IN std_logic;
89  DONT_RESET_ON_DATA_ERROR_IN : IN std_logic;
90  GT0_DATA_VALID_IN : IN std_logic;
91  GT1_DATA_VALID_IN : IN std_logic;
92  GT2_DATA_VALID_IN : IN std_logic;
93  GT3_DATA_VALID_IN : IN std_logic;
94  GT4_DATA_VALID_IN : IN std_logic;
95  GT5_DATA_VALID_IN : IN std_logic;
96  GT6_DATA_VALID_IN : IN std_logic;
97  GT7_DATA_VALID_IN : IN std_logic;
98  GT8_DATA_VALID_IN : IN std_logic;
99  GT9_DATA_VALID_IN : IN std_logic;
100  GT10_DATA_VALID_IN : IN std_logic;
101  GT11_DATA_VALID_IN : IN std_logic;
102  gt0_drpaddr_in : IN std_logic_vector(8 downto 0);
103  gt0_drpclk_in : IN std_logic;
104  gt0_drpdi_in : IN std_logic_vector(15 downto 0);
105  gt0_drpen_in : IN std_logic;
106  gt0_drpwe_in : IN std_logic;
107  gt0_loopback_in : IN std_logic_vector(2 downto 0);
108  gt0_rxpd_in : IN std_logic_vector(1 downto 0);
109  gt0_txpd_in : IN std_logic_vector(1 downto 0);
110  gt0_eyescanreset_in : IN std_logic;
111  gt0_rxuserrdy_in : IN std_logic;
112  gt0_eyescantrigger_in : IN std_logic;
113  gt0_rxusrclk_in : IN std_logic;
114  gt0_rxusrclk2_in : IN std_logic;
115  gt0_rxprbssel_in : IN std_logic_vector(2 downto 0);
116  gt0_rxprbscntreset_in : IN std_logic;
117  gt0_gtxrxp_in : IN std_logic;
118  gt0_gtxrxn_in : IN std_logic;
119  gt0_rxmcommaalignen_in : IN std_logic;
120  gt0_rxpcommaalignen_in : IN std_logic;
121  gt0_rxdfelpmreset_in : IN std_logic;
122  gt0_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
123  gt0_gtrxreset_in : IN std_logic;
124  gt0_rxpmareset_in : IN std_logic;
125  gt0_gttxreset_in : IN std_logic;
126  gt0_txuserrdy_in : IN std_logic;
127  gt0_txusrclk_in : IN std_logic;
128  gt0_txusrclk2_in : IN std_logic;
129  gt0_txdiffctrl_in : IN std_logic_vector(3 downto 0);
130  gt0_txdata_in : IN std_logic_vector(15 downto 0);
131  gt0_txcharisk_in : IN std_logic_vector(1 downto 0);
132  gt0_txprbssel_in : IN std_logic_vector(2 downto 0);
133  gt1_drpaddr_in : IN std_logic_vector(8 downto 0);
134  gt1_drpclk_in : IN std_logic;
135  gt1_drpdi_in : IN std_logic_vector(15 downto 0);
136  gt1_drpen_in : IN std_logic;
137  gt1_drpwe_in : IN std_logic;
138  gt1_loopback_in : IN std_logic_vector(2 downto 0);
139  gt1_rxpd_in : IN std_logic_vector(1 downto 0);
140  gt1_txpd_in : IN std_logic_vector(1 downto 0);
141  gt1_eyescanreset_in : IN std_logic;
142  gt1_rxuserrdy_in : IN std_logic;
143  gt1_eyescantrigger_in : IN std_logic;
144  gt1_rxusrclk_in : IN std_logic;
145  gt1_rxusrclk2_in : IN std_logic;
146  gt1_rxprbssel_in : IN std_logic_vector(2 downto 0);
147  gt1_rxprbscntreset_in : IN std_logic;
148  gt1_gtxrxp_in : IN std_logic;
149  gt1_gtxrxn_in : IN std_logic;
150  gt1_rxmcommaalignen_in : IN std_logic;
151  gt1_rxpcommaalignen_in : IN std_logic;
152  gt1_rxdfelpmreset_in : IN std_logic;
153  gt1_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
154  gt1_gtrxreset_in : IN std_logic;
155  gt1_rxpmareset_in : IN std_logic;
156  gt1_gttxreset_in : IN std_logic;
157  gt1_txuserrdy_in : IN std_logic;
158  gt1_txusrclk_in : IN std_logic;
159  gt1_txusrclk2_in : IN std_logic;
160  gt1_txdiffctrl_in : IN std_logic_vector(3 downto 0);
161  gt1_txdata_in : IN std_logic_vector(15 downto 0);
162  gt1_txcharisk_in : IN std_logic_vector(1 downto 0);
163  gt1_txprbssel_in : IN std_logic_vector(2 downto 0);
164  gt2_drpaddr_in : IN std_logic_vector(8 downto 0);
165  gt2_drpclk_in : IN std_logic;
166  gt2_drpdi_in : IN std_logic_vector(15 downto 0);
167  gt2_drpen_in : IN std_logic;
168  gt2_drpwe_in : IN std_logic;
169  gt2_loopback_in : IN std_logic_vector(2 downto 0);
170  gt2_rxpd_in : IN std_logic_vector(1 downto 0);
171  gt2_txpd_in : IN std_logic_vector(1 downto 0);
172  gt2_eyescanreset_in : IN std_logic;
173  gt2_rxuserrdy_in : IN std_logic;
174  gt2_eyescantrigger_in : IN std_logic;
175  gt2_rxusrclk_in : IN std_logic;
176  gt2_rxusrclk2_in : IN std_logic;
177  gt2_rxprbssel_in : IN std_logic_vector(2 downto 0);
178  gt2_rxprbscntreset_in : IN std_logic;
179  gt2_gtxrxp_in : IN std_logic;
180  gt2_gtxrxn_in : IN std_logic;
181  gt2_rxmcommaalignen_in : IN std_logic;
182  gt2_rxpcommaalignen_in : IN std_logic;
183  gt2_rxdfelpmreset_in : IN std_logic;
184  gt2_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
185  gt2_gtrxreset_in : IN std_logic;
186  gt2_rxpmareset_in : IN std_logic;
187  gt2_gttxreset_in : IN std_logic;
188  gt2_txuserrdy_in : IN std_logic;
189  gt2_txusrclk_in : IN std_logic;
190  gt2_txusrclk2_in : IN std_logic;
191  gt2_txdiffctrl_in : IN std_logic_vector(3 downto 0);
192  gt2_txdata_in : IN std_logic_vector(15 downto 0);
193  gt2_txcharisk_in : IN std_logic_vector(1 downto 0);
194  gt2_txprbssel_in : IN std_logic_vector(2 downto 0);
195  gt3_drpaddr_in : IN std_logic_vector(8 downto 0);
196  gt3_drpclk_in : IN std_logic;
197  gt3_drpdi_in : IN std_logic_vector(15 downto 0);
198  gt3_drpen_in : IN std_logic;
199  gt3_drpwe_in : IN std_logic;
200  gt3_loopback_in : IN std_logic_vector(2 downto 0);
201  gt3_rxpd_in : IN std_logic_vector(1 downto 0);
202  gt3_txpd_in : IN std_logic_vector(1 downto 0);
203  gt3_eyescanreset_in : IN std_logic;
204  gt3_rxuserrdy_in : IN std_logic;
205  gt3_eyescantrigger_in : IN std_logic;
206  gt3_rxusrclk_in : IN std_logic;
207  gt3_rxusrclk2_in : IN std_logic;
208  gt3_rxprbssel_in : IN std_logic_vector(2 downto 0);
209  gt3_rxprbscntreset_in : IN std_logic;
210  gt3_gtxrxp_in : IN std_logic;
211  gt3_gtxrxn_in : IN std_logic;
212  gt3_rxmcommaalignen_in : IN std_logic;
213  gt3_rxpcommaalignen_in : IN std_logic;
214  gt3_rxdfelpmreset_in : IN std_logic;
215  gt3_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
216  gt3_gtrxreset_in : IN std_logic;
217  gt3_rxpmareset_in : IN std_logic;
218  gt3_gttxreset_in : IN std_logic;
219  gt3_txuserrdy_in : IN std_logic;
220  gt3_txusrclk_in : IN std_logic;
221  gt3_txusrclk2_in : IN std_logic;
222  gt3_txdiffctrl_in : IN std_logic_vector(3 downto 0);
223  gt3_txdata_in : IN std_logic_vector(15 downto 0);
224  gt3_txcharisk_in : IN std_logic_vector(1 downto 0);
225  gt3_txprbssel_in : IN std_logic_vector(2 downto 0);
226  gt4_drpaddr_in : IN std_logic_vector(8 downto 0);
227  gt4_drpclk_in : IN std_logic;
228  gt4_drpdi_in : IN std_logic_vector(15 downto 0);
229  gt4_drpen_in : IN std_logic;
230  gt4_drpwe_in : IN std_logic;
231  gt4_loopback_in : IN std_logic_vector(2 downto 0);
232  gt4_rxpd_in : IN std_logic_vector(1 downto 0);
233  gt4_txpd_in : IN std_logic_vector(1 downto 0);
234  gt4_eyescanreset_in : IN std_logic;
235  gt4_rxuserrdy_in : IN std_logic;
236  gt4_eyescantrigger_in : IN std_logic;
237  gt4_rxusrclk_in : IN std_logic;
238  gt4_rxusrclk2_in : IN std_logic;
239  gt4_rxprbssel_in : IN std_logic_vector(2 downto 0);
240  gt4_rxprbscntreset_in : IN std_logic;
241  gt4_gtxrxp_in : IN std_logic;
242  gt4_gtxrxn_in : IN std_logic;
243  gt4_rxmcommaalignen_in : IN std_logic;
244  gt4_rxpcommaalignen_in : IN std_logic;
245  gt4_rxdfelpmreset_in : IN std_logic;
246  gt4_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
247  gt4_gtrxreset_in : IN std_logic;
248  gt4_rxpmareset_in : IN std_logic;
249  gt4_gttxreset_in : IN std_logic;
250  gt4_txuserrdy_in : IN std_logic;
251  gt4_txusrclk_in : IN std_logic;
252  gt4_txusrclk2_in : IN std_logic;
253  gt4_txdiffctrl_in : IN std_logic_vector(3 downto 0);
254  gt4_txdata_in : IN std_logic_vector(15 downto 0);
255  gt4_txcharisk_in : IN std_logic_vector(1 downto 0);
256  gt4_txprbssel_in : IN std_logic_vector(2 downto 0);
257  gt5_drpaddr_in : IN std_logic_vector(8 downto 0);
258  gt5_drpclk_in : IN std_logic;
259  gt5_drpdi_in : IN std_logic_vector(15 downto 0);
260  gt5_drpen_in : IN std_logic;
261  gt5_drpwe_in : IN std_logic;
262  gt5_loopback_in : IN std_logic_vector(2 downto 0);
263  gt5_rxpd_in : IN std_logic_vector(1 downto 0);
264  gt5_txpd_in : IN std_logic_vector(1 downto 0);
265  gt5_eyescanreset_in : IN std_logic;
266  gt5_rxuserrdy_in : IN std_logic;
267  gt5_eyescantrigger_in : IN std_logic;
268  gt5_rxusrclk_in : IN std_logic;
269  gt5_rxusrclk2_in : IN std_logic;
270  gt5_rxprbssel_in : IN std_logic_vector(2 downto 0);
271  gt5_rxprbscntreset_in : IN std_logic;
272  gt5_gtxrxp_in : IN std_logic;
273  gt5_gtxrxn_in : IN std_logic;
274  gt5_rxmcommaalignen_in : IN std_logic;
275  gt5_rxpcommaalignen_in : IN std_logic;
276  gt5_rxdfelpmreset_in : IN std_logic;
277  gt5_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
278  gt5_gtrxreset_in : IN std_logic;
279  gt5_rxpmareset_in : IN std_logic;
280  gt5_gttxreset_in : IN std_logic;
281  gt5_txuserrdy_in : IN std_logic;
282  gt5_txusrclk_in : IN std_logic;
283  gt5_txusrclk2_in : IN std_logic;
284  gt5_txdiffctrl_in : IN std_logic_vector(3 downto 0);
285  gt5_txdata_in : IN std_logic_vector(15 downto 0);
286  gt5_txcharisk_in : IN std_logic_vector(1 downto 0);
287  gt5_txprbssel_in : IN std_logic_vector(2 downto 0);
288  gt6_drpaddr_in : IN std_logic_vector(8 downto 0);
289  gt6_drpclk_in : IN std_logic;
290  gt6_drpdi_in : IN std_logic_vector(15 downto 0);
291  gt6_drpen_in : IN std_logic;
292  gt6_drpwe_in : IN std_logic;
293  gt6_loopback_in : IN std_logic_vector(2 downto 0);
294  gt6_rxpd_in : IN std_logic_vector(1 downto 0);
295  gt6_txpd_in : IN std_logic_vector(1 downto 0);
296  gt6_eyescanreset_in : IN std_logic;
297  gt6_rxuserrdy_in : IN std_logic;
298  gt6_eyescantrigger_in : IN std_logic;
299  gt6_rxusrclk_in : IN std_logic;
300  gt6_rxusrclk2_in : IN std_logic;
301  gt6_rxprbssel_in : IN std_logic_vector(2 downto 0);
302  gt6_rxprbscntreset_in : IN std_logic;
303  gt6_gtxrxp_in : IN std_logic;
304  gt6_gtxrxn_in : IN std_logic;
305  gt6_rxmcommaalignen_in : IN std_logic;
306  gt6_rxpcommaalignen_in : IN std_logic;
307  gt6_rxdfelpmreset_in : IN std_logic;
308  gt6_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
309  gt6_gtrxreset_in : IN std_logic;
310  gt6_rxpmareset_in : IN std_logic;
311  gt6_gttxreset_in : IN std_logic;
312  gt6_txuserrdy_in : IN std_logic;
313  gt6_txusrclk_in : IN std_logic;
314  gt6_txusrclk2_in : IN std_logic;
315  gt6_txdiffctrl_in : IN std_logic_vector(3 downto 0);
316  gt6_txdata_in : IN std_logic_vector(15 downto 0);
317  gt6_txcharisk_in : IN std_logic_vector(1 downto 0);
318  gt6_txprbssel_in : IN std_logic_vector(2 downto 0);
319  gt7_drpaddr_in : IN std_logic_vector(8 downto 0);
320  gt7_drpclk_in : IN std_logic;
321  gt7_drpdi_in : IN std_logic_vector(15 downto 0);
322  gt7_drpen_in : IN std_logic;
323  gt7_drpwe_in : IN std_logic;
324  gt7_loopback_in : IN std_logic_vector(2 downto 0);
325  gt7_rxpd_in : IN std_logic_vector(1 downto 0);
326  gt7_txpd_in : IN std_logic_vector(1 downto 0);
327  gt7_eyescanreset_in : IN std_logic;
328  gt7_rxuserrdy_in : IN std_logic;
329  gt7_eyescantrigger_in : IN std_logic;
330  gt7_rxusrclk_in : IN std_logic;
331  gt7_rxusrclk2_in : IN std_logic;
332  gt7_rxprbssel_in : IN std_logic_vector(2 downto 0);
333  gt7_rxprbscntreset_in : IN std_logic;
334  gt7_gtxrxp_in : IN std_logic;
335  gt7_gtxrxn_in : IN std_logic;
336  gt7_rxmcommaalignen_in : IN std_logic;
337  gt7_rxpcommaalignen_in : IN std_logic;
338  gt7_rxdfelpmreset_in : IN std_logic;
339  gt7_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
340  gt7_gtrxreset_in : IN std_logic;
341  gt7_rxpmareset_in : IN std_logic;
342  gt7_gttxreset_in : IN std_logic;
343  gt7_txuserrdy_in : IN std_logic;
344  gt7_txusrclk_in : IN std_logic;
345  gt7_txusrclk2_in : IN std_logic;
346  gt7_txdiffctrl_in : IN std_logic_vector(3 downto 0);
347  gt7_txdata_in : IN std_logic_vector(15 downto 0);
348  gt7_txcharisk_in : IN std_logic_vector(1 downto 0);
349  gt7_txprbssel_in : IN std_logic_vector(2 downto 0);
350  gt8_drpaddr_in : IN std_logic_vector(8 downto 0);
351  gt8_drpclk_in : IN std_logic;
352  gt8_drpdi_in : IN std_logic_vector(15 downto 0);
353  gt8_drpen_in : IN std_logic;
354  gt8_drpwe_in : IN std_logic;
355  gt8_loopback_in : IN std_logic_vector(2 downto 0);
356  gt8_rxpd_in : IN std_logic_vector(1 downto 0);
357  gt8_txpd_in : IN std_logic_vector(1 downto 0);
358  gt8_eyescanreset_in : IN std_logic;
359  gt8_rxuserrdy_in : IN std_logic;
360  gt8_eyescantrigger_in : IN std_logic;
361  gt8_rxusrclk_in : IN std_logic;
362  gt8_rxusrclk2_in : IN std_logic;
363  gt8_rxprbssel_in : IN std_logic_vector(2 downto 0);
364  gt8_rxprbscntreset_in : IN std_logic;
365  gt8_gtxrxp_in : IN std_logic;
366  gt8_gtxrxn_in : IN std_logic;
367  gt8_rxmcommaalignen_in : IN std_logic;
368  gt8_rxpcommaalignen_in : IN std_logic;
369  gt8_rxdfelpmreset_in : IN std_logic;
370  gt8_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
371  gt8_gtrxreset_in : IN std_logic;
372  gt8_rxpmareset_in : IN std_logic;
373  gt8_gttxreset_in : IN std_logic;
374  gt8_txuserrdy_in : IN std_logic;
375  gt8_txusrclk_in : IN std_logic;
376  gt8_txusrclk2_in : IN std_logic;
377  gt8_txdiffctrl_in : IN std_logic_vector(3 downto 0);
378  gt8_txdata_in : IN std_logic_vector(15 downto 0);
379  gt8_txcharisk_in : IN std_logic_vector(1 downto 0);
380  gt8_txprbssel_in : IN std_logic_vector(2 downto 0);
381  gt9_drpaddr_in : IN std_logic_vector(8 downto 0);
382  gt9_drpclk_in : IN std_logic;
383  gt9_drpdi_in : IN std_logic_vector(15 downto 0);
384  gt9_drpen_in : IN std_logic;
385  gt9_drpwe_in : IN std_logic;
386  gt9_loopback_in : IN std_logic_vector(2 downto 0);
387  gt9_rxpd_in : IN std_logic_vector(1 downto 0);
388  gt9_txpd_in : IN std_logic_vector(1 downto 0);
389  gt9_eyescanreset_in : IN std_logic;
390  gt9_rxuserrdy_in : IN std_logic;
391  gt9_eyescantrigger_in : IN std_logic;
392  gt9_rxusrclk_in : IN std_logic;
393  gt9_rxusrclk2_in : IN std_logic;
394  gt9_rxprbssel_in : IN std_logic_vector(2 downto 0);
395  gt9_rxprbscntreset_in : IN std_logic;
396  gt9_gtxrxp_in : IN std_logic;
397  gt9_gtxrxn_in : IN std_logic;
398  gt9_rxmcommaalignen_in : IN std_logic;
399  gt9_rxpcommaalignen_in : IN std_logic;
400  gt9_rxdfelpmreset_in : IN std_logic;
401  gt9_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
402  gt9_gtrxreset_in : IN std_logic;
403  gt9_rxpmareset_in : IN std_logic;
404  gt9_gttxreset_in : IN std_logic;
405  gt9_txuserrdy_in : IN std_logic;
406  gt9_txusrclk_in : IN std_logic;
407  gt9_txusrclk2_in : IN std_logic;
408  gt9_txdiffctrl_in : IN std_logic_vector(3 downto 0);
409  gt9_txdata_in : IN std_logic_vector(15 downto 0);
410  gt9_txcharisk_in : IN std_logic_vector(1 downto 0);
411  gt9_txprbssel_in : IN std_logic_vector(2 downto 0);
412  gt10_drpaddr_in : IN std_logic_vector(8 downto 0);
413  gt10_drpclk_in : IN std_logic;
414  gt10_drpdi_in : IN std_logic_vector(15 downto 0);
415  gt10_drpen_in : IN std_logic;
416  gt10_drpwe_in : IN std_logic;
417  gt10_loopback_in : IN std_logic_vector(2 downto 0);
418  gt10_rxpd_in : IN std_logic_vector(1 downto 0);
419  gt10_txpd_in : IN std_logic_vector(1 downto 0);
420  gt10_eyescanreset_in : IN std_logic;
421  gt10_rxuserrdy_in : IN std_logic;
422  gt10_eyescantrigger_in : IN std_logic;
423  gt10_rxusrclk_in : IN std_logic;
424  gt10_rxusrclk2_in : IN std_logic;
425  gt10_rxprbssel_in : IN std_logic_vector(2 downto 0);
426  gt10_rxprbscntreset_in : IN std_logic;
427  gt10_gtxrxp_in : IN std_logic;
428  gt10_gtxrxn_in : IN std_logic;
429  gt10_rxmcommaalignen_in : IN std_logic;
430  gt10_rxpcommaalignen_in : IN std_logic;
431  gt10_rxdfelpmreset_in : IN std_logic;
432  gt10_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
433  gt10_gtrxreset_in : IN std_logic;
434  gt10_rxpmareset_in : IN std_logic;
435  gt10_gttxreset_in : IN std_logic;
436  gt10_txuserrdy_in : IN std_logic;
437  gt10_txusrclk_in : IN std_logic;
438  gt10_txusrclk2_in : IN std_logic;
439  gt10_txdiffctrl_in : IN std_logic_vector(3 downto 0);
440  gt10_txdata_in : IN std_logic_vector(15 downto 0);
441  gt10_txcharisk_in : IN std_logic_vector(1 downto 0);
442  gt10_txprbssel_in : IN std_logic_vector(2 downto 0);
443  gt11_drpaddr_in : IN std_logic_vector(8 downto 0);
444  gt11_drpclk_in : IN std_logic;
445  gt11_drpdi_in : IN std_logic_vector(15 downto 0);
446  gt11_drpen_in : IN std_logic;
447  gt11_drpwe_in : IN std_logic;
448  gt11_loopback_in : IN std_logic_vector(2 downto 0);
449  gt11_rxpd_in : IN std_logic_vector(1 downto 0);
450  gt11_txpd_in : IN std_logic_vector(1 downto 0);
451  gt11_eyescanreset_in : IN std_logic;
452  gt11_rxuserrdy_in : IN std_logic;
453  gt11_eyescantrigger_in : IN std_logic;
454  gt11_rxusrclk_in : IN std_logic;
455  gt11_rxusrclk2_in : IN std_logic;
456  gt11_rxprbssel_in : IN std_logic_vector(2 downto 0);
457  gt11_rxprbscntreset_in : IN std_logic;
458  gt11_gtxrxp_in : IN std_logic;
459  gt11_gtxrxn_in : IN std_logic;
460  gt11_rxmcommaalignen_in : IN std_logic;
461  gt11_rxpcommaalignen_in : IN std_logic;
462  gt11_rxdfelpmreset_in : IN std_logic;
463  gt11_rxmonitorsel_in : IN std_logic_vector(1 downto 0);
464  gt11_gtrxreset_in : IN std_logic;
465  gt11_rxpmareset_in : IN std_logic;
466  gt11_gttxreset_in : IN std_logic;
467  gt11_txuserrdy_in : IN std_logic;
468  gt11_txusrclk_in : IN std_logic;
469  gt11_txusrclk2_in : IN std_logic;
470  gt11_txdiffctrl_in : IN std_logic_vector(3 downto 0);
471  gt11_txdata_in : IN std_logic_vector(15 downto 0);
472  gt11_txcharisk_in : IN std_logic_vector(1 downto 0);
473  gt11_txprbssel_in : IN std_logic_vector(2 downto 0);
474  GT0_QPLLLOCK_IN : IN std_logic;
475  GT0_QPLLREFCLKLOST_IN : IN std_logic;
476  GT0_QPLLOUTCLK_IN : IN std_logic;
477  GT0_QPLLOUTREFCLK_IN : IN std_logic;
478  GT1_QPLLLOCK_IN : IN std_logic;
479  GT1_QPLLREFCLKLOST_IN : IN std_logic;
480  GT1_QPLLOUTCLK_IN : IN std_logic;
481  GT1_QPLLOUTREFCLK_IN : IN std_logic;
482  GT2_QPLLLOCK_IN : IN std_logic;
483  GT2_QPLLREFCLKLOST_IN : IN std_logic;
484  GT2_QPLLOUTCLK_IN : IN std_logic;
485  GT2_QPLLOUTREFCLK_IN : IN std_logic;
486  GT0_TX_FSM_RESET_DONE_OUT : OUT std_logic;
487  GT0_RX_FSM_RESET_DONE_OUT : OUT std_logic;
488  GT1_TX_FSM_RESET_DONE_OUT : OUT std_logic;
489  GT1_RX_FSM_RESET_DONE_OUT : OUT std_logic;
490  GT2_TX_FSM_RESET_DONE_OUT : OUT std_logic;
491  GT2_RX_FSM_RESET_DONE_OUT : OUT std_logic;
492  GT3_TX_FSM_RESET_DONE_OUT : OUT std_logic;
493  GT3_RX_FSM_RESET_DONE_OUT : OUT std_logic;
494  GT4_TX_FSM_RESET_DONE_OUT : OUT std_logic;
495  GT4_RX_FSM_RESET_DONE_OUT : OUT std_logic;
496  GT5_TX_FSM_RESET_DONE_OUT : OUT std_logic;
497  GT5_RX_FSM_RESET_DONE_OUT : OUT std_logic;
498  GT6_TX_FSM_RESET_DONE_OUT : OUT std_logic;
499  GT6_RX_FSM_RESET_DONE_OUT : OUT std_logic;
500  GT7_TX_FSM_RESET_DONE_OUT : OUT std_logic;
501  GT7_RX_FSM_RESET_DONE_OUT : OUT std_logic;
502  GT8_TX_FSM_RESET_DONE_OUT : OUT std_logic;
503  GT8_RX_FSM_RESET_DONE_OUT : OUT std_logic;
504  GT9_TX_FSM_RESET_DONE_OUT : OUT std_logic;
505  GT9_RX_FSM_RESET_DONE_OUT : OUT std_logic;
506  GT10_TX_FSM_RESET_DONE_OUT : OUT std_logic;
507  GT10_RX_FSM_RESET_DONE_OUT : OUT std_logic;
508  GT11_TX_FSM_RESET_DONE_OUT : OUT std_logic;
509  GT11_RX_FSM_RESET_DONE_OUT : OUT std_logic;
510  gt0_drpdo_out : OUT std_logic_vector(15 downto 0);
511  gt0_drprdy_out : OUT std_logic;
512  gt0_dmonitorout_out : OUT std_logic_vector(7 downto 0);
513  gt0_eyescandataerror_out : OUT std_logic;
514  gt0_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
515  gt0_rxdata_out : OUT std_logic_vector(15 downto 0);
516  gt0_rxprbserr_out : OUT std_logic;
517  gt0_rxdisperr_out : OUT std_logic_vector(1 downto 0);
518  gt0_rxnotintable_out : OUT std_logic_vector(1 downto 0);
519  gt0_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
520  gt0_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
521  gt0_rxoutclk_out : OUT std_logic;
522  gt0_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
523  gt0_rxcharisk_out : OUT std_logic_vector(1 downto 0);
524  gt0_rxresetdone_out : OUT std_logic;
525  gt0_gtxtxn_out : OUT std_logic;
526  gt0_gtxtxp_out : OUT std_logic;
527  gt0_txoutclk_out : OUT std_logic;
528  gt0_txoutclkfabric_out : OUT std_logic;
529  gt0_txoutclkpcs_out : OUT std_logic;
530  gt0_txresetdone_out : OUT std_logic;
531  gt1_drpdo_out : OUT std_logic_vector(15 downto 0);
532  gt1_drprdy_out : OUT std_logic;
533  gt1_dmonitorout_out : OUT std_logic_vector(7 downto 0);
534  gt1_eyescandataerror_out : OUT std_logic;
535  gt1_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
536  gt1_rxdata_out : OUT std_logic_vector(15 downto 0);
537  gt1_rxprbserr_out : OUT std_logic;
538  gt1_rxdisperr_out : OUT std_logic_vector(1 downto 0);
539  gt1_rxnotintable_out : OUT std_logic_vector(1 downto 0);
540  gt1_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
541  gt1_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
542  gt1_rxoutclk_out : OUT std_logic;
543  gt1_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
544  gt1_rxcharisk_out : OUT std_logic_vector(1 downto 0);
545  gt1_rxresetdone_out : OUT std_logic;
546  gt1_gtxtxn_out : OUT std_logic;
547  gt1_gtxtxp_out : OUT std_logic;
548  gt1_txoutclk_out : OUT std_logic;
549  gt1_txoutclkfabric_out : OUT std_logic;
550  gt1_txoutclkpcs_out : OUT std_logic;
551  gt1_txresetdone_out : OUT std_logic;
552  gt2_drpdo_out : OUT std_logic_vector(15 downto 0);
553  gt2_drprdy_out : OUT std_logic;
554  gt2_dmonitorout_out : OUT std_logic_vector(7 downto 0);
555  gt2_eyescandataerror_out : OUT std_logic;
556  gt2_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
557  gt2_rxdata_out : OUT std_logic_vector(15 downto 0);
558  gt2_rxprbserr_out : OUT std_logic;
559  gt2_rxdisperr_out : OUT std_logic_vector(1 downto 0);
560  gt2_rxnotintable_out : OUT std_logic_vector(1 downto 0);
561  gt2_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
562  gt2_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
563  gt2_rxoutclk_out : OUT std_logic;
564  gt2_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
565  gt2_rxcharisk_out : OUT std_logic_vector(1 downto 0);
566  gt2_rxresetdone_out : OUT std_logic;
567  gt2_gtxtxn_out : OUT std_logic;
568  gt2_gtxtxp_out : OUT std_logic;
569  gt2_txoutclk_out : OUT std_logic;
570  gt2_txoutclkfabric_out : OUT std_logic;
571  gt2_txoutclkpcs_out : OUT std_logic;
572  gt2_txresetdone_out : OUT std_logic;
573  gt3_drpdo_out : OUT std_logic_vector(15 downto 0);
574  gt3_drprdy_out : OUT std_logic;
575  gt3_dmonitorout_out : OUT std_logic_vector(7 downto 0);
576  gt3_eyescandataerror_out : OUT std_logic;
577  gt3_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
578  gt3_rxdata_out : OUT std_logic_vector(15 downto 0);
579  gt3_rxprbserr_out : OUT std_logic;
580  gt3_rxdisperr_out : OUT std_logic_vector(1 downto 0);
581  gt3_rxnotintable_out : OUT std_logic_vector(1 downto 0);
582  gt3_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
583  gt3_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
584  gt3_rxoutclk_out : OUT std_logic;
585  gt3_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
586  gt3_rxcharisk_out : OUT std_logic_vector(1 downto 0);
587  gt3_rxresetdone_out : OUT std_logic;
588  gt3_gtxtxn_out : OUT std_logic;
589  gt3_gtxtxp_out : OUT std_logic;
590  gt3_txoutclk_out : OUT std_logic;
591  gt3_txoutclkfabric_out : OUT std_logic;
592  gt3_txoutclkpcs_out : OUT std_logic;
593  gt3_txresetdone_out : OUT std_logic;
594  gt4_drpdo_out : OUT std_logic_vector(15 downto 0);
595  gt4_drprdy_out : OUT std_logic;
596  gt4_dmonitorout_out : OUT std_logic_vector(7 downto 0);
597  gt4_eyescandataerror_out : OUT std_logic;
598  gt4_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
599  gt4_rxdata_out : OUT std_logic_vector(15 downto 0);
600  gt4_rxprbserr_out : OUT std_logic;
601  gt4_rxdisperr_out : OUT std_logic_vector(1 downto 0);
602  gt4_rxnotintable_out : OUT std_logic_vector(1 downto 0);
603  gt4_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
604  gt4_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
605  gt4_rxoutclk_out : OUT std_logic;
606  gt4_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
607  gt4_rxcharisk_out : OUT std_logic_vector(1 downto 0);
608  gt4_rxresetdone_out : OUT std_logic;
609  gt4_gtxtxn_out : OUT std_logic;
610  gt4_gtxtxp_out : OUT std_logic;
611  gt4_txoutclk_out : OUT std_logic;
612  gt4_txoutclkfabric_out : OUT std_logic;
613  gt4_txoutclkpcs_out : OUT std_logic;
614  gt4_txresetdone_out : OUT std_logic;
615  gt5_drpdo_out : OUT std_logic_vector(15 downto 0);
616  gt5_drprdy_out : OUT std_logic;
617  gt5_dmonitorout_out : OUT std_logic_vector(7 downto 0);
618  gt5_eyescandataerror_out : OUT std_logic;
619  gt5_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
620  gt5_rxdata_out : OUT std_logic_vector(15 downto 0);
621  gt5_rxprbserr_out : OUT std_logic;
622  gt5_rxdisperr_out : OUT std_logic_vector(1 downto 0);
623  gt5_rxnotintable_out : OUT std_logic_vector(1 downto 0);
624  gt5_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
625  gt5_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
626  gt5_rxoutclk_out : OUT std_logic;
627  gt5_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
628  gt5_rxcharisk_out : OUT std_logic_vector(1 downto 0);
629  gt5_rxresetdone_out : OUT std_logic;
630  gt5_gtxtxn_out : OUT std_logic;
631  gt5_gtxtxp_out : OUT std_logic;
632  gt5_txoutclk_out : OUT std_logic;
633  gt5_txoutclkfabric_out : OUT std_logic;
634  gt5_txoutclkpcs_out : OUT std_logic;
635  gt5_txresetdone_out : OUT std_logic;
636  gt6_drpdo_out : OUT std_logic_vector(15 downto 0);
637  gt6_drprdy_out : OUT std_logic;
638  gt6_dmonitorout_out : OUT std_logic_vector(7 downto 0);
639  gt6_eyescandataerror_out : OUT std_logic;
640  gt6_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
641  gt6_rxdata_out : OUT std_logic_vector(15 downto 0);
642  gt6_rxprbserr_out : OUT std_logic;
643  gt6_rxdisperr_out : OUT std_logic_vector(1 downto 0);
644  gt6_rxnotintable_out : OUT std_logic_vector(1 downto 0);
645  gt6_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
646  gt6_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
647  gt6_rxoutclk_out : OUT std_logic;
648  gt6_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
649  gt6_rxcharisk_out : OUT std_logic_vector(1 downto 0);
650  gt6_rxresetdone_out : OUT std_logic;
651  gt6_gtxtxn_out : OUT std_logic;
652  gt6_gtxtxp_out : OUT std_logic;
653  gt6_txoutclk_out : OUT std_logic;
654  gt6_txoutclkfabric_out : OUT std_logic;
655  gt6_txoutclkpcs_out : OUT std_logic;
656  gt6_txresetdone_out : OUT std_logic;
657  gt7_drpdo_out : OUT std_logic_vector(15 downto 0);
658  gt7_drprdy_out : OUT std_logic;
659  gt7_dmonitorout_out : OUT std_logic_vector(7 downto 0);
660  gt7_eyescandataerror_out : OUT std_logic;
661  gt7_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
662  gt7_rxdata_out : OUT std_logic_vector(15 downto 0);
663  gt7_rxprbserr_out : OUT std_logic;
664  gt7_rxdisperr_out : OUT std_logic_vector(1 downto 0);
665  gt7_rxnotintable_out : OUT std_logic_vector(1 downto 0);
666  gt7_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
667  gt7_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
668  gt7_rxoutclk_out : OUT std_logic;
669  gt7_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
670  gt7_rxcharisk_out : OUT std_logic_vector(1 downto 0);
671  gt7_rxresetdone_out : OUT std_logic;
672  gt7_gtxtxn_out : OUT std_logic;
673  gt7_gtxtxp_out : OUT std_logic;
674  gt7_txoutclk_out : OUT std_logic;
675  gt7_txoutclkfabric_out : OUT std_logic;
676  gt7_txoutclkpcs_out : OUT std_logic;
677  gt7_txresetdone_out : OUT std_logic;
678  gt8_drpdo_out : OUT std_logic_vector(15 downto 0);
679  gt8_drprdy_out : OUT std_logic;
680  gt8_dmonitorout_out : OUT std_logic_vector(7 downto 0);
681  gt8_eyescandataerror_out : OUT std_logic;
682  gt8_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
683  gt8_rxdata_out : OUT std_logic_vector(15 downto 0);
684  gt8_rxprbserr_out : OUT std_logic;
685  gt8_rxdisperr_out : OUT std_logic_vector(1 downto 0);
686  gt8_rxnotintable_out : OUT std_logic_vector(1 downto 0);
687  gt8_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
688  gt8_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
689  gt8_rxoutclk_out : OUT std_logic;
690  gt8_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
691  gt8_rxcharisk_out : OUT std_logic_vector(1 downto 0);
692  gt8_rxresetdone_out : OUT std_logic;
693  gt8_gtxtxn_out : OUT std_logic;
694  gt8_gtxtxp_out : OUT std_logic;
695  gt8_txoutclk_out : OUT std_logic;
696  gt8_txoutclkfabric_out : OUT std_logic;
697  gt8_txoutclkpcs_out : OUT std_logic;
698  gt8_txresetdone_out : OUT std_logic;
699  gt9_drpdo_out : OUT std_logic_vector(15 downto 0);
700  gt9_drprdy_out : OUT std_logic;
701  gt9_dmonitorout_out : OUT std_logic_vector(7 downto 0);
702  gt9_eyescandataerror_out : OUT std_logic;
703  gt9_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
704  gt9_rxdata_out : OUT std_logic_vector(15 downto 0);
705  gt9_rxprbserr_out : OUT std_logic;
706  gt9_rxdisperr_out : OUT std_logic_vector(1 downto 0);
707  gt9_rxnotintable_out : OUT std_logic_vector(1 downto 0);
708  gt9_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
709  gt9_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
710  gt9_rxoutclk_out : OUT std_logic;
711  gt9_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
712  gt9_rxcharisk_out : OUT std_logic_vector(1 downto 0);
713  gt9_rxresetdone_out : OUT std_logic;
714  gt9_gtxtxn_out : OUT std_logic;
715  gt9_gtxtxp_out : OUT std_logic;
716  gt9_txoutclk_out : OUT std_logic;
717  gt9_txoutclkfabric_out : OUT std_logic;
718  gt9_txoutclkpcs_out : OUT std_logic;
719  gt9_txresetdone_out : OUT std_logic;
720  gt10_drpdo_out : OUT std_logic_vector(15 downto 0);
721  gt10_drprdy_out : OUT std_logic;
722  gt10_dmonitorout_out : OUT std_logic_vector(7 downto 0);
723  gt10_eyescandataerror_out : OUT std_logic;
724  gt10_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
725  gt10_rxdata_out : OUT std_logic_vector(15 downto 0);
726  gt10_rxprbserr_out : OUT std_logic;
727  gt10_rxdisperr_out : OUT std_logic_vector(1 downto 0);
728  gt10_rxnotintable_out : OUT std_logic_vector(1 downto 0);
729  gt10_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
730  gt10_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
731  gt10_rxoutclk_out : OUT std_logic;
732  gt10_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
733  gt10_rxcharisk_out : OUT std_logic_vector(1 downto 0);
734  gt10_rxresetdone_out : OUT std_logic;
735  gt10_gtxtxn_out : OUT std_logic;
736  gt10_gtxtxp_out : OUT std_logic;
737  gt10_txoutclk_out : OUT std_logic;
738  gt10_txoutclkfabric_out : OUT std_logic;
739  gt10_txoutclkpcs_out : OUT std_logic;
740  gt10_txresetdone_out : OUT std_logic;
741  gt11_drpdo_out : OUT std_logic_vector(15 downto 0);
742  gt11_drprdy_out : OUT std_logic;
743  gt11_dmonitorout_out : OUT std_logic_vector(7 downto 0);
744  gt11_eyescandataerror_out : OUT std_logic;
745  gt11_rxclkcorcnt_out : OUT std_logic_vector(1 downto 0);
746  gt11_rxdata_out : OUT std_logic_vector(15 downto 0);
747  gt11_rxprbserr_out : OUT std_logic;
748  gt11_rxdisperr_out : OUT std_logic_vector(1 downto 0);
749  gt11_rxnotintable_out : OUT std_logic_vector(1 downto 0);
750  gt11_rxbufstatus_out : OUT std_logic_vector(2 downto 0);
751  gt11_rxmonitorout_out : OUT std_logic_vector(6 downto 0);
752  gt11_rxoutclk_out : OUT std_logic;
753  gt11_rxchariscomma_out : OUT std_logic_vector(1 downto 0);
754  gt11_rxcharisk_out : OUT std_logic_vector(1 downto 0);
755  gt11_rxresetdone_out : OUT std_logic;
756  gt11_gtxtxn_out : OUT std_logic;
757  gt11_gtxtxp_out : OUT std_logic;
758  gt11_txoutclk_out : OUT std_logic;
759  gt11_txoutclkfabric_out : OUT std_logic;
760  gt11_txoutclkpcs_out : OUT std_logic;
761  gt11_txresetdone_out : OUT std_logic;
762  GT0_QPLLRESET_OUT : OUT std_logic;
763  GT1_QPLLRESET_OUT : OUT std_logic;
764  GT2_QPLLRESET_OUT : OUT std_logic
765  );
766 end component;
767 component amc_gtx5Gpd_common_reset
768 generic
769 (
770  STABLE_CLOCK_PERIOD : integer := 8 -- Period of the stable clock driving this state-machine, unit is [ns]
771  );
772 port
773  (
774  STABLE_CLOCK : in std_logic; --Stable Clock, either a stable clock from the PCB
775  SOFT_RESET : in std_logic; --User Reset, can be pulled any time
776  COMMON_RESET : out std_logic --Reset QPLL
777  );
778 end component;
779 
780 component amc_gtx5Gpd_common
781 generic
782 (
783  -- Simulation attributes
784  WRAPPER_SIM_GTRESET_SPEEDUP : string := "TRUE" -- Set to "TRUE" to speed up sim reset
785 );
786 port
787 (
788  GTREFCLK0_IN : in std_logic;
789  QPLLLOCK_OUT : out std_logic;
790  QPLLLOCKDETCLK_IN : in std_logic;
791  QPLLOUTCLK_OUT : out std_logic;
792  QPLLOUTREFCLK_OUT : out std_logic;
793  QPLLREFCLKLOST_OUT : out std_logic;
794  QPLLRESET_IN : in std_logic
795 
796 );
797 
798 end component;
799 signal qpll_lock_i : std_logic_vector(2 downto 0) := (others =>'0');
800 signal qpll_lock_n : std_logic_vector(2 downto 0) := (others =>'0');
801 signal COMMON_RESET : std_logic := '0';
802 signal GT0_QPLLRESET_OUT : std_logic := '0';
803 signal GT1_QPLLRESET_OUT : std_logic := '0';
804 signal GT2_QPLLRESET_OUT : std_logic := '0';
805 signal GT0_QPLLRESET_IN : std_logic := '0';
806 signal GT1_QPLLRESET_IN : std_logic := '0';
807 signal GT2_QPLLRESET_IN : std_logic := '0';
808 signal GT0_QPLLOUTCLK : std_logic := '0';
809 signal GT1_QPLLOUTCLK : std_logic := '0';
810 signal GT2_QPLLOUTCLK : std_logic := '0';
811 signal GT0_QPLLOUTREFCLK : std_logic := '0';
812 signal GT1_QPLLOUTREFCLK : std_logic := '0';
813 signal GT2_QPLLOUTREFCLK : std_logic := '0';
814 signal GT0_QPLLREFCLKLOST : std_logic := '0';
815 signal GT1_QPLLREFCLKLOST : std_logic := '0';
816 signal GT2_QPLLREFCLKLOST : std_logic := '0';
817 signal loopback : array12x3 := (others => (others => '0'));
818 signal AMC_pd : array12x2 := (others => (others => '0'));
819 signal gt0_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
820 signal gt1_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
821 signal gt2_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
822 signal gt3_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
823 signal gt4_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
824 signal gt5_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
825 signal gt6_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
826 signal gt7_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
827 signal gt8_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
828 signal gt9_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
829 signal gt10_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
830 signal gt11_rxbufstatus : std_logic_vector(2 downto 0) := (others =>'0');
831 signal gt0_rxoutclk : std_logic := '0';
832 signal gt1_rxoutclk : std_logic := '0';
833 signal gt2_rxoutclk : std_logic := '0';
834 signal gt3_rxoutclk : std_logic := '0';
835 signal gt4_rxoutclk : std_logic := '0';
836 signal gt5_rxoutclk : std_logic := '0';
837 signal gt6_rxoutclk : std_logic := '0';
838 signal gt7_rxoutclk : std_logic := '0';
839 signal gt8_rxoutclk : std_logic := '0';
840 signal gt9_rxoutclk : std_logic := '0';
841 signal gt10_rxoutclk : std_logic := '0';
842 signal gt11_rxoutclk : std_logic := '0';
843 signal gt0_rxoutclk_buf : std_logic := '0';
844 signal gt1_rxoutclk_buf : std_logic := '0';
845 signal gt2_rxoutclk_buf : std_logic := '0';
846 signal gt3_rxoutclk_buf : std_logic := '0';
847 signal gt4_rxoutclk_buf : std_logic := '0';
848 signal gt5_rxoutclk_buf : std_logic := '0';
849 signal gt6_rxoutclk_buf : std_logic := '0';
850 signal gt7_rxoutclk_buf : std_logic := '0';
851 signal gt8_rxoutclk_buf : std_logic := '0';
852 signal gt9_rxoutclk_buf : std_logic := '0';
853 signal gt10_rxoutclk_buf : std_logic := '0';
854 signal gt11_rxoutclk_buf : std_logic := '0';
855 signal RxCntr : array12x21 := (others => (others => '0'));
856 signal sampleRatioSync : array12x4 := (others => (others => '0'));
857 begin
858 qpll_lock <= qpll_lock_i;
859 process(test, AMC_en)
860 begin
861  for i in 0 to 11 loop
862  if(test = '1' or AMC_en(i) = '0')then
863  loopback(i) <= "001";
864  else
865  loopback(i) <= "000";
866  end if;
867  if(Dis_pd = '0' and (test = '1' or AMC_en(i) = '0'))then
868  AMC_pd(i) <= "11";
869  else
870  AMC_pd(i) <= "00";
871  end if;
872  end loop;
873 end process;
874 process(UsrClk)
875 begin
876  if(UsrClk'event and UsrClk = '1')then
877  if(gt0_rxbufstatus = "110")then
878  RxBufOvf(0) <= '1';
879  else
880  RxBufOvf(0) <= '0';
881  end if;
882  if(gt0_rxbufstatus = "101")then
883  RxBufUdf(0) <= '1';
884  else
885  RxBufUdf(0) <= '0';
886  end if;
887  if(gt1_rxbufstatus = "110")then
888  RxBufOvf(1) <= '1';
889  else
890  RxBufOvf(1) <= '0';
891  end if;
892  if(gt1_rxbufstatus = "101")then
893  RxBufUdf(1) <= '1';
894  else
895  RxBufUdf(1) <= '0';
896  end if;
897  if(gt2_rxbufstatus = "110")then
898  RxBufOvf(2) <= '1';
899  else
900  RxBufOvf(2) <= '0';
901  end if;
902  if(gt2_rxbufstatus = "101")then
903  RxBufUdf(2) <= '1';
904  else
905  RxBufUdf(2) <= '0';
906  end if;
907  if(gt3_rxbufstatus = "110")then
908  RxBufOvf(3) <= '1';
909  else
910  RxBufOvf(3) <= '0';
911  end if;
912  if(gt3_rxbufstatus = "101")then
913  RxBufUdf(3) <= '1';
914  else
915  RxBufUdf(3) <= '0';
916  end if;
917  if(gt4_rxbufstatus = "110")then
918  RxBufOvf(4) <= '1';
919  else
920  RxBufOvf(4) <= '0';
921  end if;
922  if(gt4_rxbufstatus = "101")then
923  RxBufUdf(4) <= '1';
924  else
925  RxBufUdf(4) <= '0';
926  end if;
927  if(gt5_rxbufstatus = "110")then
928  RxBufOvf(5) <= '1';
929  else
930  RxBufOvf(5) <= '0';
931  end if;
932  if(gt5_rxbufstatus = "101")then
933  RxBufUdf(5) <= '1';
934  else
935  RxBufUdf(5) <= '0';
936  end if;
937  if(gt6_rxbufstatus = "110")then
938  RxBufOvf(6) <= '1';
939  else
940  RxBufOvf(6) <= '0';
941  end if;
942  if(gt6_rxbufstatus = "101")then
943  RxBufUdf(6) <= '1';
944  else
945  RxBufUdf(6) <= '0';
946  end if;
947  if(gt7_rxbufstatus = "110")then
948  RxBufOvf(7) <= '1';
949  else
950  RxBufOvf(7) <= '0';
951  end if;
952  if(gt7_rxbufstatus = "101")then
953  RxBufUdf(7) <= '1';
954  else
955  RxBufUdf(7) <= '0';
956  end if;
957  if(gt8_rxbufstatus = "110")then
958  RxBufOvf(8) <= '1';
959  else
960  RxBufOvf(8) <= '0';
961  end if;
962  if(gt8_rxbufstatus = "101")then
963  RxBufUdf(8) <= '1';
964  else
965  RxBufUdf(8) <= '0';
966  end if;
967  if(gt9_rxbufstatus = "110")then
968  RxBufOvf(9) <= '1';
969  else
970  RxBufOvf(9) <= '0';
971  end if;
972  if(gt9_rxbufstatus = "101")then
973  RxBufUdf(9) <= '1';
974  else
975  RxBufUdf(9) <= '0';
976  end if;
977  if(gt10_rxbufstatus = "110")then
978  RxBufOvf(10) <= '1';
979  else
980  RxBufOvf(10) <= '0';
981  end if;
982  if(gt10_rxbufstatus = "101")then
983  RxBufUdf(10) <= '1';
984  else
985  RxBufUdf(10) <= '0';
986  end if;
987  if(gt11_rxbufstatus = "110")then
988  RxBufOvf(11) <= '1';
989  else
990  RxBufOvf(11) <= '0';
991  end if;
992  if(gt11_rxbufstatus = "101")then
993  RxBufUdf(11) <= '1';
994  else
995  RxBufUdf(11) <= '0';
996  end if;
997  end if;
998 end process;
999 process(gt0_rxoutclk_buf)
1000 begin
1001  if(gt0_rxoutclk_buf'event and gt0_rxoutclk_buf = '1')then
1002  sampleRatioSync(0) <= sampleRatioSync(0)(2 downto 0) & sampleRatio;
1003  if(sampleRatioSync(0)(3 downto 2) = "10")then
1004  RxCntr(0) <= (others => '0');
1005  if(updateRatio = '1')then
1006  RxClkRatio(0) <= RxCntr(0);
1007  end if;
1008  else
1009  RxCntr(0) <= RxCntr(0) + 1;
1010  end if;
1011  end if;
1012 end process;
1013 process(gt1_rxoutclk_buf)
1014 begin
1015  if(gt1_rxoutclk_buf'event and gt1_rxoutclk_buf = '1')then
1016  sampleRatioSync(1) <= sampleRatioSync(1)(2 downto 0) & sampleRatio;
1017  if(sampleRatioSync(1)(3 downto 2) = "10")then
1018  RxCntr(1) <= (others => '0');
1019  if(updateRatio = '1')then
1020  RxClkRatio(1) <= RxCntr(1);
1021  end if;
1022  else
1023  RxCntr(1) <= RxCntr(1) + 1;
1024  end if;
1025  end if;
1026 end process;
1027 process(gt2_rxoutclk_buf)
1028 begin
1029  if(gt2_rxoutclk_buf'event and gt2_rxoutclk_buf = '1')then
1030  sampleRatioSync(2) <= sampleRatioSync(2)(2 downto 0) & sampleRatio;
1031  if(sampleRatioSync(2)(3 downto 2) = "10")then
1032  RxCntr(2) <= (others => '0');
1033  if(updateRatio = '1')then
1034  RxClkRatio(2) <= RxCntr(2);
1035  end if;
1036  else
1037  RxCntr(2) <= RxCntr(2) + 1;
1038  end if;
1039  end if;
1040 end process;
1041 process(gt3_rxoutclk_buf)
1042 begin
1043  if(gt3_rxoutclk_buf'event and gt3_rxoutclk_buf = '1')then
1044  sampleRatioSync(3) <= sampleRatioSync(3)(2 downto 0) & sampleRatio;
1045  if(sampleRatioSync(3)(3 downto 2) = "10")then
1046  RxCntr(3) <= (others => '0');
1047  if(updateRatio = '1')then
1048  RxClkRatio(3) <= RxCntr(3);
1049  end if;
1050  else
1051  RxCntr(3) <= RxCntr(3) + 1;
1052  end if;
1053  end if;
1054 end process;
1055 process(gt4_rxoutclk_buf)
1056 begin
1057  if(gt4_rxoutclk_buf'event and gt4_rxoutclk_buf = '1')then
1058  sampleRatioSync(4) <= sampleRatioSync(4)(2 downto 0) & sampleRatio;
1059  if(sampleRatioSync(4)(3 downto 2) = "10")then
1060  RxCntr(4) <= (others => '0');
1061  if(updateRatio = '1')then
1062  RxClkRatio(4) <= RxCntr(4);
1063  end if;
1064  else
1065  RxCntr(4) <= RxCntr(4) + 1;
1066  end if;
1067  end if;
1068 end process;
1069 process(gt5_rxoutclk_buf)
1070 begin
1071  if(gt5_rxoutclk_buf'event and gt5_rxoutclk_buf = '1')then
1072  sampleRatioSync(5) <= sampleRatioSync(5)(2 downto 0) & sampleRatio;
1073  if(sampleRatioSync(5)(3 downto 2) = "10")then
1074  RxCntr(5) <= (others => '0');
1075  if(updateRatio = '1')then
1076  RxClkRatio(5) <= RxCntr(5);
1077  end if;
1078  else
1079  RxCntr(5) <= RxCntr(5) + 1;
1080  end if;
1081  end if;
1082 end process;
1083 process(gt6_rxoutclk_buf)
1084 begin
1085  if(gt6_rxoutclk_buf'event and gt6_rxoutclk_buf = '1')then
1086  sampleRatioSync(6) <= sampleRatioSync(6)(2 downto 0) & sampleRatio;
1087  if(sampleRatioSync(6)(3 downto 2) = "10")then
1088  RxCntr(6) <= (others => '0');
1089  if(updateRatio = '1')then
1090  RxClkRatio(6) <= RxCntr(6);
1091  end if;
1092  else
1093  RxCntr(6) <= RxCntr(6) + 1;
1094  end if;
1095  end if;
1096 end process;
1097 process(gt7_rxoutclk_buf)
1098 begin
1099  if(gt7_rxoutclk_buf'event and gt7_rxoutclk_buf = '1')then
1100  sampleRatioSync(7) <= sampleRatioSync(7)(2 downto 0) & sampleRatio;
1101  if(sampleRatioSync(7)(3 downto 2) = "10")then
1102  RxCntr(7) <= (others => '0');
1103  if(updateRatio = '1')then
1104  RxClkRatio(7) <= RxCntr(7);
1105  end if;
1106  else
1107  RxCntr(7) <= RxCntr(7) + 1;
1108  end if;
1109  end if;
1110 end process;
1111 process(gt8_rxoutclk_buf)
1112 begin
1113  if(gt8_rxoutclk_buf'event and gt8_rxoutclk_buf = '1')then
1114  sampleRatioSync(8) <= sampleRatioSync(8)(2 downto 0) & sampleRatio;
1115  if(sampleRatioSync(8)(3 downto 2) = "10")then
1116  RxCntr(8) <= (others => '0');
1117  if(updateRatio = '1')then
1118  RxClkRatio(8) <= RxCntr(8);
1119  end if;
1120  else
1121  RxCntr(8) <= RxCntr(8) + 1;
1122  end if;
1123  end if;
1124 end process;
1125 process(gt9_rxoutclk_buf)
1126 begin
1127  if(gt9_rxoutclk_buf'event and gt9_rxoutclk_buf = '1')then
1128  sampleRatioSync(9) <= sampleRatioSync(9)(2 downto 0) & sampleRatio;
1129  if(sampleRatioSync(9)(3 downto 2) = "10")then
1130  RxCntr(9) <= (others => '0');
1131  if(updateRatio = '1')then
1132  RxClkRatio(9) <= RxCntr(9);
1133  end if;
1134  else
1135  RxCntr(9) <= RxCntr(9) + 1;
1136  end if;
1137  end if;
1138 end process;
1139 process(gt10_rxoutclk_buf)
1140 begin
1141  if(gt10_rxoutclk_buf'event and gt10_rxoutclk_buf = '1')then
1142  sampleRatioSync(10) <= sampleRatioSync(10)(2 downto 0) & sampleRatio;
1143  if(sampleRatioSync(10)(3 downto 2) = "10")then
1144  RxCntr(10) <= (others => '0');
1145  if(updateRatio = '1')then
1146  RxClkRatio(10) <= RxCntr(10);
1147  end if;
1148  else
1149  RxCntr(10) <= RxCntr(10) + 1;
1150  end if;
1151  end if;
1152 end process;
1153 process(gt11_rxoutclk_buf)
1154 begin
1155  if(gt11_rxoutclk_buf'event and gt11_rxoutclk_buf = '1')then
1156  sampleRatioSync(11) <= sampleRatioSync(11)(2 downto 0) & sampleRatio;
1157  if(sampleRatioSync(11)(3 downto 2) = "10")then
1158  RxCntr(11) <= (others => '0');
1159  if(updateRatio = '1')then
1160  RxClkRatio(11) <= RxCntr(11);
1161  end if;
1162  else
1163  RxCntr(11) <= RxCntr(11) + 1;
1164  end if;
1165  end if;
1166 end process;
1167 --qpll_lock_n <= not qpll_lock_i;
1168 qpll_lock_n <= "000";
1169 i_gt0_rxoutclk_buf : BUFH port map (O => gt0_rxoutclk_buf, I => gt0_rxoutclk);
1170 i_gt1_rxoutclk_buf : BUFH port map (O => gt1_rxoutclk_buf, I => gt1_rxoutclk);
1171 i_gt2_rxoutclk_buf : BUFH port map (O => gt2_rxoutclk_buf, I => gt2_rxoutclk);
1172 i_gt3_rxoutclk_buf : BUFH port map (O => gt3_rxoutclk_buf, I => gt3_rxoutclk);
1173 i_gt4_rxoutclk_buf : BUFH port map (O => gt4_rxoutclk_buf, I => gt4_rxoutclk);
1174 i_gt5_rxoutclk_buf : BUFH port map (O => gt5_rxoutclk_buf, I => gt5_rxoutclk);
1175 i_gt6_rxoutclk_buf : BUFH port map (O => gt6_rxoutclk_buf, I => gt6_rxoutclk);
1176 i_gt7_rxoutclk_buf : BUFH port map (O => gt7_rxoutclk_buf, I => gt7_rxoutclk);
1177 i_gt8_rxoutclk_buf : BUFH port map (O => gt8_rxoutclk_buf, I => gt8_rxoutclk);
1178 i_gt9_rxoutclk_buf : BUFH port map (O => gt9_rxoutclk_buf, I => gt9_rxoutclk);
1179 i_gt10_rxoutclk_buf : BUFH port map (O => gt10_rxoutclk_buf, I => gt10_rxoutclk);
1180 i_gt11_rxoutclk_buf : BUFH port map (O => gt11_rxoutclk_buf, I => gt11_rxoutclk);
1181 i_AMC_GTX5Gpd_init : amc_gtx5Gpd_init
1182 port map
1183 (
1184  SYSCLK_IN => DRPclk,
1185  SOFT_RESET_IN => SOFT_RESET,
1186  DONT_RESET_ON_DATA_ERROR_IN => '0',
1187  GT0_TX_FSM_RESET_DONE_OUT => txfsmresetdone(0),
1188  GT0_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(0),
1189  GT0_DATA_VALID_IN => data_valid(0),
1190  GT1_TX_FSM_RESET_DONE_OUT => txfsmresetdone(1),
1191  GT1_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(1),
1192  GT1_DATA_VALID_IN => data_valid(1),
1193  GT2_TX_FSM_RESET_DONE_OUT => txfsmresetdone(2),
1194  GT2_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(2),
1195  GT2_DATA_VALID_IN => data_valid(2),
1196  GT3_TX_FSM_RESET_DONE_OUT => txfsmresetdone(3),
1197  GT3_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(3),
1198  GT3_DATA_VALID_IN => data_valid(3),
1199  GT4_TX_FSM_RESET_DONE_OUT => txfsmresetdone(4),
1200  GT4_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(4),
1201  GT4_DATA_VALID_IN => data_valid(4),
1202  GT5_TX_FSM_RESET_DONE_OUT => txfsmresetdone(5),
1203  GT5_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(5),
1204  GT5_DATA_VALID_IN => data_valid(5),
1205  GT6_TX_FSM_RESET_DONE_OUT => txfsmresetdone(6),
1206  GT6_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(6),
1207  GT6_DATA_VALID_IN => data_valid(6),
1208  GT7_TX_FSM_RESET_DONE_OUT => txfsmresetdone(7),
1209  GT7_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(7),
1210  GT7_DATA_VALID_IN => data_valid(7),
1211  GT8_TX_FSM_RESET_DONE_OUT => txfsmresetdone(8),
1212  GT8_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(8),
1213  GT8_DATA_VALID_IN => data_valid(8),
1214  GT9_TX_FSM_RESET_DONE_OUT => txfsmresetdone(9),
1215  GT9_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(9),
1216  GT9_DATA_VALID_IN => data_valid(9),
1217  GT10_TX_FSM_RESET_DONE_OUT => txfsmresetdone(10),
1218  GT10_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(10),
1219  GT10_DATA_VALID_IN => data_valid(10),
1220  GT11_TX_FSM_RESET_DONE_OUT => txfsmresetdone(11),
1221  GT11_RX_FSM_RESET_DONE_OUT => rxfsmresetdone(11),
1222  GT11_DATA_VALID_IN => data_valid(11),
1223 
1224  gt0_rxoutclk_out => gt0_rxoutclk,
1225  gt0_rxbufstatus_out => gt0_rxbufstatus,
1226  gt1_rxoutclk_out => gt1_rxoutclk,
1227  gt1_rxbufstatus_out => gt1_rxbufstatus,
1228  gt2_rxoutclk_out => gt2_rxoutclk,
1229  gt2_rxbufstatus_out => gt2_rxbufstatus,
1230  gt3_rxoutclk_out => gt3_rxoutclk,
1231  gt3_rxbufstatus_out => gt3_rxbufstatus,
1232  gt4_rxoutclk_out => gt4_rxoutclk,
1233  gt4_rxbufstatus_out => gt4_rxbufstatus,
1234  gt5_rxoutclk_out => gt5_rxoutclk,
1235  gt5_rxbufstatus_out => gt5_rxbufstatus,
1236  gt6_rxoutclk_out => gt6_rxoutclk,
1237  gt6_rxbufstatus_out => gt6_rxbufstatus,
1238  gt7_rxoutclk_out => gt7_rxoutclk,
1239  gt7_rxbufstatus_out => gt7_rxbufstatus,
1240  gt8_rxoutclk_out => gt8_rxoutclk,
1241  gt8_rxbufstatus_out => gt8_rxbufstatus,
1242  gt9_rxoutclk_out => gt9_rxoutclk,
1243  gt9_rxbufstatus_out => gt9_rxbufstatus,
1244  gt10_rxoutclk_out => gt10_rxoutclk,
1245  gt10_rxbufstatus_out => gt10_rxbufstatus,
1246  gt11_rxoutclk_out => gt11_rxoutclk,
1247  gt11_rxbufstatus_out => gt11_rxbufstatus,
1248 
1249  --_________________________________________________________________________
1250  --GT0 (X0Y0)
1251  --____________________________CHANNEL PORTS________________________________
1252  ---------------------------- Channel - DRP Ports --------------------------
1253  GT0_DRPADDR_IN => (others => '0'),
1254  GT0_DRPCLK_IN => DRPclk,
1255  GT0_DRPDI_IN => (others => '0'),
1256  GT0_DRPDO_OUT => open,
1257  GT0_DRPEN_IN => '0',
1258  GT0_DRPRDY_OUT => open,
1259  GT0_DRPWE_IN => '0',
1260  --------------------------- Digital Monitor Ports --------------------------
1261  GT0_DMONITOROUT_OUT => open,
1262  ------------------------------- Loopback Ports -----------------------------
1263  GT0_LOOPBACK_IN => loopback(0),
1264  ------------------------------ Power-Down Ports ----------------------------
1265  GT0_RXPD_IN => AMC_pd(0),
1266  GT0_TXPD_IN => AMC_pd(0),
1267  --------------------- RX Initialization and Reset Ports --------------------
1268  GT0_EYESCANRESET_IN => '0',
1269  GT0_RXUSERRDY_IN => '0',
1270  -------------------------- RX Margin Analysis Ports ------------------------
1271  GT0_EYESCANDATAERROR_OUT => open,
1272  GT0_EYESCANTRIGGER_IN => '0',
1273  ------------------- Receive Ports - Clock Correction Ports -----------------
1274  GT0_RXCLKCORCNT_OUT => open,
1275  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
1276  GT0_RXUSRCLK_IN => UsrClk,
1277  GT0_RXUSRCLK2_IN => UsrClk,
1278  ------------------ Receive Ports - FPGA RX interface Ports -----------------
1279  GT0_RXDATA_OUT => RXDATA(0),
1280  ------------------- Receive Ports - Pattern Checker Ports ------------------
1281  GT0_RXPRBSERR_OUT => rxprbserr(0),
1282  GT0_RXPRBSSEL_IN => rxprbssel(0),
1283  ------------------- Receive Ports - Pattern Checker ports ------------------
1284  GT0_RXPRBSCNTRESET_IN => '0',
1285  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
1286  GT0_RXDISPERR_OUT => open,
1287  GT0_RXNOTINTABLE_OUT => RXNOTINTABLE (0),
1288  --------------------------- Receive Ports - RX AFE -------------------------
1289  GT0_GTXRXP_IN => RXP(0),
1290  ------------------------ Receive Ports - RX AFE Ports ----------------------
1291  GT0_GTXRXN_IN => RXN(0),
1292  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
1293  GT0_RXMCOMMAALIGNEN_IN => rxcommaalignen(0),
1294  GT0_RXPCOMMAALIGNEN_IN => rxcommaalignen(0),
1295  --------------------- Receive Ports - RX Equalizer Ports -------------------
1296  GT0_RXDFELPMRESET_IN => '0',
1297  GT0_RXMONITOROUT_OUT => open,
1298  GT0_RXMONITORSEL_IN => "00",
1299  ------------- Receive Ports - RX Initialization and Reset Ports ------------
1300  GT0_GTRXRESET_IN => qpll_lock_n (0),
1301  GT0_RXPMARESET_IN => '0',
1302  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
1303  GT0_RXCHARISCOMMA_OUT => rxchariscomma(0),
1304  GT0_RXCHARISK_OUT => rxcharisk(0),
1305  -------------- Receive Ports -RX Initialization and Reset Ports ------------
1306  GT0_RXRESETDONE_OUT => rxresetdone (0),
1307  --------------------- TX Initialization and Reset Ports --------------------
1308  GT0_GTTXRESET_IN => qpll_lock_n (0),
1309  GT0_TXUSERRDY_IN => '0',
1310  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
1311  GT0_TXUSRCLK_IN => UsrClk,
1312  GT0_TXUSRCLK2_IN => UsrClk,
1313  --------------- Transmit Ports - TX Configurable Driver Ports --------------
1314  GT0_TXDIFFCTRL_IN => txdiffctrl(0),
1315  ------------------ Transmit Ports - TX Data Path interface -----------------
1316  GT0_TXDATA_IN => TXDATA(0),
1317  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
1318  GT0_GTXTXN_OUT => TXN(0),
1319  GT0_GTXTXP_OUT => TXP(0),
1320  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
1321  GT0_TXOUTCLK_OUT => txoutclk(0),
1322  GT0_TXOUTCLKFABRIC_OUT => open,
1323  GT0_TXOUTCLKPCS_OUT => open,
1324  --------------------- Transmit Ports - TX Gearbox Ports --------------------
1325  GT0_TXCHARISK_IN => txcharisk(0),
1326  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
1327  GT0_TXRESETDONE_OUT => txresetdone (0),
1328  ------------------ Transmit Ports - pattern Generator Ports ----------------
1329  GT0_TXPRBSSEL_IN => txprbssel(0),
1330 
1331  --GT1 (X0Y1)
1332  --____________________________CHANNEL PORTS________________________________
1333  ---------------------------- Channel - DRP Ports --------------------------
1334  GT1_DRPADDR_IN => (others => '0'),
1335  GT1_DRPCLK_IN => DRPclk,
1336  GT1_DRPDI_IN => (others => '0'),
1337  GT1_DRPDO_OUT => open,
1338  GT1_DRPEN_IN => '0',
1339  GT1_DRPRDY_OUT => open,
1340  GT1_DRPWE_IN => '0',
1341  --------------------------- Digital Monitor Ports --------------------------
1342  GT1_DMONITOROUT_OUT => open,
1343  ------------------------------- Loopback Ports -----------------------------
1344  GT1_LOOPBACK_IN => loopback(1),
1345  ------------------------------ Power-Down Ports ----------------------------
1346  GT1_RXPD_IN => AMC_pd(1),
1347  GT1_TXPD_IN => AMC_pd(1),
1348  --------------------- RX Initialization and Reset Ports --------------------
1349  GT1_EYESCANRESET_IN => '0',
1350  GT1_RXUSERRDY_IN => '0',
1351  -------------------------- RX Margin Analysis Ports ------------------------
1352  GT1_EYESCANDATAERROR_OUT => open,
1353  GT1_EYESCANTRIGGER_IN => '0',
1354  ------------------- Receive Ports - Clock Correction Ports -----------------
1355  GT1_RXCLKCORCNT_OUT => open,
1356  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
1357  GT1_RXUSRCLK_IN => UsrClk,
1358  GT1_RXUSRCLK2_IN => UsrClk,
1359  ------------------ Receive Ports - FPGA RX interface Ports -----------------
1360  GT1_RXDATA_OUT => RXDATA(1),
1361  ------------------- Receive Ports - Pattern Checker Ports ------------------
1362  GT1_RXPRBSERR_OUT => rxprbserr(1),
1363  GT1_RXPRBSSEL_IN => rxprbssel(1),
1364  ------------------- Receive Ports - Pattern Checker ports ------------------
1365  GT1_RXPRBSCNTRESET_IN => '0',
1366  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
1367  GT1_RXDISPERR_OUT => open,
1368  GT1_RXNOTINTABLE_OUT => RXNOTINTABLE (1),
1369  --------------------------- Receive Ports - RX AFE -------------------------
1370  GT1_GTXRXP_IN => RXP(1),
1371  ------------------------ Receive Ports - RX AFE Ports ----------------------
1372  GT1_GTXRXN_IN => RXN(1),
1373  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
1374  GT1_RXMCOMMAALIGNEN_IN => rxcommaalignen(1),
1375  GT1_RXPCOMMAALIGNEN_IN => rxcommaalignen(1),
1376  --------------------- Receive Ports - RX Equalizer Ports -------------------
1377  GT1_RXDFELPMRESET_IN => '0',
1378  GT1_RXMONITOROUT_OUT => open,
1379  GT1_RXMONITORSEL_IN => "00",
1380  ------------- Receive Ports - RX Initialization and Reset Ports ------------
1381  GT1_GTRXRESET_IN => qpll_lock_n (1),
1382  GT1_RXPMARESET_IN => '0',
1383  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
1384  GT1_RXCHARISCOMMA_OUT => rxchariscomma(1),
1385  GT1_RXCHARISK_OUT => rxcharisk(1),
1386  -------------- Receive Ports -RX Initialization and Reset Ports ------------
1387  GT1_RXRESETDONE_OUT => rxresetdone (1),
1388  --------------------- TX Initialization and Reset Ports --------------------
1389  GT1_GTTXRESET_IN => qpll_lock_n (0),
1390  GT1_TXUSERRDY_IN => '0',
1391  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
1392  GT1_TXUSRCLK_IN => UsrClk,
1393  GT1_TXUSRCLK2_IN => UsrClk,
1394  --------------- Transmit Ports - TX Configurable Driver Ports --------------
1395  GT1_TXDIFFCTRL_IN => txdiffctrl(1),
1396  ------------------ Transmit Ports - TX Data Path interface -----------------
1397  GT1_TXDATA_IN => TXDATA(1),
1398  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
1399  GT1_GTXTXN_OUT => TXN(1),
1400  GT1_GTXTXP_OUT => TXP(1),
1401  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
1402  GT1_TXOUTCLK_OUT => txoutclk(1),
1403  GT1_TXOUTCLKFABRIC_OUT => open,
1404  GT1_TXOUTCLKPCS_OUT => open,
1405  --------------------- Transmit Ports - TX Gearbox Ports --------------------
1406  GT1_TXCHARISK_IN => txcharisk(1),
1407  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
1408  GT1_TXRESETDONE_OUT => txresetdone (1),
1409  ------------------ Transmit Ports - pattern Generator Ports ----------------
1410  GT1_TXPRBSSEL_IN => txprbssel(1),
1411 
1412  --GT2 (X0Y2)
1413  --____________________________CHANNEL PORTS________________________________
1414  ---------------------------- Channel - DRP Ports --------------------------
1415  GT2_DRPADDR_IN => (others => '0'),
1416  GT2_DRPCLK_IN => DRPclk,
1417  GT2_DRPDI_IN => (others => '0'),
1418  GT2_DRPDO_OUT => open,
1419  GT2_DRPEN_IN => '0',
1420  GT2_DRPRDY_OUT => open,
1421  GT2_DRPWE_IN => '0',
1422  --------------------------- Digital Monitor Ports --------------------------
1423  GT2_DMONITOROUT_OUT => open,
1424  ------------------------------- Loopback Ports -----------------------------
1425  GT2_LOOPBACK_IN => loopback(2),
1426  ------------------------------ Power-Down Ports ----------------------------
1427  GT2_RXPD_IN => AMC_pd(2),
1428  GT2_TXPD_IN => AMC_pd(2),
1429  --------------------- RX Initialization and Reset Ports --------------------
1430  GT2_EYESCANRESET_IN => '0',
1431  GT2_RXUSERRDY_IN => '0',
1432  -------------------------- RX Margin Analysis Ports ------------------------
1433  GT2_EYESCANDATAERROR_OUT => open,
1434  GT2_EYESCANTRIGGER_IN => '0',
1435  ------------------- Receive Ports - Clock Correction Ports -----------------
1436  GT2_RXCLKCORCNT_OUT => open,
1437  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
1438  GT2_RXUSRCLK_IN => UsrClk,
1439  GT2_RXUSRCLK2_IN => UsrClk,
1440  ------------------ Receive Ports - FPGA RX interface Ports -----------------
1441  GT2_RXDATA_OUT => RXDATA(2),
1442  ------------------- Receive Ports - Pattern Checker Ports ------------------
1443  GT2_RXPRBSERR_OUT => rxprbserr(2),
1444  GT2_RXPRBSSEL_IN => rxprbssel(2),
1445  ------------------- Receive Ports - Pattern Checker ports ------------------
1446  GT2_RXPRBSCNTRESET_IN => '0',
1447  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
1448  GT2_RXDISPERR_OUT => open,
1449  GT2_RXNOTINTABLE_OUT => RXNOTINTABLE (2),
1450  --------------------------- Receive Ports - RX AFE -------------------------
1451  GT2_GTXRXP_IN => RXP(2),
1452  ------------------------ Receive Ports - RX AFE Ports ----------------------
1453  GT2_GTXRXN_IN => RXN(2),
1454  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
1455  GT2_RXMCOMMAALIGNEN_IN => rxcommaalignen(2),
1456  GT2_RXPCOMMAALIGNEN_IN => rxcommaalignen(2),
1457  --------------------- Receive Ports - RX Equalizer Ports -------------------
1458  GT2_RXDFELPMRESET_IN => '0',
1459  GT2_RXMONITOROUT_OUT => open,
1460  GT2_RXMONITORSEL_IN => "00",
1461  ------------- Receive Ports - RX Initialization and Reset Ports ------------
1462  GT2_GTRXRESET_IN => qpll_lock_n (0),
1463  GT2_RXPMARESET_IN => '0',
1464  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
1465  GT2_RXCHARISCOMMA_OUT => rxchariscomma(2),
1466  GT2_RXCHARISK_OUT => rxcharisk(2),
1467  -------------- Receive Ports -RX Initialization and Reset Ports ------------
1468  GT2_RXRESETDONE_OUT => rxresetdone (2),
1469  --------------------- TX Initialization and Reset Ports --------------------
1470  GT2_GTTXRESET_IN => qpll_lock_n (2),
1471  GT2_TXUSERRDY_IN => '0',
1472  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
1473  GT2_TXUSRCLK_IN => UsrClk,
1474  GT2_TXUSRCLK2_IN => UsrClk,
1475  --------------- Transmit Ports - TX Configurable Driver Ports --------------
1476  GT2_TXDIFFCTRL_IN => txdiffctrl(2),
1477  ------------------ Transmit Ports - TX Data Path interface -----------------
1478  GT2_TXDATA_IN => TXDATA(2),
1479  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
1480  GT2_GTXTXN_OUT => TXN(2),
1481  GT2_GTXTXP_OUT => TXP(2),
1482  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
1483  GT2_TXOUTCLK_OUT => txoutclk(2),
1484  GT2_TXOUTCLKFABRIC_OUT => open,
1485  GT2_TXOUTCLKPCS_OUT => open,
1486  --------------------- Transmit Ports - TX Gearbox Ports --------------------
1487  GT2_TXCHARISK_IN => txcharisk(2),
1488  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
1489  GT2_TXRESETDONE_OUT => txresetdone (2),
1490  ------------------ Transmit Ports - pattern Generator Ports ----------------
1491  GT2_TXPRBSSEL_IN => txprbssel(2),
1492 
1493  --GT3 (X0Y3)
1494  --____________________________CHANNEL PORTS________________________________
1495  ---------------------------- Channel - DRP Ports --------------------------
1496  GT3_DRPADDR_IN => (others => '0'),
1497  GT3_DRPCLK_IN => DRPclk,
1498  GT3_DRPDI_IN => (others => '0'),
1499  GT3_DRPDO_OUT => open,
1500  GT3_DRPEN_IN => '0',
1501  GT3_DRPRDY_OUT => open,
1502  GT3_DRPWE_IN => '0',
1503  --------------------------- Digital Monitor Ports --------------------------
1504  GT3_DMONITOROUT_OUT => open,
1505  ------------------------------- Loopback Ports -----------------------------
1506  GT3_LOOPBACK_IN => loopback(3),
1507  ------------------------------ Power-Down Ports ----------------------------
1508  GT3_RXPD_IN => AMC_pd(3),
1509  GT3_TXPD_IN => AMC_pd(3),
1510  --------------------- RX Initialization and Reset Ports --------------------
1511  GT3_EYESCANRESET_IN => '0',
1512  GT3_RXUSERRDY_IN => '0',
1513  -------------------------- RX Margin Analysis Ports ------------------------
1514  GT3_EYESCANDATAERROR_OUT => open,
1515  GT3_EYESCANTRIGGER_IN => '0',
1516  ------------------- Receive Ports - Clock Correction Ports -----------------
1517  GT3_RXCLKCORCNT_OUT => open,
1518  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
1519  GT3_RXUSRCLK_IN => UsrClk,
1520  GT3_RXUSRCLK2_IN => UsrClk,
1521  ------------------ Receive Ports - FPGA RX interface Ports -----------------
1522  GT3_RXDATA_OUT => RXDATA(3),
1523  ------------------- Receive Ports - Pattern Checker Ports ------------------
1524  GT3_RXPRBSERR_OUT => rxprbserr(3),
1525  GT3_RXPRBSSEL_IN => rxprbssel(3),
1526  ------------------- Receive Ports - Pattern Checker ports ------------------
1527  GT3_RXPRBSCNTRESET_IN => '0',
1528  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
1529  GT3_RXDISPERR_OUT => open,
1530  GT3_RXNOTINTABLE_OUT => RXNOTINTABLE (3),
1531  --------------------------- Receive Ports - RX AFE -------------------------
1532  GT3_GTXRXP_IN => RXP(3),
1533  ------------------------ Receive Ports - RX AFE Ports ----------------------
1534  GT3_GTXRXN_IN => RXN(3),
1535  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
1536  GT3_RXMCOMMAALIGNEN_IN => rxcommaalignen(3),
1537  GT3_RXPCOMMAALIGNEN_IN => rxcommaalignen(3),
1538  --------------------- Receive Ports - RX Equalizer Ports -------------------
1539  GT3_RXDFELPMRESET_IN => '0',
1540  GT3_RXMONITOROUT_OUT => open,
1541  GT3_RXMONITORSEL_IN => "00",
1542  ------------- Receive Ports - RX Initialization and Reset Ports ------------
1543  GT3_GTRXRESET_IN => qpll_lock_n (0),
1544  GT3_RXPMARESET_IN => '0',
1545  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
1546  GT3_RXCHARISCOMMA_OUT => rxchariscomma(3),
1547  GT3_RXCHARISK_OUT => rxcharisk(3),
1548  -------------- Receive Ports -RX Initialization and Reset Ports ------------
1549  GT3_RXRESETDONE_OUT => rxresetdone (3),
1550  --------------------- TX Initialization and Reset Ports --------------------
1551  GT3_GTTXRESET_IN => qpll_lock_n (0),
1552  GT3_TXUSERRDY_IN => '0',
1553  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
1554  GT3_TXUSRCLK_IN => UsrClk,
1555  GT3_TXUSRCLK2_IN => UsrClk,
1556  --------------- Transmit Ports - TX Configurable Driver Ports --------------
1557  GT3_TXDIFFCTRL_IN => txdiffctrl(3),
1558  ------------------ Transmit Ports - TX Data Path interface -----------------
1559  GT3_TXDATA_IN => TXDATA(3),
1560  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
1561  GT3_GTXTXN_OUT => TXN(3),
1562  GT3_GTXTXP_OUT => TXP(3),
1563  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
1564  GT3_TXOUTCLK_OUT => txoutclk(3),
1565  GT3_TXOUTCLKFABRIC_OUT => open,
1566  GT3_TXOUTCLKPCS_OUT => open,
1567  --------------------- Transmit Ports - TX Gearbox Ports --------------------
1568  GT3_TXCHARISK_IN => txcharisk(3),
1569  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
1570  GT3_TXRESETDONE_OUT => txresetdone (3),
1571  ------------------ Transmit Ports - pattern Generator Ports ----------------
1572  GT3_TXPRBSSEL_IN => txprbssel(3),
1573 
1574  --GT4 (X0Y4)
1575  --____________________________CHANNEL PORTS________________________________
1576  ---------------------------- Channel - DRP Ports --------------------------
1577  GT4_DRPADDR_IN => (others => '0'),
1578  GT4_DRPCLK_IN => DRPclk,
1579  GT4_DRPDI_IN => (others => '0'),
1580  GT4_DRPDO_OUT => open,
1581  GT4_DRPEN_IN => '0',
1582  GT4_DRPRDY_OUT => open,
1583  GT4_DRPWE_IN => '0',
1584  --------------------------- Digital Monitor Ports --------------------------
1585  GT4_DMONITOROUT_OUT => open,
1586  ------------------------------- Loopback Ports -----------------------------
1587  GT4_LOOPBACK_IN => loopback(4),
1588  ------------------------------ Power-Down Ports ----------------------------
1589  GT4_RXPD_IN => AMC_pd(4),
1590  GT4_TXPD_IN => AMC_pd(4),
1591  --------------------- RX Initialization and Reset Ports --------------------
1592  GT4_EYESCANRESET_IN => '0',
1593  GT4_RXUSERRDY_IN => '0',
1594  -------------------------- RX Margin Analysis Ports ------------------------
1595  GT4_EYESCANDATAERROR_OUT => open,
1596  GT4_EYESCANTRIGGER_IN => '0',
1597  ------------------- Receive Ports - Clock Correction Ports -----------------
1598  GT4_RXCLKCORCNT_OUT => open,
1599  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
1600  GT4_RXUSRCLK_IN => UsrClk,
1601  GT4_RXUSRCLK2_IN => UsrClk,
1602  ------------------ Receive Ports - FPGA RX interface Ports -----------------
1603  GT4_RXDATA_OUT => RXDATA(4),
1604  ------------------- Receive Ports - Pattern Checker Ports ------------------
1605  GT4_RXPRBSERR_OUT => rxprbserr(4),
1606  GT4_RXPRBSSEL_IN => rxprbssel(4),
1607  ------------------- Receive Ports - Pattern Checker ports ------------------
1608  GT4_RXPRBSCNTRESET_IN => '0',
1609  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
1610  GT4_RXDISPERR_OUT => open,
1611  GT4_RXNOTINTABLE_OUT => RXNOTINTABLE (4),
1612  --------------------------- Receive Ports - RX AFE -------------------------
1613  GT4_GTXRXP_IN => RXP(4),
1614  ------------------------ Receive Ports - RX AFE Ports ----------------------
1615  GT4_GTXRXN_IN => RXN(4),
1616  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
1617  GT4_RXMCOMMAALIGNEN_IN => rxcommaalignen(4),
1618  GT4_RXPCOMMAALIGNEN_IN => rxcommaalignen(4),
1619  --------------------- Receive Ports - RX Equalizer Ports -------------------
1620  GT4_RXDFELPMRESET_IN => '0',
1621  GT4_RXMONITOROUT_OUT => open,
1622  GT4_RXMONITORSEL_IN => "00",
1623  ------------- Receive Ports - RX Initialization and Reset Ports ------------
1624  GT4_GTRXRESET_IN => qpll_lock_n (1),
1625  GT4_RXPMARESET_IN => '0',
1626  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
1627  GT4_RXCHARISCOMMA_OUT => rxchariscomma(4),
1628  GT4_RXCHARISK_OUT => rxcharisk(4),
1629  -------------- Receive Ports -RX Initialization and Reset Ports ------------
1630  GT4_RXRESETDONE_OUT => rxresetdone (4),
1631  --------------------- TX Initialization and Reset Ports --------------------
1632  GT4_GTTXRESET_IN => qpll_lock_n (1),
1633  GT4_TXUSERRDY_IN => '0',
1634  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
1635  GT4_TXUSRCLK_IN => UsrClk,
1636  GT4_TXUSRCLK2_IN => UsrClk,
1637  --------------- Transmit Ports - TX Configurable Driver Ports --------------
1638  GT4_TXDIFFCTRL_IN => txdiffctrl(4),
1639  ------------------ Transmit Ports - TX Data Path interface -----------------
1640  GT4_TXDATA_IN => TXDATA(4),
1641  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
1642  GT4_GTXTXN_OUT => TXN(4),
1643  GT4_GTXTXP_OUT => TXP(4),
1644  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
1645  GT4_TXOUTCLK_OUT => txoutclk(4),
1646  GT4_TXOUTCLKFABRIC_OUT => open,
1647  GT4_TXOUTCLKPCS_OUT => open,
1648  --------------------- Transmit Ports - TX Gearbox Ports --------------------
1649  GT4_TXCHARISK_IN => txcharisk(4),
1650  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
1651  GT4_TXRESETDONE_OUT => txresetdone (4),
1652  ------------------ Transmit Ports - pattern Generator Ports ----------------
1653  GT4_TXPRBSSEL_IN => txprbssel(4),
1654 
1655  --GT5 (X0Y5)
1656  --____________________________CHANNEL PORTS________________________________
1657  ---------------------------- Channel - DRP Ports --------------------------
1658  GT5_DRPADDR_IN => (others => '0'),
1659  GT5_DRPCLK_IN => DRPclk,
1660  GT5_DRPDI_IN => (others => '0'),
1661  GT5_DRPDO_OUT => open,
1662  GT5_DRPEN_IN => '0',
1663  GT5_DRPRDY_OUT => open,
1664  GT5_DRPWE_IN => '0',
1665  --------------------------- Digital Monitor Ports --------------------------
1666  GT5_DMONITOROUT_OUT => open,
1667  ------------------------------- Loopback Ports -----------------------------
1668  GT5_LOOPBACK_IN => loopback(5),
1669  ------------------------------ Power-Down Ports ----------------------------
1670  GT5_RXPD_IN => AMC_pd(5),
1671  GT5_TXPD_IN => AMC_pd(5),
1672  --------------------- RX Initialization and Reset Ports --------------------
1673  GT5_EYESCANRESET_IN => '0',
1674  GT5_RXUSERRDY_IN => '0',
1675  -------------------------- RX Margin Analysis Ports ------------------------
1676  GT5_EYESCANDATAERROR_OUT => open,
1677  GT5_EYESCANTRIGGER_IN => '0',
1678  ------------------- Receive Ports - Clock Correction Ports -----------------
1679  GT5_RXCLKCORCNT_OUT => open,
1680  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
1681  GT5_RXUSRCLK_IN => UsrClk,
1682  GT5_RXUSRCLK2_IN => UsrClk,
1683  ------------------ Receive Ports - FPGA RX interface Ports -----------------
1684  GT5_RXDATA_OUT => RXDATA(5),
1685  ------------------- Receive Ports - Pattern Checker Ports ------------------
1686  GT5_RXPRBSERR_OUT => rxprbserr(5),
1687  GT5_RXPRBSSEL_IN => rxprbssel(5),
1688  ------------------- Receive Ports - Pattern Checker ports ------------------
1689  GT5_RXPRBSCNTRESET_IN => '0',
1690  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
1691  GT5_RXDISPERR_OUT => open,
1692  GT5_RXNOTINTABLE_OUT => RXNOTINTABLE (5),
1693  --------------------------- Receive Ports - RX AFE -------------------------
1694  GT5_GTXRXP_IN => RXP(5),
1695  ------------------------ Receive Ports - RX AFE Ports ----------------------
1696  GT5_GTXRXN_IN => RXN(5),
1697  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
1698  GT5_RXMCOMMAALIGNEN_IN => rxcommaalignen(5),
1699  GT5_RXPCOMMAALIGNEN_IN => rxcommaalignen(5),
1700  --------------------- Receive Ports - RX Equalizer Ports -------------------
1701  GT5_RXDFELPMRESET_IN => '0',
1702  GT5_RXMONITOROUT_OUT => open,
1703  GT5_RXMONITORSEL_IN => "00",
1704  ------------- Receive Ports - RX Initialization and Reset Ports ------------
1705  GT5_GTRXRESET_IN => qpll_lock_n (1),
1706  GT5_RXPMARESET_IN => '0',
1707  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
1708  GT5_RXCHARISCOMMA_OUT => rxchariscomma(5),
1709  GT5_RXCHARISK_OUT => rxcharisk(5),
1710  -------------- Receive Ports -RX Initialization and Reset Ports ------------
1711  GT5_RXRESETDONE_OUT => rxresetdone (5),
1712  --------------------- TX Initialization and Reset Ports --------------------
1713  GT5_GTTXRESET_IN => qpll_lock_n (1),
1714  GT5_TXUSERRDY_IN => '0',
1715  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
1716  GT5_TXUSRCLK_IN => UsrClk,
1717  GT5_TXUSRCLK2_IN => UsrClk,
1718  --------------- Transmit Ports - TX Configurable Driver Ports --------------
1719  GT5_TXDIFFCTRL_IN => txdiffctrl(5),
1720  ------------------ Transmit Ports - TX Data Path interface -----------------
1721  GT5_TXDATA_IN => TXDATA(5),
1722  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
1723  GT5_GTXTXN_OUT => TXN(5),
1724  GT5_GTXTXP_OUT => TXP(5),
1725  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
1726  GT5_TXOUTCLK_OUT => txoutclk(5),
1727  GT5_TXOUTCLKFABRIC_OUT => open,
1728  GT5_TXOUTCLKPCS_OUT => open,
1729  --------------------- Transmit Ports - TX Gearbox Ports --------------------
1730  GT5_TXCHARISK_IN => txcharisk(5),
1731  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
1732  GT5_TXRESETDONE_OUT => txresetdone (5),
1733  ------------------ Transmit Ports - pattern Generator Ports ----------------
1734  GT5_TXPRBSSEL_IN => txprbssel(5),
1735 
1736  --GT6 (X0Y6)
1737  --____________________________CHANNEL PORTS________________________________
1738  ---------------------------- Channel - DRP Ports --------------------------
1739  GT6_DRPADDR_IN => (others => '0'),
1740  GT6_DRPCLK_IN => DRPclk,
1741  GT6_DRPDI_IN => (others => '0'),
1742  GT6_DRPDO_OUT => open,
1743  GT6_DRPEN_IN => '0',
1744  GT6_DRPRDY_OUT => open,
1745  GT6_DRPWE_IN => '0',
1746  --------------------------- Digital Monitor Ports --------------------------
1747  GT6_DMONITOROUT_OUT => open,
1748  ------------------------------- Loopback Ports -----------------------------
1749  GT6_LOOPBACK_IN => loopback(6),
1750  ------------------------------ Power-Down Ports ----------------------------
1751  GT6_RXPD_IN => AMC_pd(6),
1752  GT6_TXPD_IN => AMC_pd(6),
1753  --------------------- RX Initialization and Reset Ports --------------------
1754  GT6_EYESCANRESET_IN => '0',
1755  GT6_RXUSERRDY_IN => '0',
1756  -------------------------- RX Margin Analysis Ports ------------------------
1757  GT6_EYESCANDATAERROR_OUT => open,
1758  GT6_EYESCANTRIGGER_IN => '0',
1759  ------------------- Receive Ports - Clock Correction Ports -----------------
1760  GT6_RXCLKCORCNT_OUT => open,
1761  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
1762  GT6_RXUSRCLK_IN => UsrClk,
1763  GT6_RXUSRCLK2_IN => UsrClk,
1764  ------------------ Receive Ports - FPGA RX interface Ports -----------------
1765  GT6_RXDATA_OUT => RXDATA(6),
1766  ------------------- Receive Ports - Pattern Checker Ports ------------------
1767  GT6_RXPRBSERR_OUT => rxprbserr(6),
1768  GT6_RXPRBSSEL_IN => rxprbssel(6),
1769  ------------------- Receive Ports - Pattern Checker ports ------------------
1770  GT6_RXPRBSCNTRESET_IN => '0',
1771  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
1772  GT6_RXDISPERR_OUT => open,
1773  GT6_RXNOTINTABLE_OUT => RXNOTINTABLE (6),
1774  --------------------------- Receive Ports - RX AFE -------------------------
1775  GT6_GTXRXP_IN => RXP(6),
1776  ------------------------ Receive Ports - RX AFE Ports ----------------------
1777  GT6_GTXRXN_IN => RXN(6),
1778  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
1779  GT6_RXMCOMMAALIGNEN_IN => rxcommaalignen(6),
1780  GT6_RXPCOMMAALIGNEN_IN => rxcommaalignen(6),
1781  --------------------- Receive Ports - RX Equalizer Ports -------------------
1782  GT6_RXDFELPMRESET_IN => '0',
1783  GT6_RXMONITOROUT_OUT => open,
1784  GT6_RXMONITORSEL_IN => "00",
1785  ------------- Receive Ports - RX Initialization and Reset Ports ------------
1786  GT6_GTRXRESET_IN => qpll_lock_n (1),
1787  GT6_RXPMARESET_IN => '0',
1788  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
1789  GT6_RXCHARISCOMMA_OUT => rxchariscomma(6),
1790  GT6_RXCHARISK_OUT => rxcharisk(6),
1791  -------------- Receive Ports -RX Initialization and Reset Ports ------------
1792  GT6_RXRESETDONE_OUT => rxresetdone (6),
1793  --------------------- TX Initialization and Reset Ports --------------------
1794  GT6_GTTXRESET_IN => qpll_lock_n (1),
1795  GT6_TXUSERRDY_IN => '0',
1796  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
1797  GT6_TXUSRCLK_IN => UsrClk,
1798  GT6_TXUSRCLK2_IN => UsrClk,
1799  --------------- Transmit Ports - TX Configurable Driver Ports --------------
1800  GT6_TXDIFFCTRL_IN => txdiffctrl(6),
1801  ------------------ Transmit Ports - TX Data Path interface -----------------
1802  GT6_TXDATA_IN => TXDATA(6),
1803  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
1804  GT6_GTXTXN_OUT => TXN(6),
1805  GT6_GTXTXP_OUT => TXP(6),
1806  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
1807  GT6_TXOUTCLK_OUT => txoutclk(6),
1808  GT6_TXOUTCLKFABRIC_OUT => open,
1809  GT6_TXOUTCLKPCS_OUT => open,
1810  --------------------- Transmit Ports - TX Gearbox Ports --------------------
1811  GT6_TXCHARISK_IN => txcharisk(6),
1812  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
1813  GT6_TXRESETDONE_OUT => txresetdone (6),
1814  ------------------ Transmit Ports - pattern Generator Ports ----------------
1815  GT6_TXPRBSSEL_IN => txprbssel(6),
1816 
1817  --GT7 (X0Y7)
1818  --____________________________CHANNEL PORTS________________________________
1819  ---------------------------- Channel - DRP Ports --------------------------
1820  GT7_DRPADDR_IN => (others => '0'),
1821  GT7_DRPCLK_IN => DRPclk,
1822  GT7_DRPDI_IN => (others => '0'),
1823  GT7_DRPDO_OUT => open,
1824  GT7_DRPEN_IN => '0',
1825  GT7_DRPRDY_OUT => open,
1826  GT7_DRPWE_IN => '0',
1827  --------------------------- Digital Monitor Ports --------------------------
1828  GT7_DMONITOROUT_OUT => open,
1829  ------------------------------- Loopback Ports -----------------------------
1830  GT7_LOOPBACK_IN => loopback(7),
1831  ------------------------------ Power-Down Ports ----------------------------
1832  GT7_RXPD_IN => AMC_pd(7),
1833  GT7_TXPD_IN => AMC_pd(7),
1834  --------------------- RX Initialization and Reset Ports --------------------
1835  GT7_EYESCANRESET_IN => '0',
1836  GT7_RXUSERRDY_IN => '0',
1837  -------------------------- RX Margin Analysis Ports ------------------------
1838  GT7_EYESCANDATAERROR_OUT => open,
1839  GT7_EYESCANTRIGGER_IN => '0',
1840  ------------------- Receive Ports - Clock Correction Ports -----------------
1841  GT7_RXCLKCORCNT_OUT => open,
1842  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
1843  GT7_RXUSRCLK_IN => UsrClk,
1844  GT7_RXUSRCLK2_IN => UsrClk,
1845  ------------------ Receive Ports - FPGA RX interface Ports -----------------
1846  GT7_RXDATA_OUT => RXDATA(7),
1847  ------------------- Receive Ports - Pattern Checker Ports ------------------
1848  GT7_RXPRBSERR_OUT => rxprbserr(7),
1849  GT7_RXPRBSSEL_IN => rxprbssel(7),
1850  ------------------- Receive Ports - Pattern Checker ports ------------------
1851  GT7_RXPRBSCNTRESET_IN => '0',
1852  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
1853  GT7_RXDISPERR_OUT => open,
1854  GT7_RXNOTINTABLE_OUT => RXNOTINTABLE (7),
1855  --------------------------- Receive Ports - RX AFE -------------------------
1856  GT7_GTXRXP_IN => RXP(7),
1857  ------------------------ Receive Ports - RX AFE Ports ----------------------
1858  GT7_GTXRXN_IN => RXN(7),
1859  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
1860  GT7_RXMCOMMAALIGNEN_IN => rxcommaalignen(7),
1861  GT7_RXPCOMMAALIGNEN_IN => rxcommaalignen(7),
1862  --------------------- Receive Ports - RX Equalizer Ports -------------------
1863  GT7_RXDFELPMRESET_IN => '0',
1864  GT7_RXMONITOROUT_OUT => open,
1865  GT7_RXMONITORSEL_IN => "00",
1866  ------------- Receive Ports - RX Initialization and Reset Ports ------------
1867  GT7_GTRXRESET_IN => qpll_lock_n (1),
1868  GT7_RXPMARESET_IN => '0',
1869  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
1870  GT7_RXCHARISCOMMA_OUT => rxchariscomma(7),
1871  GT7_RXCHARISK_OUT => rxcharisk(7),
1872  -------------- Receive Ports -RX Initialization and Reset Ports ------------
1873  GT7_RXRESETDONE_OUT => rxresetdone (7),
1874  --------------------- TX Initialization and Reset Ports --------------------
1875  GT7_GTTXRESET_IN => qpll_lock_n (1),
1876  GT7_TXUSERRDY_IN => '0',
1877  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
1878  GT7_TXUSRCLK_IN => UsrClk,
1879  GT7_TXUSRCLK2_IN => UsrClk,
1880  --------------- Transmit Ports - TX Configurable Driver Ports --------------
1881  GT7_TXDIFFCTRL_IN => txdiffctrl(7),
1882  ------------------ Transmit Ports - TX Data Path interface -----------------
1883  GT7_TXDATA_IN => TXDATA(7),
1884  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
1885  GT7_GTXTXN_OUT => TXN(7),
1886  GT7_GTXTXP_OUT => TXP(7),
1887  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
1888  GT7_TXOUTCLK_OUT => txoutclk(7),
1889  GT7_TXOUTCLKFABRIC_OUT => open,
1890  GT7_TXOUTCLKPCS_OUT => open,
1891  --------------------- Transmit Ports - TX Gearbox Ports --------------------
1892  GT7_TXCHARISK_IN => txcharisk(7),
1893  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
1894  GT7_TXRESETDONE_OUT => txresetdone (7),
1895  ------------------ Transmit Ports - pattern Generator Ports ----------------
1896  GT7_TXPRBSSEL_IN => txprbssel(7),
1897 
1898  --GT8 (X0Y8)
1899  --____________________________CHANNEL PORTS________________________________
1900  ---------------------------- Channel - DRP Ports --------------------------
1901  GT8_DRPADDR_IN => (others => '0'),
1902  GT8_DRPCLK_IN => DRPclk,
1903  GT8_DRPDI_IN => (others => '0'),
1904  GT8_DRPDO_OUT => open,
1905  GT8_DRPEN_IN => '0',
1906  GT8_DRPRDY_OUT => open,
1907  GT8_DRPWE_IN => '0',
1908  --------------------------- Digital Monitor Ports --------------------------
1909  GT8_DMONITOROUT_OUT => open,
1910  ------------------------------- Loopback Ports -----------------------------
1911  GT8_LOOPBACK_IN => loopback(8),
1912  ------------------------------ Power-Down Ports ----------------------------
1913  GT8_RXPD_IN => AMC_pd(8),
1914  GT8_TXPD_IN => AMC_pd(8),
1915  --------------------- RX Initialization and Reset Ports --------------------
1916  GT8_EYESCANRESET_IN => '0',
1917  GT8_RXUSERRDY_IN => '0',
1918  -------------------------- RX Margin Analysis Ports ------------------------
1919  GT8_EYESCANDATAERROR_OUT => open,
1920  GT8_EYESCANTRIGGER_IN => '0',
1921  ------------------- Receive Ports - Clock Correction Ports -----------------
1922  GT8_RXCLKCORCNT_OUT => open,
1923  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
1924  GT8_RXUSRCLK_IN => UsrClk,
1925  GT8_RXUSRCLK2_IN => UsrClk,
1926  ------------------ Receive Ports - FPGA RX interface Ports -----------------
1927  GT8_RXDATA_OUT => RXDATA(8),
1928  ------------------- Receive Ports - Pattern Checker Ports ------------------
1929  GT8_RXPRBSERR_OUT => rxprbserr(8),
1930  GT8_RXPRBSSEL_IN => rxprbssel(8),
1931  ------------------- Receive Ports - Pattern Checker ports ------------------
1932  GT8_RXPRBSCNTRESET_IN => '0',
1933  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
1934  GT8_RXDISPERR_OUT => open,
1935  GT8_RXNOTINTABLE_OUT => RXNOTINTABLE (8),
1936  --------------------------- Receive Ports - RX AFE -------------------------
1937  GT8_GTXRXP_IN => RXP(8),
1938  ------------------------ Receive Ports - RX AFE Ports ----------------------
1939  GT8_GTXRXN_IN => RXN(8),
1940  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
1941  GT8_RXMCOMMAALIGNEN_IN => rxcommaalignen(8),
1942  GT8_RXPCOMMAALIGNEN_IN => rxcommaalignen(8),
1943  --------------------- Receive Ports - RX Equalizer Ports -------------------
1944  GT8_RXDFELPMRESET_IN => '0',
1945  GT8_RXMONITOROUT_OUT => open,
1946  GT8_RXMONITORSEL_IN => "00",
1947  ------------- Receive Ports - RX Initialization and Reset Ports ------------
1948  GT8_GTRXRESET_IN => qpll_lock_n (2),
1949  GT8_RXPMARESET_IN => '0',
1950  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
1951  GT8_RXCHARISCOMMA_OUT => rxchariscomma(8),
1952  GT8_RXCHARISK_OUT => rxcharisk(8),
1953  -------------- Receive Ports -RX Initialization and Reset Ports ------------
1954  GT8_RXRESETDONE_OUT => rxresetdone (8),
1955  --------------------- TX Initialization and Reset Ports --------------------
1956  GT8_GTTXRESET_IN => qpll_lock_n (2),
1957  GT8_TXUSERRDY_IN => '0',
1958  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
1959  GT8_TXUSRCLK_IN => UsrClk,
1960  GT8_TXUSRCLK2_IN => UsrClk,
1961  --------------- Transmit Ports - TX Configurable Driver Ports --------------
1962  GT8_TXDIFFCTRL_IN => txdiffctrl(8),
1963  ------------------ Transmit Ports - TX Data Path interface -----------------
1964  GT8_TXDATA_IN => TXDATA(8),
1965  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
1966  GT8_GTXTXN_OUT => TXN(8),
1967  GT8_GTXTXP_OUT => TXP(8),
1968  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
1969  GT8_TXOUTCLK_OUT => txoutclk(8),
1970  GT8_TXOUTCLKFABRIC_OUT => open,
1971  GT8_TXOUTCLKPCS_OUT => open,
1972  --------------------- Transmit Ports - TX Gearbox Ports --------------------
1973  GT8_TXCHARISK_IN => txcharisk(8),
1974  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
1975  GT8_TXRESETDONE_OUT => txresetdone (8),
1976  ------------------ Transmit Ports - pattern Generator Ports ----------------
1977  GT8_TXPRBSSEL_IN => txprbssel(8),
1978 
1979  --GT9 (X0Y9)
1980  --____________________________CHANNEL PORTS________________________________
1981  ---------------------------- Channel - DRP Ports --------------------------
1982  GT9_DRPADDR_IN => (others => '0'),
1983  GT9_DRPCLK_IN => DRPclk,
1984  GT9_DRPDI_IN => (others => '0'),
1985  GT9_DRPDO_OUT => open,
1986  GT9_DRPEN_IN => '0',
1987  GT9_DRPRDY_OUT => open,
1988  GT9_DRPWE_IN => '0',
1989  --------------------------- Digital Monitor Ports --------------------------
1990  GT9_DMONITOROUT_OUT => open,
1991  ------------------------------- Loopback Ports -----------------------------
1992  GT9_LOOPBACK_IN => loopback(9),
1993  ------------------------------ Power-Down Ports ----------------------------
1994  GT9_RXPD_IN => AMC_pd(9),
1995  GT9_TXPD_IN => AMC_pd(9),
1996  --------------------- RX Initialization and Reset Ports --------------------
1997  GT9_EYESCANRESET_IN => '0',
1998  GT9_RXUSERRDY_IN => '0',
1999  -------------------------- RX Margin Analysis Ports ------------------------
2000  GT9_EYESCANDATAERROR_OUT => open,
2001  GT9_EYESCANTRIGGER_IN => '0',
2002  ------------------- Receive Ports - Clock Correction Ports -----------------
2003  GT9_RXCLKCORCNT_OUT => open,
2004  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
2005  GT9_RXUSRCLK_IN => UsrClk,
2006  GT9_RXUSRCLK2_IN => UsrClk,
2007  ------------------ Receive Ports - FPGA RX interface Ports -----------------
2008  GT9_RXDATA_OUT => RXDATA(9),
2009  ------------------- Receive Ports - Pattern Checker Ports ------------------
2010  GT9_RXPRBSERR_OUT => rxprbserr(9),
2011  GT9_RXPRBSSEL_IN => rxprbssel(9),
2012  ------------------- Receive Ports - Pattern Checker ports ------------------
2013  GT9_RXPRBSCNTRESET_IN => '0',
2014  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
2015  GT9_RXDISPERR_OUT => open,
2016  GT9_RXNOTINTABLE_OUT => RXNOTINTABLE (9),
2017  --------------------------- Receive Ports - RX AFE -------------------------
2018  GT9_GTXRXP_IN => RXP(9),
2019  ------------------------ Receive Ports - RX AFE Ports ----------------------
2020  GT9_GTXRXN_IN => RXN(9),
2021  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
2022  GT9_RXMCOMMAALIGNEN_IN => rxcommaalignen(9),
2023  GT9_RXPCOMMAALIGNEN_IN => rxcommaalignen(9),
2024  --------------------- Receive Ports - RX Equalizer Ports -------------------
2025  GT9_RXDFELPMRESET_IN => '0',
2026  GT9_RXMONITOROUT_OUT => open,
2027  GT9_RXMONITORSEL_IN => "00",
2028  ------------- Receive Ports - RX Initialization and Reset Ports ------------
2029  GT9_GTRXRESET_IN => qpll_lock_n (2),
2030  GT9_RXPMARESET_IN => '0',
2031  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
2032  GT9_RXCHARISCOMMA_OUT => rxchariscomma(9),
2033  GT9_RXCHARISK_OUT => rxcharisk(9),
2034  -------------- Receive Ports -RX Initialization and Reset Ports ------------
2035  GT9_RXRESETDONE_OUT => rxresetdone (9),
2036  --------------------- TX Initialization and Reset Ports --------------------
2037  GT9_GTTXRESET_IN => qpll_lock_n (2),
2038  GT9_TXUSERRDY_IN => '0',
2039  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
2040  GT9_TXUSRCLK_IN => UsrClk,
2041  GT9_TXUSRCLK2_IN => UsrClk,
2042  --------------- Transmit Ports - TX Configurable Driver Ports --------------
2043  GT9_TXDIFFCTRL_IN => txdiffctrl(9),
2044  ------------------ Transmit Ports - TX Data Path interface -----------------
2045  GT9_TXDATA_IN => TXDATA(9),
2046  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
2047  GT9_GTXTXN_OUT => TXN(9),
2048  GT9_GTXTXP_OUT => TXP(9),
2049  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
2050  GT9_TXOUTCLK_OUT => txoutclk(9),
2051  GT9_TXOUTCLKFABRIC_OUT => open,
2052  GT9_TXOUTCLKPCS_OUT => open,
2053  --------------------- Transmit Ports - TX Gearbox Ports --------------------
2054  GT9_TXCHARISK_IN => txcharisk(9),
2055  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
2056  GT9_TXRESETDONE_OUT => txresetdone (9),
2057  ------------------ Transmit Ports - pattern Generator Ports ----------------
2058  GT9_TXPRBSSEL_IN => txprbssel(9),
2059 
2060  --GT10 (X0Y10)
2061  --____________________________CHANNEL PORTS________________________________
2062  ---------------------------- Channel - DRP Ports --------------------------
2063  GT10_DRPADDR_IN => (others => '0'),
2064  GT10_DRPCLK_IN => DRPclk,
2065  GT10_DRPDI_IN => (others => '0'),
2066  GT10_DRPDO_OUT => open,
2067  GT10_DRPEN_IN => '0',
2068  GT10_DRPRDY_OUT => open,
2069  GT10_DRPWE_IN => '0',
2070  --------------------------- Digital Monitor Ports --------------------------
2071  GT10_DMONITOROUT_OUT => open,
2072  ------------------------------- Loopback Ports -----------------------------
2073  GT10_LOOPBACK_IN => loopback(10),
2074  ------------------------------ Power-Down Ports ----------------------------
2075  GT10_RXPD_IN => AMC_pd(10),
2076  GT10_TXPD_IN => AMC_pd(10),
2077  --------------------- RX Initialization and Reset Ports --------------------
2078  GT10_EYESCANRESET_IN => '0',
2079  GT10_RXUSERRDY_IN => '0',
2080  -------------------------- RX Margin Analysis Ports ------------------------
2081  GT10_EYESCANDATAERROR_OUT => open,
2082  GT10_EYESCANTRIGGER_IN => '0',
2083  ------------------- Receive Ports - Clock Correction Ports -----------------
2084  GT10_RXCLKCORCNT_OUT => open,
2085  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
2086  GT10_RXUSRCLK_IN => UsrClk,
2087  GT10_RXUSRCLK2_IN => UsrClk,
2088  ------------------ Receive Ports - FPGA RX interface Ports -----------------
2089  GT10_RXDATA_OUT => RXDATA(10),
2090  ------------------- Receive Ports - Pattern Checker Ports ------------------
2091  GT10_RXPRBSERR_OUT => rxprbserr(10),
2092  GT10_RXPRBSSEL_IN => rxprbssel(10),
2093  ------------------- Receive Ports - Pattern Checker ports ------------------
2094  GT10_RXPRBSCNTRESET_IN => '0',
2095  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
2096  GT10_RXDISPERR_OUT => open,
2097  GT10_RXNOTINTABLE_OUT => RXNOTINTABLE (10),
2098  --------------------------- Receive Ports - RX AFE -------------------------
2099  GT10_GTXRXP_IN => RXP(10),
2100  ------------------------ Receive Ports - RX AFE Ports ----------------------
2101  GT10_GTXRXN_IN => RXN(10),
2102  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
2103  GT10_RXMCOMMAALIGNEN_IN => rxcommaalignen(10),
2104  GT10_RXPCOMMAALIGNEN_IN => rxcommaalignen(10),
2105  --------------------- Receive Ports - RX Equalizer Ports -------------------
2106  GT10_RXDFELPMRESET_IN => '0',
2107  GT10_RXMONITOROUT_OUT => open,
2108  GT10_RXMONITORSEL_IN => "00",
2109  ------------- Receive Ports - RX Initialization and Reset Ports ------------
2110  GT10_GTRXRESET_IN => qpll_lock_n (2),
2111  GT10_RXPMARESET_IN => '0',
2112  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
2113  GT10_RXCHARISCOMMA_OUT => rxchariscomma(10),
2114  GT10_RXCHARISK_OUT => rxcharisk(10),
2115  -------------- Receive Ports -RX Initialization and Reset Ports ------------
2116  GT10_RXRESETDONE_OUT => rxresetdone (10),
2117  --------------------- TX Initialization and Reset Ports --------------------
2118  GT10_GTTXRESET_IN => qpll_lock_n (2),
2119  GT10_TXUSERRDY_IN => '0',
2120  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
2121  GT10_TXUSRCLK_IN => UsrClk,
2122  GT10_TXUSRCLK2_IN => UsrClk,
2123  --------------- Transmit Ports - TX Configurable Driver Ports --------------
2124  GT10_TXDIFFCTRL_IN => txdiffctrl(10),
2125  ------------------ Transmit Ports - TX Data Path interface -----------------
2126  GT10_TXDATA_IN => TXDATA(10),
2127  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
2128  GT10_GTXTXN_OUT => TXN(10),
2129  GT10_GTXTXP_OUT => TXP(10),
2130  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
2131  GT10_TXOUTCLK_OUT => txoutclk(10),
2132  GT10_TXOUTCLKFABRIC_OUT => open,
2133  GT10_TXOUTCLKPCS_OUT => open,
2134  --------------------- Transmit Ports - TX Gearbox Ports --------------------
2135  GT10_TXCHARISK_IN => txcharisk(10),
2136  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
2137  GT10_TXRESETDONE_OUT => txresetdone (10),
2138  ------------------ Transmit Ports - pattern Generator Ports ----------------
2139  GT10_TXPRBSSEL_IN => txprbssel(10),
2140 
2141  --GT11 (X0Y11)
2142  --____________________________CHANNEL PORTS________________________________
2143  ---------------------------- Channel - DRP Ports --------------------------
2144  GT11_DRPADDR_IN => (others => '0'),
2145  GT11_DRPCLK_IN => DRPclk,
2146  GT11_DRPDI_IN => (others => '0'),
2147  GT11_DRPDO_OUT => open,
2148  GT11_DRPEN_IN => '0',
2149  GT11_DRPRDY_OUT => open,
2150  GT11_DRPWE_IN => '0',
2151  --------------------------- Digital Monitor Ports --------------------------
2152  GT11_DMONITOROUT_OUT => open,
2153  ------------------------------- Loopback Ports -----------------------------
2154  GT11_LOOPBACK_IN => loopback(11),
2155  ------------------------------ Power-Down Ports ----------------------------
2156  GT11_RXPD_IN => AMC_pd(11),
2157  GT11_TXPD_IN => AMC_pd(11),
2158  --------------------- RX Initialization and Reset Ports --------------------
2159  GT11_EYESCANRESET_IN => '0',
2160  GT11_RXUSERRDY_IN => '0',
2161  -------------------------- RX Margin Analysis Ports ------------------------
2162  GT11_EYESCANDATAERROR_OUT => open,
2163  GT11_EYESCANTRIGGER_IN => '0',
2164  ------------------- Receive Ports - Clock Correction Ports -----------------
2165  GT11_RXCLKCORCNT_OUT => open,
2166  ------------------ Receive Ports - FPGA RX Interface Ports -----------------
2167  GT11_RXUSRCLK_IN => UsrClk,
2168  GT11_RXUSRCLK2_IN => UsrClk,
2169  ------------------ Receive Ports - FPGA RX interface Ports -----------------
2170  GT11_RXDATA_OUT => RXDATA(11),
2171  ------------------- Receive Ports - Pattern Checker Ports ------------------
2172  GT11_RXPRBSERR_OUT => rxprbserr(11),
2173  GT11_RXPRBSSEL_IN => rxprbssel(11),
2174  ------------------- Receive Ports - Pattern Checker ports ------------------
2175  GT11_RXPRBSCNTRESET_IN => '0',
2176  ------------------ Receive Ports - RX 8B/10B Decoder Ports -----------------
2177  GT11_RXDISPERR_OUT => open,
2178  GT11_RXNOTINTABLE_OUT => RXNOTINTABLE (11),
2179  --------------------------- Receive Ports - RX AFE -------------------------
2180  GT11_GTXRXP_IN => RXP(11),
2181  ------------------------ Receive Ports - RX AFE Ports ----------------------
2182  GT11_GTXRXN_IN => RXN(11),
2183  -------------- Receive Ports - RX Byte and Word Alignment Ports ------------
2184  GT11_RXMCOMMAALIGNEN_IN => rxcommaalignen(11),
2185  GT11_RXPCOMMAALIGNEN_IN => rxcommaalignen(11),
2186  --------------------- Receive Ports - RX Equalizer Ports -------------------
2187  GT11_RXDFELPMRESET_IN => '0',
2188  GT11_RXMONITOROUT_OUT => open,
2189  GT11_RXMONITORSEL_IN => "00",
2190  ------------- Receive Ports - RX Initialization and Reset Ports ------------
2191  GT11_GTRXRESET_IN => qpll_lock_n (2),
2192  GT11_RXPMARESET_IN => '0',
2193  ------------------- Receive Ports - RX8B/10B Decoder Ports -----------------
2194  GT11_RXCHARISCOMMA_OUT => rxchariscomma(11),
2195  GT11_RXCHARISK_OUT => rxcharisk(11),
2196  -------------- Receive Ports -RX Initialization and Reset Ports ------------
2197  GT11_RXRESETDONE_OUT => rxresetdone (11),
2198  --------------------- TX Initialization and Reset Ports --------------------
2199  GT11_GTTXRESET_IN => qpll_lock_n (2),
2200  GT11_TXUSERRDY_IN => '0',
2201  ------------------ Transmit Ports - FPGA TX Interface Ports ----------------
2202  GT11_TXUSRCLK_IN => UsrClk,
2203  GT11_TXUSRCLK2_IN => UsrClk,
2204  --------------- Transmit Ports - TX Configurable Driver Ports --------------
2205  GT11_TXDIFFCTRL_IN => txdiffctrl(11),
2206  ------------------ Transmit Ports - TX Data Path interface -----------------
2207  GT11_TXDATA_IN => TXDATA(11),
2208  ---------------- Transmit Ports - TX Driver and OOB signaling --------------
2209  GT11_GTXTXN_OUT => TXN(11),
2210  GT11_GTXTXP_OUT => TXP(11),
2211  ----------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
2212  GT11_TXOUTCLK_OUT => txoutclk(11),
2213  GT11_TXOUTCLKFABRIC_OUT => open,
2214  GT11_TXOUTCLKPCS_OUT => open,
2215  --------------------- Transmit Ports - TX Gearbox Ports --------------------
2216  GT11_TXCHARISK_IN => txcharisk(11),
2217  ------------- Transmit Ports - TX Initialization and Reset Ports -----------
2218  GT11_TXRESETDONE_OUT => txresetdone (11),
2219  ------------------ Transmit Ports - pattern Generator Ports ----------------
2220  GT11_TXPRBSSEL_IN => txprbssel(11),
2221 
2222 
2223  --____________________________COMMON PORTS________________________________
2224  GT0_QPLLLOCK_IN => qpll_lock_i(0),
2225  GT0_QPLLREFCLKLOST_IN => GT0_QPLLREFCLKLOST,
2226  GT0_QPLLRESET_OUT => GT0_QPLLRESET_OUT,
2227  GT0_QPLLOUTCLK_IN => GT0_QPLLOUTCLK,
2228  GT0_QPLLOUTREFCLK_IN => GT0_QPLLOUTREFCLK ,
2229  --____________________________COMMON PORTS________________________________
2230  GT1_QPLLLOCK_IN => qpll_lock_i(1),
2231  GT1_QPLLREFCLKLOST_IN => GT1_QPLLREFCLKLOST,
2232  GT1_QPLLRESET_OUT => GT1_QPLLRESET_OUT,
2233  GT1_QPLLOUTCLK_IN => GT1_QPLLOUTCLK,
2234  GT1_QPLLOUTREFCLK_IN => GT1_QPLLOUTREFCLK ,
2235  --____________________________COMMON PORTS________________________________
2236  GT2_QPLLLOCK_IN => qpll_lock_i(2),
2237  GT2_QPLLREFCLKLOST_IN => GT2_QPLLREFCLKLOST,
2238  GT2_QPLLRESET_OUT => GT2_QPLLRESET_OUT,
2239  GT2_QPLLOUTCLK_IN => GT2_QPLLOUTCLK,
2240  GT2_QPLLOUTREFCLK_IN => GT2_QPLLOUTREFCLK
2241 
2242 );
2243 i_common0 : amc_gtx5Gpd_common
2244  port map
2245  (
2246  GTREFCLK0_IN => AMC_REFCLK,
2247  QPLLLOCK_OUT => qpll_lock_i(0),
2248  QPLLLOCKDETCLK_IN => DRPclk,
2249  QPLLOUTCLK_OUT => GT0_QPLLOUTCLK,
2250  QPLLOUTREFCLK_OUT => GT0_QPLLOUTREFCLK,
2251  QPLLREFCLKLOST_OUT => GT0_QPLLREFCLKLOST,
2252  QPLLRESET_IN => GT0_QPLLRESET_IN
2253 
2254 );
2255 GT0_QPLLRESET_IN <= GT0_QPLLRESET_OUT or COMMON_RESET;
2256 i_common1 : amc_gtx5Gpd_common
2257  port map
2258  (
2259  GTREFCLK0_IN => AMC_REFCLK,
2260  QPLLLOCK_OUT => qpll_lock_i(1),
2261  QPLLLOCKDETCLK_IN => DRPclk,
2262  QPLLOUTCLK_OUT => GT1_QPLLOUTCLK,
2263  QPLLOUTREFCLK_OUT => GT1_QPLLOUTREFCLK,
2264  QPLLREFCLKLOST_OUT => GT1_QPLLREFCLKLOST,
2265  QPLLRESET_IN => GT1_QPLLRESET_IN
2266 
2267 );
2268 GT1_QPLLRESET_IN <= GT1_QPLLRESET_OUT or COMMON_RESET;
2269 i_common2 : amc_gtx5Gpd_common
2270  port map
2271  (
2272  GTREFCLK0_IN => AMC_REFCLK,
2273  QPLLLOCK_OUT => qpll_lock_i(2),
2274  QPLLLOCKDETCLK_IN => DRPclk,
2275  QPLLOUTCLK_OUT => GT2_QPLLOUTCLK,
2276  QPLLOUTREFCLK_OUT => GT2_QPLLOUTREFCLK,
2277  QPLLREFCLKLOST_OUT => GT2_QPLLREFCLKLOST,
2278  QPLLRESET_IN => GT2_QPLLRESET_IN
2279 
2280 );
2281 GT2_QPLLRESET_IN <= GT2_QPLLRESET_OUT or COMMON_RESET;
2282 
2283 i_common_reset : amc_gtx5Gpd_common_reset
2284  port map
2285  (
2286  STABLE_CLOCK => DRPclk, --Stable Clock, either a stable clock from the PCB
2287  SOFT_RESET => SOFT_RESET, --User Reset, can be pulled any time
2288  COMMON_RESET => COMMON_RESET --Reset QPLL
2289  );
2290 end Behavioral;
2291