Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / design / sys / iop / niu / rtl / mac_core.v
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: mac_core.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 : mac_core.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 mac_core
52 (/*AUTOARG*/
53 // Outputs
54 xaui_link_led_1, xaui_link_led_0, xaui_act_led_1, xaui_act_led_0,
55 serdes_reset_1, serdes_reset_0, mif_pio_intr, mdoe, mdo, mdclk,
56 mac_txc_req1, mac_txc_req0, mac_rxc_tag1, mac_rxc_tag0,
57 mac_rxc_stat1, mac_rxc_stat0, mac_rxc_data1, mac_rxc_data0,
58 mac_rxc_ctrl1, mac_rxc_ctrl0, mac_rxc_ack1, mac_rxc_ack0,
59 mac_pio_rdata, mac_pio_intr1, mac_pio_intr0, mac_pio_err,
60 mac_pio_ack, mac_esr_txd3_1, mac_esr_txd3_0, mac_esr_txd2_1,
61 mac_esr_txd2_0, mac_esr_txd1_1, mac_esr_txd1_0, mac_esr_txd0_1,
62 mac_esr_txd0_0, mac_esr_tclk_1, mac_esr_tclk_0, mac_debug_port,
63 // Inputs
64 xaui_mdint1_l, xaui_mdint0_l, txc_mac_tag1, txc_mac_tag0,
65 txc_mac_stat1, txc_mac_stat0, txc_mac_data1, txc_mac_data0,
66 txc_mac_ack1, txc_mac_ack0, txc_mac_abort1, txc_mac_abort0,
67 tcu_scan_mode, tcu_scan_en, tcu_mac_312tx_clk_stop,
68 tcu_mac_312rx_clk_stop, tcu_mac_156tx_clk_stop,
69 tcu_mac_156rx_clk_stop, tcu_mac_125tx_clk_stop,
70 tcu_mac_125rx_clk_stop, rxc_mac_req1, rxc_mac_req0, pio_mac_sel,
71 pio_clients_wdata, pio_clients_rd, pio_clients_addr, niu_reset_l,
72 niu_clk, mdi_1, mdi_0, mdi, mac_reset1, mac_reset0,
73 mac_312tx_test_clk, mac_312rx_test_clk, mac_156tx_test_clk,
74 mac_156rx_test_clk, mac_125tx_test_clk, mac_125rx_test_clk,
75 esr_mac_tclk_1, esr_mac_tclk_0, esr_mac_rxd3_1, esr_mac_rxd3_0,
76 esr_mac_rxd2_1, esr_mac_rxd2_0, esr_mac_rxd1_1, esr_mac_rxd1_0,
77 esr_mac_rxd0_1, esr_mac_rxd0_0, esr_mac_rclk_1, esr_mac_rclk_0,
78 esr_mac_oddcg0_1, esr_mac_oddcg0_0, esr_mac_los_1, esr_mac_los_0,
79 esr_mac_lock_1, esr_mac_lock_0
80 );
81
82
83/*AUTOINPUT*/
84// Beginning of automatic inputs (from unused autoinst inputs)
85input esr_mac_lock_0; // To mac_2ports of mac_2ports.v
86input esr_mac_lock_1; // To mac_2ports of mac_2ports.v
87input [3:0] esr_mac_los_0; // To mac_2ports of mac_2ports.v
88input [3:0] esr_mac_los_1; // To mac_2ports of mac_2ports.v
89input esr_mac_oddcg0_0; // To mac_2ports of mac_2ports.v
90input esr_mac_oddcg0_1; // To mac_2ports of mac_2ports.v
91input [3:0] esr_mac_rclk_0; // To phy_clock_2ports of phy_clock_2ports.v
92input [3:0] esr_mac_rclk_1; // To phy_clock_2ports of phy_clock_2ports.v
93input [9:0] esr_mac_rxd0_0; // To mac_2ports of mac_2ports.v
94input [9:0] esr_mac_rxd0_1; // To mac_2ports of mac_2ports.v
95input [9:0] esr_mac_rxd1_0; // To mac_2ports of mac_2ports.v
96input [9:0] esr_mac_rxd1_1; // To mac_2ports of mac_2ports.v
97input [9:0] esr_mac_rxd2_0; // To mac_2ports of mac_2ports.v
98input [9:0] esr_mac_rxd2_1; // To mac_2ports of mac_2ports.v
99input [9:0] esr_mac_rxd3_0; // To mac_2ports of mac_2ports.v
100input [9:0] esr_mac_rxd3_1; // To mac_2ports of mac_2ports.v
101input esr_mac_tclk_0; // To phy_clock_2ports of phy_clock_2ports.v
102input esr_mac_tclk_1; // To phy_clock_2ports of phy_clock_2ports.v
103input mac_125rx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
104input mac_125tx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
105input mac_156rx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
106input mac_156tx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
107input mac_312rx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
108input mac_312tx_test_clk; // To phy_clock_2ports of phy_clock_2ports.v
109input mac_reset0; // To mac_2ports of mac_2ports.v
110input mac_reset1; // To mac_2ports of mac_2ports.v
111input mdi; // To mac_2ports of mac_2ports.v
112input mdi_0; // To mac_2ports of mac_2ports.v
113input mdi_1; // To mac_2ports of mac_2ports.v
114input niu_clk; // To mac_2ports of mac_2ports.v
115input niu_reset_l; // To mac_2ports of mac_2ports.v
116input [19:0] pio_clients_addr; // To mac_2ports of mac_2ports.v
117input pio_clients_rd; // To mac_2ports of mac_2ports.v
118input [31:0] pio_clients_wdata; // To mac_2ports of mac_2ports.v
119input pio_mac_sel; // To mac_2ports of mac_2ports.v
120input rxc_mac_req0; // To mac_2ports of mac_2ports.v
121input rxc_mac_req1; // To mac_2ports of mac_2ports.v
122input tcu_mac_125rx_clk_stop; // To mac_2ports of mac_2ports.v
123input tcu_mac_125tx_clk_stop; // To mac_2ports of mac_2ports.v
124input tcu_mac_156rx_clk_stop; // To mac_2ports of mac_2ports.v
125input tcu_mac_156tx_clk_stop; // To mac_2ports of mac_2ports.v
126input tcu_mac_312rx_clk_stop; // To mac_2ports of mac_2ports.v
127input tcu_mac_312tx_clk_stop; // To mac_2ports of mac_2ports.v
128input tcu_scan_en; // To mac_2ports of mac_2ports.v
129input tcu_scan_mode; // To mac_2ports of mac_2ports.v, ...
130input txc_mac_abort0; // To mac_2ports of mac_2ports.v
131input txc_mac_abort1; // To mac_2ports of mac_2ports.v
132input txc_mac_ack0; // To mac_2ports of mac_2ports.v
133input txc_mac_ack1; // To mac_2ports of mac_2ports.v
134input [63:0] txc_mac_data0; // To mac_2ports of mac_2ports.v
135input [63:0] txc_mac_data1; // To mac_2ports of mac_2ports.v
136input [3:0] txc_mac_stat0; // To mac_2ports of mac_2ports.v
137input [3:0] txc_mac_stat1; // To mac_2ports of mac_2ports.v
138input txc_mac_tag0; // To mac_2ports of mac_2ports.v
139input txc_mac_tag1; // To mac_2ports of mac_2ports.v
140input xaui_mdint0_l; // To mac_2ports of mac_2ports.v
141input xaui_mdint1_l; // To mac_2ports of mac_2ports.v
142// End of automatics
143
144/*AUTOOUTPUT*/
145// Beginning of automatic outputs (from unused autoinst outputs)
146output [31:0] mac_debug_port; // From mac_2ports of mac_2ports.v
147output [3:0] mac_esr_tclk_0; // From mac_2ports of mac_2ports.v
148output [3:0] mac_esr_tclk_1; // From mac_2ports of mac_2ports.v
149output [9:0] mac_esr_txd0_0; // From mac_2ports of mac_2ports.v
150output [9:0] mac_esr_txd0_1; // From mac_2ports of mac_2ports.v
151output [9:0] mac_esr_txd1_0; // From mac_2ports of mac_2ports.v
152output [9:0] mac_esr_txd1_1; // From mac_2ports of mac_2ports.v
153output [9:0] mac_esr_txd2_0; // From mac_2ports of mac_2ports.v
154output [9:0] mac_esr_txd2_1; // From mac_2ports of mac_2ports.v
155output [9:0] mac_esr_txd3_0; // From mac_2ports of mac_2ports.v
156output [9:0] mac_esr_txd3_1; // From mac_2ports of mac_2ports.v
157output mac_pio_ack; // From mac_2ports of mac_2ports.v
158output mac_pio_err; // From mac_2ports of mac_2ports.v
159output mac_pio_intr0; // From mac_2ports of mac_2ports.v
160output mac_pio_intr1; // From mac_2ports of mac_2ports.v
161output [63:0] mac_pio_rdata; // From mac_2ports of mac_2ports.v
162output mac_rxc_ack0; // From mac_2ports of mac_2ports.v
163output mac_rxc_ack1; // From mac_2ports of mac_2ports.v
164output mac_rxc_ctrl0; // From mac_2ports of mac_2ports.v
165output mac_rxc_ctrl1; // From mac_2ports of mac_2ports.v
166output [63:0] mac_rxc_data0; // From mac_2ports of mac_2ports.v
167output [63:0] mac_rxc_data1; // From mac_2ports of mac_2ports.v
168output [22:0] mac_rxc_stat0; // From mac_2ports of mac_2ports.v
169output [22:0] mac_rxc_stat1; // From mac_2ports of mac_2ports.v
170output mac_rxc_tag0; // From mac_2ports of mac_2ports.v
171output mac_rxc_tag1; // From mac_2ports of mac_2ports.v
172output mac_txc_req0; // From mac_2ports of mac_2ports.v
173output mac_txc_req1; // From mac_2ports of mac_2ports.v
174output mdclk; // From mac_2ports of mac_2ports.v
175output mdo; // From mac_2ports of mac_2ports.v
176output mdoe; // From mac_2ports of mac_2ports.v
177output mif_pio_intr; // From mac_2ports of mac_2ports.v
178output serdes_reset_0; // From mac_2ports of mac_2ports.v
179output serdes_reset_1; // From mac_2ports of mac_2ports.v
180output xaui_act_led_0; // From mac_2ports of mac_2ports.v
181output xaui_act_led_1; // From mac_2ports of mac_2ports.v
182output xaui_link_led_0; // From mac_2ports of mac_2ports.v
183output xaui_link_led_1; // From mac_2ports of mac_2ports.v
184// End of automatics
185
186/*AUTOWIRE*/
187// Beginning of automatic wires (for undeclared instantiated-module outputs)
188wire clk; // From mac_2ports of mac_2ports.v
189wire gmii_mode0; // From mac_2ports of mac_2ports.v
190wire gmii_mode1; // From mac_2ports of mac_2ports.v
191wire loopback0; // From mac_2ports of mac_2ports.v
192wire loopback1; // From mac_2ports of mac_2ports.v
193wire mii_mode0; // From mac_2ports of mac_2ports.v
194wire mii_mode1; // From mac_2ports of mac_2ports.v
195wire pcs_bypass0; // From mac_2ports of mac_2ports.v
196wire pcs_bypass1; // From mac_2ports of mac_2ports.v
197wire rbc0_a_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
198wire rbc0_a_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
199wire rbc0_b_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
200wire rbc0_b_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
201wire rbc0_c_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
202wire rbc0_c_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
203wire rbc0_d_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
204wire rbc0_d_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
205wire reset; // From mac_2ports of mac_2ports.v
206wire rx_clk_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
207wire rx_clk_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
208wire [3:0] rx_heart_beat_timer0; // From mac_2ports of mac_2ports.v
209wire [3:0] rx_heart_beat_timer1; // From mac_2ports of mac_2ports.v
210wire rx_nbclk_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
211wire rx_nbclk_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
212wire sel_clk_25mhz0; // From mac_2ports of mac_2ports.v
213wire sel_clk_25mhz1; // From mac_2ports of mac_2ports.v
214wire sel_por_clk_src0; // From mac_2ports of mac_2ports.v
215wire sel_por_clk_src1; // From mac_2ports of mac_2ports.v
216wire tx_clk_312mhz_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
217wire tx_clk_312mhz_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
218wire tx_clk_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
219wire tx_clk_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
220wire [3:0] tx_heart_beat_timer0; // From mac_2ports of mac_2ports.v
221wire [3:0] tx_heart_beat_timer1; // From mac_2ports of mac_2ports.v
222wire tx_nbclk_muxd0; // From phy_clock_2ports of phy_clock_2ports.v
223wire tx_nbclk_muxd1; // From phy_clock_2ports of phy_clock_2ports.v
224wire xgmii_mode0; // From mac_2ports of mac_2ports.v
225wire xgmii_mode1; // From mac_2ports of mac_2ports.v
226wire xpcs_loopback0; // From mac_2ports of mac_2ports.v
227wire xpcs_loopback1; // From mac_2ports of mac_2ports.v
228// End of automatics
229
230
231mac_2ports mac_2ports
232 (/*AUTOINST*/
233 // Outputs
234 .reset (reset),
235 .clk (clk),
236 .mac_debug_port (mac_debug_port[31:0]),
237 .mac_pio_ack (mac_pio_ack),
238 .mac_pio_rdata (mac_pio_rdata[63:0]),
239 .mac_pio_intr0 (mac_pio_intr0),
240 .mac_pio_intr1 (mac_pio_intr1),
241 .mac_pio_err (mac_pio_err),
242 .tx_heart_beat_timer0 (tx_heart_beat_timer0[3:0]),
243 .rx_heart_beat_timer0 (rx_heart_beat_timer0[3:0]),
244 .mac_txc_req0 (mac_txc_req0),
245 .mac_rxc_ack0 (mac_rxc_ack0),
246 .mac_rxc_tag0 (mac_rxc_tag0),
247 .mac_rxc_data0 (mac_rxc_data0[63:0]),
248 .mac_rxc_ctrl0 (mac_rxc_ctrl0),
249 .mac_rxc_stat0 (mac_rxc_stat0[22:0]),
250 .loopback0 (loopback0),
251 .sel_por_clk_src0 (sel_por_clk_src0),
252 .sel_clk_25mhz0 (sel_clk_25mhz0),
253 .mii_mode0 (mii_mode0),
254 .gmii_mode0 (gmii_mode0),
255 .xgmii_mode0 (xgmii_mode0),
256 .pcs_bypass0 (pcs_bypass0),
257 .xpcs_loopback0 (xpcs_loopback0),
258 .xaui_act_led_0 (xaui_act_led_0),
259 .xaui_link_led_0 (xaui_link_led_0),
260 .tx_heart_beat_timer1 (tx_heart_beat_timer1[3:0]),
261 .rx_heart_beat_timer1 (rx_heart_beat_timer1[3:0]),
262 .mac_txc_req1 (mac_txc_req1),
263 .mac_rxc_ack1 (mac_rxc_ack1),
264 .mac_rxc_tag1 (mac_rxc_tag1),
265 .mac_rxc_data1 (mac_rxc_data1[63:0]),
266 .mac_rxc_ctrl1 (mac_rxc_ctrl1),
267 .mac_rxc_stat1 (mac_rxc_stat1[22:0]),
268 .loopback1 (loopback1),
269 .sel_por_clk_src1 (sel_por_clk_src1),
270 .sel_clk_25mhz1 (sel_clk_25mhz1),
271 .mii_mode1 (mii_mode1),
272 .gmii_mode1 (gmii_mode1),
273 .xgmii_mode1 (xgmii_mode1),
274 .pcs_bypass1 (pcs_bypass1),
275 .xpcs_loopback1 (xpcs_loopback1),
276 .xaui_act_led_1 (xaui_act_led_1),
277 .xaui_link_led_1 (xaui_link_led_1),
278 .mdclk (mdclk),
279 .mdo (mdo),
280 .mdoe (mdoe),
281 .serdes_reset_0 (serdes_reset_0),
282 .serdes_reset_1 (serdes_reset_1),
283 .mac_esr_tclk_0 (mac_esr_tclk_0[3:0]),
284 .mac_esr_txd0_0 (mac_esr_txd0_0[9:0]),
285 .mac_esr_txd1_0 (mac_esr_txd1_0[9:0]),
286 .mac_esr_txd2_0 (mac_esr_txd2_0[9:0]),
287 .mac_esr_txd3_0 (mac_esr_txd3_0[9:0]),
288 .mac_esr_tclk_1 (mac_esr_tclk_1[3:0]),
289 .mac_esr_txd0_1 (mac_esr_txd0_1[9:0]),
290 .mac_esr_txd1_1 (mac_esr_txd1_1[9:0]),
291 .mac_esr_txd2_1 (mac_esr_txd2_1[9:0]),
292 .mac_esr_txd3_1 (mac_esr_txd3_1[9:0]),
293 .mif_pio_intr (mif_pio_intr),
294 // Inputs
295 .niu_clk (niu_clk),
296 .niu_reset_l (niu_reset_l),
297 .pio_clients_addr (pio_clients_addr[19:0]),
298 .pio_clients_rd (pio_clients_rd),
299 .pio_clients_wdata (pio_clients_wdata[31:0]),
300 .pio_mac_sel (pio_mac_sel),
301 .mac_reset0 (mac_reset0),
302 .mac_reset1 (mac_reset1),
303 .tcu_scan_mode (tcu_scan_mode),
304 .tcu_scan_en (tcu_scan_en),
305 .tcu_mac_312tx_clk_stop (tcu_mac_312tx_clk_stop),
306 .tcu_mac_312rx_clk_stop (tcu_mac_312rx_clk_stop),
307 .tcu_mac_156tx_clk_stop (tcu_mac_156tx_clk_stop),
308 .tcu_mac_156rx_clk_stop (tcu_mac_156rx_clk_stop),
309 .tcu_mac_125tx_clk_stop (tcu_mac_125tx_clk_stop),
310 .tcu_mac_125rx_clk_stop (tcu_mac_125rx_clk_stop),
311 .tx_clk_muxd0 (tx_clk_muxd0),
312 .tx_nbclk_muxd0 (tx_nbclk_muxd0),
313 .tx_clk_312mhz_muxd0 (tx_clk_312mhz_muxd0),
314 .rx_clk_muxd0 (rx_clk_muxd0),
315 .rx_nbclk_muxd0 (rx_nbclk_muxd0),
316 .txc_mac_ack0 (txc_mac_ack0),
317 .txc_mac_tag0 (txc_mac_tag0),
318 .txc_mac_data0 (txc_mac_data0[63:0]),
319 .txc_mac_stat0 (txc_mac_stat0[3:0]),
320 .txc_mac_abort0 (txc_mac_abort0),
321 .rxc_mac_req0 (rxc_mac_req0),
322 .rbc0_a_muxd0 (rbc0_a_muxd0),
323 .rbc0_b_muxd0 (rbc0_b_muxd0),
324 .rbc0_c_muxd0 (rbc0_c_muxd0),
325 .rbc0_d_muxd0 (rbc0_d_muxd0),
326 .tx_clk_muxd1 (tx_clk_muxd1),
327 .tx_nbclk_muxd1 (tx_nbclk_muxd1),
328 .tx_clk_312mhz_muxd1 (tx_clk_312mhz_muxd1),
329 .rx_clk_muxd1 (rx_clk_muxd1),
330 .rx_nbclk_muxd1 (rx_nbclk_muxd1),
331 .txc_mac_ack1 (txc_mac_ack1),
332 .txc_mac_tag1 (txc_mac_tag1),
333 .txc_mac_data1 (txc_mac_data1[63:0]),
334 .txc_mac_stat1 (txc_mac_stat1[3:0]),
335 .txc_mac_abort1 (txc_mac_abort1),
336 .rxc_mac_req1 (rxc_mac_req1),
337 .rbc0_a_muxd1 (rbc0_a_muxd1),
338 .rbc0_b_muxd1 (rbc0_b_muxd1),
339 .rbc0_c_muxd1 (rbc0_c_muxd1),
340 .rbc0_d_muxd1 (rbc0_d_muxd1),
341 .mdi (mdi),
342 .mdi_0 (mdi_0),
343 .mdi_1 (mdi_1),
344 .xaui_mdint0_l (xaui_mdint0_l),
345 .xaui_mdint1_l (xaui_mdint1_l),
346 .esr_mac_rxd0_0 (esr_mac_rxd0_0[9:0]),
347 .esr_mac_rxd1_0 (esr_mac_rxd1_0[9:0]),
348 .esr_mac_rxd2_0 (esr_mac_rxd2_0[9:0]),
349 .esr_mac_rxd3_0 (esr_mac_rxd3_0[9:0]),
350 .esr_mac_lock_0 (esr_mac_lock_0),
351 .esr_mac_los_0 (esr_mac_los_0[3:0]),
352 .esr_mac_oddcg0_0 (esr_mac_oddcg0_0),
353 .esr_mac_rxd0_1 (esr_mac_rxd0_1[9:0]),
354 .esr_mac_rxd1_1 (esr_mac_rxd1_1[9:0]),
355 .esr_mac_rxd2_1 (esr_mac_rxd2_1[9:0]),
356 .esr_mac_rxd3_1 (esr_mac_rxd3_1[9:0]),
357 .esr_mac_lock_1 (esr_mac_lock_1),
358 .esr_mac_los_1 (esr_mac_los_1[3:0]),
359 .esr_mac_oddcg0_1 (esr_mac_oddcg0_1));
360
361
362phy_clock_2ports phy_clock_2ports
363 (/*AUTOINST*/
364 // Outputs
365 .tx_nbclk_muxd0 (tx_nbclk_muxd0),
366 .tx_clk_muxd0 (tx_clk_muxd0),
367 .tx_clk_312mhz_muxd0 (tx_clk_312mhz_muxd0),
368 .rx_nbclk_muxd0 (rx_nbclk_muxd0),
369 .rx_clk_muxd0 (rx_clk_muxd0),
370 .rbc0_a_muxd0 (rbc0_a_muxd0),
371 .rbc0_b_muxd0 (rbc0_b_muxd0),
372 .rbc0_c_muxd0 (rbc0_c_muxd0),
373 .rbc0_d_muxd0 (rbc0_d_muxd0),
374 .tx_nbclk_muxd1 (tx_nbclk_muxd1),
375 .tx_clk_muxd1 (tx_clk_muxd1),
376 .tx_clk_312mhz_muxd1 (tx_clk_312mhz_muxd1),
377 .rx_nbclk_muxd1 (rx_nbclk_muxd1),
378 .rx_clk_muxd1 (rx_clk_muxd1),
379 .rbc0_a_muxd1 (rbc0_a_muxd1),
380 .rbc0_b_muxd1 (rbc0_b_muxd1),
381 .rbc0_c_muxd1 (rbc0_c_muxd1),
382 .rbc0_d_muxd1 (rbc0_d_muxd1),
383 // Inputs
384 .tcu_scan_mode (tcu_scan_mode),
385 .mac_312tx_test_clk (mac_312tx_test_clk),
386 .mac_312rx_test_clk (mac_312rx_test_clk),
387 .mac_156tx_test_clk (mac_156tx_test_clk),
388 .mac_156rx_test_clk (mac_156rx_test_clk),
389 .mac_125tx_test_clk (mac_125tx_test_clk),
390 .mac_125rx_test_clk (mac_125rx_test_clk),
391 .reset (reset),
392 .clk (clk),
393 .loopback0 (loopback0),
394 .sel_por_clk_src0 (sel_por_clk_src0),
395 .sel_clk_25mhz0 (sel_clk_25mhz0),
396 .mii_mode0 (mii_mode0),
397 .gmii_mode0 (gmii_mode0),
398 .xgmii_mode0 (xgmii_mode0),
399 .pcs_bypass0 (pcs_bypass0),
400 .xpcs_loopback0 (xpcs_loopback0),
401 .tx_heart_beat_timer0 (tx_heart_beat_timer0[3:0]),
402 .rx_heart_beat_timer0 (rx_heart_beat_timer0[3:0]),
403 .esr_mac_rclk_0 (esr_mac_rclk_0[3:0]),
404 .esr_mac_tclk_0 (esr_mac_tclk_0),
405 .loopback1 (loopback1),
406 .sel_por_clk_src1 (sel_por_clk_src1),
407 .sel_clk_25mhz1 (sel_clk_25mhz1),
408 .mii_mode1 (mii_mode1),
409 .gmii_mode1 (gmii_mode1),
410 .xgmii_mode1 (xgmii_mode1),
411 .pcs_bypass1 (pcs_bypass1),
412 .xpcs_loopback1 (xpcs_loopback1),
413 .tx_heart_beat_timer1 (tx_heart_beat_timer1[3:0]),
414 .rx_heart_beat_timer1 (rx_heart_beat_timer1[3:0]),
415 .esr_mac_rclk_1 (esr_mac_rclk_1[3:0]),
416 .esr_mac_tclk_1 (esr_mac_tclk_1));
417
418
419
420endmodule // mac_core
421
422
423
424
425