GT10_XAUI_4.v
9.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
// $Header: /root/leakn64/depot/rf/hw/debug/xilinx/GT10_XAUI_4.v,v 1.1 2003/04/01 21:47:33 berndt Exp $
//**************************************************************
// Copyright (c) 2002 Xilinx Inc. All Rights Reserved
// File Name : GT10_XAUI_4.v
// Module Name : GT10_XAUI_4
// Function : Gigabit Transceiver
// Site : GT10
// Spec Version : 1.19
// Generated by : write_verilog
//**************************************************************
`timescale 1 ps / 1 ps
module GT10_XAUI_4 (
CHBONDDONE,
CHBONDO,
PMACMOUT,
RXBUFSTATUS,
RXCHARISCOMMA,
RXCHARISK,
RXCHECKINGCRC,
RXCLKCORCNT,
RXCOMMADET,
RXCRCERR,
RXDATA,
RXDISPERR,
RXLOSSOFSYNC,
RXNOTINTABLE,
RXREALIGN,
RXRECCLK,
RXRUNDISP,
TXBUFERR,
TXKERR,
TXN,
TXOUTCLK,
TXP,
TXRUNDISP,
BREFCLKNIN,
BREFCLKPIN,
CHBONDI,
DISPREGSEL,
ENCHANSYNC,
ENMCOMMAALIGN,
ENPCOMMAALIGN,
LOOPBACK,
PMACMIN,
PMALOOPBACK,
PMAPWRDN,
PMAREGADDR,
PMAREGDATAIN,
PMAREGLOAD,
PMAREGRW,
PMAREGSTROBE,
PMARXCLK0SEL,
PMARXCLK1SEL,
PMARXLATCHSEL,
PMARXRECCLKSEL,
PMATERMEN,
PMATXCLK0SEL,
PMATXCLK1SEL,
PMATXLATCHSEL,
PMATXOUTCLKSEL,
POWERDOWN,
REFCLK,
REFCLK2,
REFCLKBSEL,
REFCLKSEL,
RXDATAWIDTH,
RXDECODEUSE,
RXINTDATAWIDTH,
RXN,
RXP,
RXPOLARITY,
RXRESET,
RXUSRCLK,
RXUSRCLK2,
TXDATAWIDTH,
TXINTDATAWIDTH,
TXBYPASS8B10B,
TXCHARDISPMODE,
TXCHARDISPVAL,
TXCHARISK,
TXDATA,
TXFORCECRCERR,
TXINHIBIT,
TXPOLARITY,
TXRESET,
TXUSRCLK,
TXUSRCLK2
);
parameter CHAN_BOND_MODE = "OFF";
parameter CHAN_BOND_OFFSET = 4;
parameter CHAN_BOND_ONE_SHOT = "FALSE";
parameter CHAN_BOND_SEQ_2_USE = "FALSE";
parameter CHAN_BOND_SEQ_LEN = 4;
parameter CHAN_BOND_WAIT = 4;
parameter CLK_COR_INSERT_IDLE_FLAG = "FALSE";
parameter CLK_COR_KEEP_IDLE = "FALSE";
parameter CLK_COR_REPEAT_WAIT = 1;
parameter CLK_COR_SEQ_2_USE = "FALSE";
parameter CLK_COR_SEQ_LEN = 1;
parameter CLK_CORRECT_USE = "TRUE";
parameter CRC_END_OF_PKT = "K29_7";
parameter CRC_FORMAT = "USER_MODE";
parameter CRC_START_OF_PKT = "K27_7";
parameter DEC_MCOMMA_DETECT = "TRUE";
parameter DEC_PCOMMA_DETECT = "TRUE";
parameter DEC_VALID_COMMA_ONLY = "TRUE";
parameter PMA_SPEED = 25;
parameter PMARXFDETSEL = 3'b000;
parameter PMATXCMSET0 = 2'b00;
parameter PMATXCMSET1 = 2'b00;
parameter PMATXVCODACSEL = "FALSE";
parameter PMAVSEL = "FALSE";
parameter RX_BUFFER_USE = "TRUE";
parameter RX_CRC_USE = "FALSE";
parameter RX_LOS_INVALID_INCR = 1;
parameter RX_LOS_THRESHOLD = 4;
parameter RX_LOSS_OF_SYNC_FSM = "FALSE";
parameter TX_6466GEARBOX_USE = "FALSE";
parameter TX_6466SCRAMBLER_USE = "FALSE";
parameter TX_CRC_FORCE_VALUE = 8'b11010110;
parameter TX_CRC_USE = "FALSE";
output CHBONDDONE;
output [3:0] CHBONDO;
output PMACMOUT;
output [1:0] RXBUFSTATUS;
output [3:0] RXCHARISCOMMA;
output [3:0] RXCHARISK;
output RXCHECKINGCRC;
output [2:0] RXCLKCORCNT;
output RXCOMMADET;
output RXCRCERR;
output [31:0] RXDATA;
output [3:0] RXDISPERR;
output [1:0] RXLOSSOFSYNC;
output [3:0] RXNOTINTABLE;
output RXREALIGN;
output RXRECCLK;
output [3:0] RXRUNDISP;
output TXBUFERR;
output [3:0] TXKERR;
output TXN;
output TXOUTCLK;
output TXP;
output [3:0] TXRUNDISP;
input BREFCLKNIN;
input BREFCLKPIN;
input [3:0] CHBONDI;
input [2:0] DISPREGSEL;
input ENCHANSYNC;
input ENMCOMMAALIGN;
input ENPCOMMAALIGN;
input [1:0] LOOPBACK;
input PMACMIN;
input [1:0] PMALOOPBACK;
input [2:0] PMAPWRDN;
input [5:0] PMAREGADDR;
input [7:0] PMAREGDATAIN;
input PMAREGLOAD;
input PMAREGRW;
input PMAREGSTROBE;
input PMARXCLK0SEL;
input PMARXCLK1SEL;
input PMARXLATCHSEL;
input [1:0] PMARXRECCLKSEL;
input [1:0] PMATERMEN;
input PMATXCLK0SEL;
input PMATXCLK1SEL;
input PMATXLATCHSEL;
input [1:0] PMATXOUTCLKSEL;
input POWERDOWN;
input REFCLK;
input REFCLK2;
input REFCLKBSEL;
input REFCLKSEL;
input [1:0] RXDATAWIDTH;
input RXDECODEUSE;
input RXINTDATAWIDTH;
input RXN;
input RXP;
input RXPOLARITY;
input RXRESET;
input RXUSRCLK;
input RXUSRCLK2;
input [1:0] TXDATAWIDTH;
input TXINTDATAWIDTH;
input [3:0] TXBYPASS8B10B;
input [3:0] TXCHARDISPMODE;
input [3:0] TXCHARDISPVAL;
input [3:0] TXCHARISK;
input [31:0] TXDATA;
input TXFORCECRCERR;
input TXINHIBIT;
input TXPOLARITY;
input TXRESET;
input TXUSRCLK;
input TXUSRCLK2;
wire [3:0] OPEN_RXCHARISCOMMA;
wire [3:0] OPEN_RXCHARISK;
wire [31:0] OPEN_RXDATA;
wire [3:0] OPEN_RXDISPERR;
wire [3:0] OPEN_RXNOTINTABLE;
wire [3:0] OPEN_RXRUNDISP;
wire [3:0] OPEN_TXKERR;
wire [3:0] OPEN_TXRUNDISP;
GT10 gt10_1 (
.CHBONDDONE (CHBONDDONE),
.CHBONDO (CHBONDO),
.PMACMOUT (PMACMOUT),
.RXBUFSTATUS (RXBUFSTATUS),
.RXCHARISCOMMA ({OPEN_RXCHARISCOMMA, RXCHARISCOMMA}),
.RXCHARISK ({OPEN_RXCHARISK, RXCHARISK}),
.RXCHECKINGCRC (RXCHECKINGCRC),
.RXCLKCORCNT (RXCLKCORCNT),
.RXCOMMADET (RXCOMMADET),
.RXCRCERR (RXCRCERR),
.RXDATA ({OPEN_RXDATA, RXDATA}),
.RXDISPERR ({OPEN_RXDISPERR, RXDISPERR}),
.RXLOSSOFSYNC (RXLOSSOFSYNC),
.RXNOTINTABLE ({OPEN_RXNOTINTABLE, RXNOTINTABLE}),
.RXREALIGN (RXREALIGN),
.RXRECCLK (RXRECCLK),
.RXRUNDISP ({OPEN_RXRUNDISP, RXRUNDISP}),
.TXBUFERR (TXBUFERR),
.TXKERR ({OPEN_TXKERR, TXKERR}),
.TXN (TXN),
.TXOUTCLK (TXOUTCLK),
.TXP (TXP),
.TXRUNDISP ({OPEN_TXRUNDISP, TXRUNDISP}),
.BREFCLKNIN (BREFCLKNIN),
.BREFCLKPIN (BREFCLKPIN),
.CHBONDI (CHBONDI),
.DISPREGSEL (DISPREGSEL),
.ENCHANSYNC (ENCHANSYNC),
.ENMCOMMAALIGN (ENMCOMMAALIGN),
.ENPCOMMAALIGN (ENPCOMMAALIGN),
.LOOPBACK (LOOPBACK),
.PMACMIN (PMACMIN),
.PMALOOPBACK (PMALOOPBACK),
.PMAPWRDN (PMAPWRDN),
.PMAREGADDR (PMAREGADDR),
.PMAREGDATAIN (PMAREGDATAIN),
.PMAREGLOAD (PMAREGLOAD),
.PMAREGRW (PMAREGRW),
.PMAREGSTROBE (PMAREGSTROBE),
.PMARXCLK0SEL (PMARXCLK0SEL),
.PMARXCLK1SEL (PMARXCLK1SEL),
.PMARXLATCHSEL (PMARXLATCHSEL),
.PMARXRECCLKSEL (PMARXRECCLKSEL),
.PMATERMEN (PMATERMEN),
.PMATXCLK0SEL (PMATXCLK0SEL),
.PMATXCLK1SEL (PMATXCLK1SEL),
.PMATXLATCHSEL (PMATXLATCHSEL),
.PMATXOUTCLKSEL (PMATXOUTCLKSEL),
.POWERDOWN (POWERDOWN),
.REFCLK (REFCLK),
.REFCLK2 (REFCLK2),
.REFCLKBSEL (REFCLKBSEL),
.REFCLKSEL (REFCLKSEL),
.RXDATAWIDTH (RXDATAWIDTH),
.RXDECODEUSE (RXDECODEUSE),
.RXINTDATAWIDTH (RXINTDATAWIDTH),
.RXN (RXN),
.RXP (RXP),
.RXPOLARITY (RXPOLARITY),
.RXRESET (RXRESET),
.RXUSRCLK (RXUSRCLK),
.RXUSRCLK2 (RXUSRCLK2),
.TXDATAWIDTH (TXDATAWIDTH),
.TXINTDATAWIDTH (TXINTDATAWIDTH),
.TXBYPASS8B10B ({4'b0, TXBYPASS8B10B}),
.TXCHARDISPMODE ({4'b0, TXCHARDISPMODE}),
.TXCHARDISPVAL ({4'b0, TXCHARDISPVAL}),
.TXCHARISK ({4'b0, TXCHARISK}),
.TXDATA ({32'b0, TXDATA}),
.TXFORCECRCERR (TXFORCECRCERR),
.TXINHIBIT (TXINHIBIT),
.TXPOLARITY (TXPOLARITY),
.TXRESET (TXRESET),
.TXUSRCLK (TXUSRCLK),
.TXUSRCLK2 (TXUSRCLK2)
);
defparam gt10_1.ALIGN_COMMA_MSB = "FALSE";
defparam gt10_1.CHAN_BOND_LIMIT = 16;
defparam gt10_1.CHAN_BOND_MODE = CHAN_BOND_MODE;
defparam gt10_1.CHAN_BOND_OFFSET = CHAN_BOND_OFFSET;
defparam gt10_1.CHAN_BOND_ONE_SHOT = CHAN_BOND_ONE_SHOT;
defparam gt10_1.CHAN_BOND_SEQ_1_1 = 11'b00101111100;
defparam gt10_1.CHAN_BOND_SEQ_1_2 = 11'b00000000000;
defparam gt10_1.CHAN_BOND_SEQ_1_3 = 11'b00000000000;
defparam gt10_1.CHAN_BOND_SEQ_1_4 = 11'b00000000000;
defparam gt10_1.CHAN_BOND_SEQ_2_1 = 11'b00000000000;
defparam gt10_1.CHAN_BOND_SEQ_2_2 = 11'b00000000000;
defparam gt10_1.CHAN_BOND_SEQ_2_3 = 11'b00000000000;
defparam gt10_1.CHAN_BOND_SEQ_2_4 = 11'b00000000000;
defparam gt10_1.CHAN_BOND_SEQ_2_USE = CHAN_BOND_SEQ_2_USE;
defparam gt10_1.CHAN_BOND_SEQ_LEN = CHAN_BOND_SEQ_LEN;
defparam gt10_1.CHAN_BOND_WAIT = CHAN_BOND_WAIT;
defparam gt10_1.CLK_COR_INSERT_IDLE_FLAG = CLK_COR_INSERT_IDLE_FLAG;
defparam gt10_1.CLK_COR_KEEP_IDLE = CLK_COR_KEEP_IDLE;
defparam gt10_1.CLK_COR_REPEAT_WAIT = CLK_COR_REPEAT_WAIT;
defparam gt10_1.CLK_COR_SEQ_1_1 = 11'b00100011100;
defparam gt10_1.CLK_COR_SEQ_1_2 = 11'b00000000000;
defparam gt10_1.CLK_COR_SEQ_1_3 = 11'b00000000000;
defparam gt10_1.CLK_COR_SEQ_1_4 = 11'b00000000000;
defparam gt10_1.CLK_COR_SEQ_2_1 = 11'b00000000000;
defparam gt10_1.CLK_COR_SEQ_2_2 = 11'b00000000000;
defparam gt10_1.CLK_COR_SEQ_2_3 = 11'b00000000000;
defparam gt10_1.CLK_COR_SEQ_2_4 = 11'b00000000000;
defparam gt10_1.CLK_COR_SEQ_2_USE = CLK_COR_SEQ_2_USE;
defparam gt10_1.CLK_COR_SEQ_LEN = CLK_COR_SEQ_LEN;
defparam gt10_1.CLK_CORRECT_USE = CLK_CORRECT_USE;
defparam gt10_1.COMMA_10B_MASK = 10'b1111111000;
defparam gt10_1.CRC_END_OF_PKT = CRC_END_OF_PKT;
defparam gt10_1.CRC_FORMAT = CRC_FORMAT;
defparam gt10_1.CRC_START_OF_PKT = CRC_START_OF_PKT;
defparam gt10_1.DEC_MCOMMA_DETECT = DEC_MCOMMA_DETECT;
defparam gt10_1.DEC_PCOMMA_DETECT = DEC_PCOMMA_DETECT;
defparam gt10_1.DEC_VALID_COMMA_ONLY = DEC_VALID_COMMA_ONLY;
defparam gt10_1.MCOMMA_10B_VALUE = 10'b1100000000;
defparam gt10_1.MCOMMA_DETECT = "TRUE";
defparam gt10_1.PCOMMA_10B_VALUE = 10'b0011111000;
defparam gt10_1.PCOMMA_DETECT = "TRUE";
defparam gt10_1.PMA_SPEED = PMA_SPEED;
defparam gt10_1.PMARXFDETSEL = PMARXFDETSEL;
defparam gt10_1.PMATXCMSET0 = PMATXCMSET0;
defparam gt10_1.PMATXCMSET1 = PMATXCMSET1;
defparam gt10_1.PMATXVCODACSEL = PMATXVCODACSEL;
defparam gt10_1.PMAVSEL = PMAVSEL;
defparam gt10_1.RX_BUFFER_USE = RX_BUFFER_USE;
defparam gt10_1.RX_CRC_USE = RX_CRC_USE;
defparam gt10_1.RX_LOS_INVALID_INCR = RX_LOS_INVALID_INCR;
defparam gt10_1.RX_LOS_THRESHOLD = RX_LOS_THRESHOLD;
defparam gt10_1.RX_LOSS_OF_SYNC_FSM = RX_LOSS_OF_SYNC_FSM;
defparam gt10_1.TX_6466GEARBOX_USE = TX_6466GEARBOX_USE;
defparam gt10_1.TX_6466SCRAMBLER_USE = TX_6466SCRAMBLER_USE;
defparam gt10_1.TX_BUFFER_USE = "TRUE";
defparam gt10_1.TX_CRC_FORCE_VALUE = TX_CRC_FORCE_VALUE;
defparam gt10_1.TX_CRC_USE = TX_CRC_USE;
endmodule