Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / design / sys / iop / niu / rtl / mac2_new.v
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: mac2_new.v
4// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
5// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
6//
7// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8//
9// This program is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; version 2 of the License.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21//
22// For the avoidance of doubt, and except that if any non-GPL license
23// choice is available it will apply instead, Sun elects to use only
24// the General Public License version 2 (GPLv2) at this time for any
25// software where a choice of GPL license versions is made
26// available with the language indicating that GPLv2 or any later version
27// may be used, or where a choice of which version of the GPL is applied is
28// otherwise unspecified.
29//
30// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
31// CA 95054 USA or visit www.sun.com if you need additional information or
32// have any questions.
33//
34// ========== Copyright Header End ============================================
35// ##########################################################
36// # File Name : mac2.v
37// # Author Name : John Lo
38// # Description : It contains mac_2ports and phy_clock_2ports.
39// # It is for N2.
40// #
41// # Parent Module:
42// # Child Module:
43// # Interface Mod:
44// # Date Created : 7/26/04
45// #
46// # Copyright (c) 2020, Sun Microsystems, Inc.
47// # Sun Proprietary and Confidential
48// ##########################################################
49
50
51module mac2
52 (/*AUTOARG*/
53 // Outputs
54 xaui_link_led_1, xaui_link_led_0, xaui_act_led_1, xaui_act_led_0,
55 mif_pio_intr, mdoe, mdo, mac_txc_req1, mac_txc_req0, mac_rxc_tag1,
56 mac_rxc_tag0, mac_rxc_stat1, mac_rxc_stat0, mac_rxc_data1,
57 mac_rxc_data0, mac_rxc_ctrl1, mac_rxc_ctrl0, mac_rxc_ack1,
58 mac_rxc_ack0, mac_pio_rdata, mac_pio_intr1, mac_pio_intr0,
59 mac_pio_err, mac_pio_ack, mac_esr_txd3_1, mac_esr_txd3_0,
60 mac_esr_txd2_1, mac_esr_txd2_0, mac_esr_txd1_1, mac_esr_txd1_0,
61 mac_esr_txd0_1, mac_esr_txd0_0, mac_esr_tclk_1, mac_esr_tclk_0,
62 mac_debug_port, mdc,
63 // Inputs
64 txc_mac_tag1, txc_mac_tag0, txc_mac_stat1, txc_mac_stat0,
65 txc_mac_data1, txc_mac_data0, txc_mac_ack1, txc_mac_ack0,
66 txc_mac_abort1, txc_mac_abort0, tcu_scan_mode, rxc_mac_req1,
67 rxc_mac_req0, pio_mac_sel, pio_clients_wdata, pio_clients_rd,
68 pio_clients_addr, niu_reset_l, niu_clk, mdi_1, mdi_0, mdi,
69 mac_reset1, mac_reset0, mac_312tx_test_clk, mac_312rx_test_clk,
70 mac_156tx_test_clk, mac_156rx_test_clk, mac_125tx_test_clk,
71 mac_125rx_test_clk, esr_mac_tclk_1, esr_mac_tclk_0,
72 esr_mac_sync_1, esr_mac_sync_0, esr_mac_rxd3_1, esr_mac_rxd3_0,
73 esr_mac_rxd2_1, esr_mac_rxd2_0, esr_mac_rxd1_1, esr_mac_rxd1_0,
74 esr_mac_rxd0_1, esr_mac_rxd0_0, esr_mac_rclk_1, esr_mac_rclk_0,
75 esr_mac_oddcg0_1, esr_mac_oddcg0_0, esr_mac_los_1, esr_mac_los_0
76 );
77
78// manual IO declaration -loj
79 output mdc;
80
81/*AUTOINPUT*/
82// Beginning of automatic inputs (from unused autoinst inputs)
83input [3:0] esr_mac_los_0; // To mac_2ports of mac_2ports.v
84input [3:0] esr_mac_los_1; // To mac_2ports of mac_2ports.v
85input esr_mac_oddcg0_0; // To mac_2ports of mac_2ports.v
86input esr_mac_oddcg0_1; // To mac_2ports of mac_2ports.v
87input [3:0] esr_mac_rclk_0; // To mac_2ports of mac_2ports.v, ...
88input [3:0] esr_mac_rclk_1; // To mac_2ports of mac_2ports.v, ...
89input [9:0] esr_mac_rxd0_0; // To mac_2ports of mac_2ports.v
90input [9:0] esr_mac_rxd0_1; // To mac_2ports of mac_2ports.v
91input [9:0] esr_mac_rxd1_0; // To mac_2ports of mac_2ports.v
92input [9:0] esr_mac_rxd1_1; // To mac_2ports of mac_2ports.v
93input [9:0] esr_mac_rxd2_0; // To mac_2ports of mac_2ports.v
94input [9:0] esr_mac_rxd2_1; // To mac_2ports of mac_2ports.v
95input [9:0] esr_mac_rxd3_0; // To mac_2ports of mac_2ports.v
96input [9:0] esr_mac_rxd3_1; // To mac_2ports of mac_2ports.v
97input [3:0] esr_mac_sync_0; // To mac_2ports of mac_2ports.v
98input [3:0] esr_mac_sync_1; // To mac_2ports of mac_2ports.v
99input [3:0] esr_mac_tclk_0; // To phy_clock_2ports of phy_clock_2ports.v
100input [3:0] esr_mac_tclk_1; // To phy_clock_2ports of phy_clock_2ports.v
101input mac_125rx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
102input mac_125tx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
103input mac_156rx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
104input mac_156tx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
105input mac_312rx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
106input mac_312tx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
107input mac_reset0; // To mac_2ports of mac_2ports.v
108input mac_reset1; // To mac_2ports of mac_2ports.v
109input mdi; // To mac_2ports of mac_2ports.v
110input mdi_0; // To mac_2ports of mac_2ports.v
111input mdi_1; // To mac_2ports of mac_2ports.v
112input niu_clk; // To mac_2ports of mac_2ports.v
113input niu_reset_l; // To mac_2ports of mac_2ports.v
114input [19:0] pio_clients_addr; // To mac_2ports of mac_2ports.v
115input pio_clients_rd; // To mac_2ports of mac_2ports.v
116input [31:0] pio_clients_wdata; // To mac_2ports of mac_2ports.v
117input pio_mac_sel; // To mac_2ports of mac_2ports.v
118input rxc_mac_req0; // To mac_2ports of mac_2ports.v
119input rxc_mac_req1; // To mac_2ports of mac_2ports.v
120input tcu_scan_mode; // To phy_clock_2ports of phy_clock_2ports.v
121input txc_mac_abort0; // To mac_2ports of mac_2ports.v
122input txc_mac_abort1; // To mac_2ports of mac_2ports.v
123input txc_mac_ack0; // To mac_2ports of mac_2ports.v
124input txc_mac_ack1; // To mac_2ports of mac_2ports.v
125input [63:0] txc_mac_data0; // To mac_2ports of mac_2ports.v
126input [63:0] txc_mac_data1; // To mac_2ports of mac_2ports.v
127input [3:0] txc_mac_stat0; // To mac_2ports of mac_2ports.v
128input [3:0] txc_mac_stat1; // To mac_2ports of mac_2ports.v
129input txc_mac_tag0; // To mac_2ports of mac_2ports.v
130input txc_mac_tag1; // To mac_2ports of mac_2ports.v
131// End of automatics
132
133/*AUTOOUTPUT*/
134// Beginning of automatic outputs (from unused autoinst outputs)
135output [31:0] mac_debug_port; // From mac_2ports of mac_2ports.v
136output [3:0] mac_esr_tclk_0; // From phy_clock_2ports of phy_clock_2ports.v
137output [3:0] mac_esr_tclk_1; // From phy_clock_2ports of phy_clock_2ports.v
138output [9:0] mac_esr_txd0_0; // From mac_2ports of mac_2ports.v
139output [9:0] mac_esr_txd0_1; // From mac_2ports of mac_2ports.v
140output [9:0] mac_esr_txd1_0; // From mac_2ports of mac_2ports.v
141output [9:0] mac_esr_txd1_1; // From mac_2ports of mac_2ports.v
142output [9:0] mac_esr_txd2_0; // From mac_2ports of mac_2ports.v
143output [9:0] mac_esr_txd2_1; // From mac_2ports of mac_2ports.v
144output [9:0] mac_esr_txd3_0; // From mac_2ports of mac_2ports.v
145output [9:0] mac_esr_txd3_1; // From mac_2ports of mac_2ports.v
146output mac_pio_ack; // From mac_2ports of mac_2ports.v
147output mac_pio_err; // From mac_2ports of mac_2ports.v
148output mac_pio_intr0; // From mac_2ports of mac_2ports.v
149output mac_pio_intr1; // From mac_2ports of mac_2ports.v
150output [63:0] mac_pio_rdata; // From mac_2ports of mac_2ports.v
151output mac_rxc_ack0; // From mac_2ports of mac_2ports.v
152output mac_rxc_ack1; // From mac_2ports of mac_2ports.v
153output mac_rxc_ctrl0; // From mac_2ports of mac_2ports.v
154output mac_rxc_ctrl1; // From mac_2ports of mac_2ports.v
155output [63:0] mac_rxc_data0; // From mac_2ports of mac_2ports.v
156output [63:0] mac_rxc_data1; // From mac_2ports of mac_2ports.v
157output [22:0] mac_rxc_stat0; // From mac_2ports of mac_2ports.v
158output [22:0] mac_rxc_stat1; // From mac_2ports of mac_2ports.v
159output mac_rxc_tag0; // From mac_2ports of mac_2ports.v
160output mac_rxc_tag1; // From mac_2ports of mac_2ports.v
161output mac_txc_req0; // From mac_2ports of mac_2ports.v
162output mac_txc_req1; // From mac_2ports of mac_2ports.v
163output mdo; // From mac_2ports of mac_2ports.v
164output mdoe; // From mac_2ports of mac_2ports.v
165output mif_pio_intr; // From mac_2ports of mac_2ports.v
166output xaui_act_led_0; // From mac_2ports of mac_2ports.v
167output xaui_act_led_1; // From mac_2ports of mac_2ports.v
168output xaui_link_led_0; // From mac_2ports of mac_2ports.v
169output xaui_link_led_1; // From mac_2ports of mac_2ports.v
170// End of automatics
171
172/*AUTOWIRE*/
173// Beginning of automatic wires (for undeclared instantiated-module outputs)
174wire blunt_end_loopback; // From mac_2ports of mac_2ports.v
175wire clk; // From mac_2ports of mac_2ports.v
176wire gmii_mode0; // From mac_2ports of mac_2ports.v
177wire gmii_mode1; // From mac_2ports of mac_2ports.v
178wire loopback0; // From mac_2ports of mac_2ports.v
179wire loopback1; // From mac_2ports of mac_2ports.v
180wire mii_mode0; // From mac_2ports of mac_2ports.v
181wire mii_mode1; // From mac_2ports of mac_2ports.v
182wire pcs_bypass0; // From mac_2ports of mac_2ports.v
183wire pcs_bypass1; // From mac_2ports of mac_2ports.v
184wire rbc0_a_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
185wire rbc0_a_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
186wire rbc0_b_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
187wire rbc0_b_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
188wire rbc0_c_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
189wire rbc0_c_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
190wire rbc0_d_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
191wire rbc0_d_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
192wire reset; // From mac_2ports of mac_2ports.v
193wire rx_clk_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
194wire rx_clk_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
195wire [3:0] rx_heart_beat_timer0; // From mac_2ports of mac_2ports.v
196wire [3:0] rx_heart_beat_timer1; // From mac_2ports of mac_2ports.v
197wire rx_nbclk_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
198wire rx_nbclk_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
199wire sel_clk_25mhz0; // From mac_2ports of mac_2ports.v
200wire sel_clk_25mhz1; // From mac_2ports of mac_2ports.v
201wire sel_por_loopback_clk0; // From mac_2ports of mac_2ports.v
202wire sel_por_loopback_clk1; // From mac_2ports of mac_2ports.v
203wire tx_clk_312mhz0; // From mac_2ports of mac_2ports.v
204wire tx_clk_312mhz1; // From mac_2ports of mac_2ports.v
205wire tx_clk_312mhz_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
206wire tx_clk_312mhz_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
207wire tx_clk_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
208wire tx_clk_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
209wire [3:0] tx_heart_beat_timer0; // From mac_2ports of mac_2ports.v
210wire [3:0] tx_heart_beat_timer1; // From mac_2ports of mac_2ports.v
211wire tx_nbclk_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
212wire tx_nbclk_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
213wire xgmii_mode0; // From mac_2ports of mac_2ports.v
214wire xgmii_mode1; // From mac_2ports of mac_2ports.v
215wire xpcs_loopback0; // From mac_2ports of mac_2ports.v
216wire xpcs_loopback1; // From mac_2ports of mac_2ports.v
217// End of automatics
218
219
220mac_2ports mac_2ports
221 (/*AUTOINST*/
222 // Outputs
223 .reset (reset),
224 .clk (clk),
225 .mac_debug_port (mac_debug_port[31:0]),
226 .blunt_end_loopback (blunt_end_loopback),
227 .mac_pio_ack (mac_pio_ack),
228 .mac_pio_rdata (mac_pio_rdata[63:0]),
229 .mac_pio_err (mac_pio_err),
230 .mac_pio_intr0 (mac_pio_intr0),
231 .mac_pio_intr1 (mac_pio_intr1),
232 .tx_clk_312mhz0 (tx_clk_312mhz0),
233 .tx_heart_beat_timer0 (tx_heart_beat_timer0[3:0]),
234 .rx_heart_beat_timer0 (rx_heart_beat_timer0[3:0]),
235 .mac_txc_req0 (mac_txc_req0),
236 .mac_rxc_ack0 (mac_rxc_ack0),
237 .mac_rxc_tag0 (mac_rxc_tag0),
238 .mac_rxc_data0 (mac_rxc_data0[63:0]),
239 .mac_rxc_ctrl0 (mac_rxc_ctrl0),
240 .mac_rxc_stat0 (mac_rxc_stat0[22:0]),
241 .mdc (mdc),
242 .mdo (mdo),
243 .mdoe (mdoe),
244 .loopback0 (loopback0),
245 .sel_por_loopback_clk0 (sel_por_loopback_clk0),
246 .sel_clk_25mhz0 (sel_clk_25mhz0),
247 .mii_mode0 (mii_mode0),
248 .gmii_mode0 (gmii_mode0),
249 .xgmii_mode0 (xgmii_mode0),
250 .pcs_bypass0 (pcs_bypass0),
251 .xpcs_loopback0 (xpcs_loopback0),
252 .xaui_act_led_0 (xaui_act_led_0),
253 .xaui_link_led_0 (xaui_link_led_0),
254 .tx_clk_312mhz1 (tx_clk_312mhz1),
255 .tx_heart_beat_timer1 (tx_heart_beat_timer1[3:0]),
256 .rx_heart_beat_timer1 (rx_heart_beat_timer1[3:0]),
257 .mac_txc_req1 (mac_txc_req1),
258 .mac_rxc_ack1 (mac_rxc_ack1),
259 .mac_rxc_tag1 (mac_rxc_tag1),
260 .mac_rxc_data1 (mac_rxc_data1[63:0]),
261 .mac_rxc_ctrl1 (mac_rxc_ctrl1),
262 .mac_rxc_stat1 (mac_rxc_stat1[22:0]),
263 .loopback1 (loopback1),
264 .sel_por_loopback_clk1 (sel_por_loopback_clk1),
265 .sel_clk_25mhz1 (sel_clk_25mhz1),
266 .mii_mode1 (mii_mode1),
267 .gmii_mode1 (gmii_mode1),
268 .xgmii_mode1 (xgmii_mode1),
269 .pcs_bypass1 (pcs_bypass1),
270 .xpcs_loopback1 (xpcs_loopback1),
271 .xaui_act_led_1 (xaui_act_led_1),
272 .xaui_link_led_1 (xaui_link_led_1),
273 .mac_esr_txd0_0 (mac_esr_txd0_0[9:0]),
274 .mac_esr_txd1_0 (mac_esr_txd1_0[9:0]),
275 .mac_esr_txd2_0 (mac_esr_txd2_0[9:0]),
276 .mac_esr_txd3_0 (mac_esr_txd3_0[9:0]),
277 .mac_esr_txd0_1 (mac_esr_txd0_1[9:0]),
278 .mac_esr_txd1_1 (mac_esr_txd1_1[9:0]),
279 .mac_esr_txd2_1 (mac_esr_txd2_1[9:0]),
280 .mac_esr_txd3_1 (mac_esr_txd3_1[9:0]),
281 .mif_pio_intr (mif_pio_intr),
282 // Inputs
283 .niu_clk (niu_clk),
284 .niu_reset_l (niu_reset_l),
285 .pio_clients_addr (pio_clients_addr[19:0]),
286 .pio_clients_rd (pio_clients_rd),
287 .pio_clients_wdata (pio_clients_wdata[31:0]),
288 .pio_mac_sel (pio_mac_sel),
289 .mac_reset0 (mac_reset0),
290 .mac_reset1 (mac_reset1),
291 .esr_mac_rclk_0 (esr_mac_rclk_0[3:0]),
292 .tx_clk_muxd0 (tx_clk_muxd0),
293 .tx_nbclk_muxd0 (tx_nbclk_muxd0),
294 .tx_clk_312mhz_muxd0 (tx_clk_312mhz_muxd0),
295 .rx_clk_muxd0 (rx_clk_muxd0),
296 .rx_nbclk_muxd0 (rx_nbclk_muxd0),
297 .txc_mac_ack0 (txc_mac_ack0),
298 .txc_mac_tag0 (txc_mac_tag0),
299 .txc_mac_data0 (txc_mac_data0[63:0]),
300 .txc_mac_stat0 (txc_mac_stat0[3:0]),
301 .txc_mac_abort0 (txc_mac_abort0),
302 .rxc_mac_req0 (rxc_mac_req0),
303 .mdi (mdi),
304 .mdi_0 (mdi_0),
305 .mdi_1 (mdi_1),
306 .rbc0_a_muxd0 (rbc0_a_muxd0),
307 .rbc0_b_muxd0 (rbc0_b_muxd0),
308 .rbc0_c_muxd0 (rbc0_c_muxd0),
309 .rbc0_d_muxd0 (rbc0_d_muxd0),
310 .esr_mac_rclk_1 (esr_mac_rclk_1[3:0]),
311 .tx_clk_muxd1 (tx_clk_muxd1),
312 .tx_nbclk_muxd1 (tx_nbclk_muxd1),
313 .tx_clk_312mhz_muxd1 (tx_clk_312mhz_muxd1),
314 .rx_clk_muxd1 (rx_clk_muxd1),
315 .rx_nbclk_muxd1 (rx_nbclk_muxd1),
316 .txc_mac_ack1 (txc_mac_ack1),
317 .txc_mac_tag1 (txc_mac_tag1),
318 .txc_mac_data1 (txc_mac_data1[63:0]),
319 .txc_mac_stat1 (txc_mac_stat1[3:0]),
320 .txc_mac_abort1 (txc_mac_abort1),
321 .rxc_mac_req1 (rxc_mac_req1),
322 .rbc0_a_muxd1 (rbc0_a_muxd1),
323 .rbc0_b_muxd1 (rbc0_b_muxd1),
324 .rbc0_c_muxd1 (rbc0_c_muxd1),
325 .rbc0_d_muxd1 (rbc0_d_muxd1),
326 .esr_mac_rxd0_0 (esr_mac_rxd0_0[9:0]),
327 .esr_mac_rxd1_0 (esr_mac_rxd1_0[9:0]),
328 .esr_mac_rxd2_0 (esr_mac_rxd2_0[9:0]),
329 .esr_mac_rxd3_0 (esr_mac_rxd3_0[9:0]),
330 .esr_mac_sync_0 (esr_mac_sync_0[3:0]),
331 .esr_mac_los_0 (esr_mac_los_0[3:0]),
332 .esr_mac_oddcg0_0 (esr_mac_oddcg0_0),
333 .esr_mac_rxd0_1 (esr_mac_rxd0_1[9:0]),
334 .esr_mac_rxd1_1 (esr_mac_rxd1_1[9:0]),
335 .esr_mac_rxd2_1 (esr_mac_rxd2_1[9:0]),
336 .esr_mac_rxd3_1 (esr_mac_rxd3_1[9:0]),
337 .esr_mac_sync_1 (esr_mac_sync_1[3:0]),
338 .esr_mac_los_1 (esr_mac_los_1[3:0]),
339 .esr_mac_oddcg0_1 (esr_mac_oddcg0_1));
340
341
342phy_clock_2ports phy_clock_2ports
343 (/*AUTOINST*/
344 // Outputs
345 .mac_esr_tclk_0 (mac_esr_tclk_0[3:0]),
346 .tx_nbclk_muxd0 (tx_nbclk_muxd0),
347 .tx_clk_muxd0 (tx_clk_muxd0),
348 .tx_clk_312mhz_muxd0 (tx_clk_312mhz_muxd0),
349 .rx_nbclk_muxd0 (rx_nbclk_muxd0),
350 .rx_clk_muxd0 (rx_clk_muxd0),
351 .rbc0_a_muxd0 (rbc0_a_muxd0),
352 .rbc0_b_muxd0 (rbc0_b_muxd0),
353 .rbc0_c_muxd0 (rbc0_c_muxd0),
354 .rbc0_d_muxd0 (rbc0_d_muxd0),
355 .mac_esr_tclk_1 (mac_esr_tclk_1[3:0]),
356 .tx_nbclk_muxd1 (tx_nbclk_muxd1),
357 .tx_clk_muxd1 (tx_clk_muxd1),
358 .tx_clk_312mhz_muxd1 (tx_clk_312mhz_muxd1),
359 .rx_nbclk_muxd1 (rx_nbclk_muxd1),
360 .rx_clk_muxd1 (rx_clk_muxd1),
361 .rbc0_a_muxd1 (rbc0_a_muxd1),
362 .rbc0_b_muxd1 (rbc0_b_muxd1),
363 .rbc0_c_muxd1 (rbc0_c_muxd1),
364 .rbc0_d_muxd1 (rbc0_d_muxd1),
365 // Inputs
366 .tcu_scan_mode (tcu_scan_mode),
367 .mac_312tx_test_clk (mac_312tx_test_clk),
368 .mac_312rx_test_clk (mac_312rx_test_clk),
369 .mac_156tx_test_clk (mac_156tx_test_clk),
370 .mac_156rx_test_clk (mac_156rx_test_clk),
371 .mac_125tx_test_clk (mac_125tx_test_clk),
372 .mac_125rx_test_clk (mac_125rx_test_clk),
373 .reset (reset),
374 .clk (clk),
375 .blunt_end_loopback (blunt_end_loopback),
376 .loopback0 (loopback0),
377 .sel_por_loopback_clk0 (sel_por_loopback_clk0),
378 .sel_clk_25mhz0 (sel_clk_25mhz0),
379 .mii_mode0 (mii_mode0),
380 .gmii_mode0 (gmii_mode0),
381 .xgmii_mode0 (xgmii_mode0),
382 .pcs_bypass0 (pcs_bypass0),
383 .xpcs_loopback0 (xpcs_loopback0),
384 .tx_heart_beat_timer0 (tx_heart_beat_timer0[3:0]),
385 .rx_heart_beat_timer0 (rx_heart_beat_timer0[3:0]),
386 .esr_mac_rclk_0 (esr_mac_rclk_0[3:0]),
387 .esr_mac_tclk_0 (esr_mac_tclk_0[3:0]),
388 .tx_clk_312mhz0 (tx_clk_312mhz0),
389 .loopback1 (loopback1),
390 .sel_por_loopback_clk1 (sel_por_loopback_clk1),
391 .sel_clk_25mhz1 (sel_clk_25mhz1),
392 .mii_mode1 (mii_mode1),
393 .gmii_mode1 (gmii_mode1),
394 .xgmii_mode1 (xgmii_mode1),
395 .pcs_bypass1 (pcs_bypass1),
396 .xpcs_loopback1 (xpcs_loopback1),
397 .tx_heart_beat_timer1 (tx_heart_beat_timer1[3:0]),
398 .rx_heart_beat_timer1 (rx_heart_beat_timer1[3:0]),
399 .esr_mac_rclk_1 (esr_mac_rclk_1[3:0]),
400 .esr_mac_tclk_1 (esr_mac_tclk_1[3:0]),
401 .tx_clk_312mhz1 (tx_clk_312mhz1));
402
403
404
405endmodule // mac2
406
407
408
409
410