| 1 | // ========== Copyright Header Begin ========================================== |
| 2 | // |
| 3 | // OpenSPARC T2 Processor File: niu_txc_mac_ifc.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 | * |
| 37 | * niu_txc_mac_ifc.v |
| 38 | * |
| 39 | * MACs to NIU TXC Grouped Interface |
| 40 | * |
| 41 | * Orignal Author(s): Rahoul Puri |
| 42 | * Modifier(s): |
| 43 | * Project(s): Neptune |
| 44 | * |
| 45 | * Copyright (c) 2005 Sun Microsystems, Inc. |
| 46 | * |
| 47 | * All Rights Reserved. |
| 48 | * |
| 49 | * This verilog model is the confidential and proprietary property of |
| 50 | * Sun Microsystems, Inc., and the possession or use of this model |
| 51 | * requires a written license from Sun Microsystems, Inc. |
| 52 | * |
| 53 | **********************************************************************/ |
| 54 | |
| 55 | `include "timescale.v" |
| 56 | |
| 57 | module niu_txc_mac_ifc ( |
| 58 | SysClk, |
| 59 | Reset_L, |
| 60 | `ifdef NEPTUNE |
| 61 | Mac_Txc_Req3, |
| 62 | Mac_Req3, |
| 63 | Mac_Txc_Req2, |
| 64 | Mac_Req2, |
| 65 | `endif |
| 66 | Mac_Txc_Req1, |
| 67 | Mac_Req1, |
| 68 | Mac_Txc_Req0, |
| 69 | Mac_Req0 |
| 70 | ); |
| 71 | |
| 72 | `include "txc_defines.h" |
| 73 | |
| 74 | // Global Signals |
| 75 | input SysClk; |
| 76 | input Reset_L; |
| 77 | |
| 78 | // Mac Port 0 Req Signal Flop-In->Flop-Out |
| 79 | input Mac_Txc_Req0; |
| 80 | |
| 81 | output Mac_Req0; |
| 82 | |
| 83 | reg Mac_Req0; |
| 84 | |
| 85 | // Mac Port 1 Req Signal Flop-In->Flop-Out |
| 86 | input Mac_Txc_Req1; |
| 87 | |
| 88 | output Mac_Req1; |
| 89 | |
| 90 | reg Mac_Req1; |
| 91 | |
| 92 | `ifdef NEPTUNE |
| 93 | // Mac Port 2 Req Signal Flop-In->Flop-Out |
| 94 | input Mac_Txc_Req2; |
| 95 | |
| 96 | output Mac_Req2; |
| 97 | |
| 98 | reg Mac_Req2; |
| 99 | |
| 100 | // Mac Port 3 Req Signal Flop-In->Flop-Out |
| 101 | input Mac_Txc_Req3; |
| 102 | |
| 103 | output Mac_Req3; |
| 104 | |
| 105 | reg Mac_Req3; |
| 106 | `endif |
| 107 | |
| 108 | /*--------------------------------------------------------------*/ |
| 109 | // Wires & Registers |
| 110 | /*--------------------------------------------------------------*/ |
| 111 | |
| 112 | /*--------------------------------------------------------------*/ |
| 113 | // Assigns |
| 114 | /*--------------------------------------------------------------*/ |
| 115 | |
| 116 | /*--------------------------------------------------------------*/ |
| 117 | // Logic |
| 118 | /*--------------------------------------------------------------*/ |
| 119 | always @(posedge SysClk) |
| 120 | if (!Reset_L) Mac_Req0 <= #`SD 1'b0; |
| 121 | else Mac_Req0 <= #`SD Mac_Txc_Req0; |
| 122 | |
| 123 | always @(posedge SysClk) |
| 124 | if (!Reset_L) Mac_Req1 <= #`SD 1'b0; |
| 125 | else Mac_Req1 <= #`SD Mac_Txc_Req1; |
| 126 | |
| 127 | `ifdef NEPTUNE |
| 128 | always @(posedge SysClk) |
| 129 | if (!Reset_L) Mac_Req2 <= #`SD 1'b0; |
| 130 | else Mac_Req2 <= #`SD Mac_Txc_Req2; |
| 131 | |
| 132 | always @(posedge SysClk) |
| 133 | if (!Reset_L) Mac_Req3 <= #`SD 1'b0; |
| 134 | else Mac_Req3 <= #`SD Mac_Txc_Req3; |
| 135 | `endif |
| 136 | |
| 137 | |
| 138 | endmodule |