| 1 | // ========== Copyright Header Begin ========================================== |
| 2 | // |
| 3 | // OpenSPARC T2 Processor File: ncu_stub.if.vrhpal |
| 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 | #define OUTPUT_EDGE PHOLD |
| 36 | #define INPUT_EDGE PSAMPLE #-1 |
| 37 | #define OUTPUT_SKEW #1 |
| 38 | |
| 39 | #include "neptune_defines.vri" |
| 40 | #define NCU_PIO_PATH NIU_DUV_PATH.rdp |
| 41 | |
| 42 | #ifndef INC_NCU_STUB_IF_VRH |
| 43 | #define INC_NCU_STUB_IF_VRH |
| 44 | |
| 45 | |
| 46 | interface ncu_stub { |
| 47 | |
| 48 | #ifdef NIU_GATE |
| 49 | input clk CLOCK verilog_node NCU_PIO_PATH.iol2clk"; |
| 50 | #else |
| 51 | #ifdef NIU_SYSTEMC_T2 |
| 52 | input clk CLOCK verilog_node NIU_DUV_PATH.rdp_niu_pio_ucb_niu_clk"; |
| 53 | #else |
| 54 | input clk CLOCK verilog_node NCU_PIO_PATH.niu_pio_ucb.niu_clk"; |
| 55 | #endif |
| 56 | #endif |
| 57 | |
| 58 | #ifdef NEPTUNE |
| 59 | output [31:0] ncu_niu_data OUTPUT_EDGE OUTPUT_SKEW verilog_node TOP.ncu_niu_data"; |
| 60 | output ncu_niu_vld OUTPUT_EDGE OUTPUT_SKEW verilog_node TOP.ncu_niu_vld"; |
| 61 | input niu_ncu_stall INPUT_EDGE verilog_node TOP.niu_ncu_stall"; |
| 62 | |
| 63 | |
| 64 | // NIU to NCU |
| 65 | output ncu_niu_stall OUTPUT_EDGE OUTPUT_SKEW verilog_node TOP.ncu_niu_stall"; |
| 66 | input [31:0] niu_ncu_data INPUT_EDGE verilog_node TOP.niu_ncu_data"; |
| 67 | input niu_ncu_vld INPUT_EDGE verilog_node TOP.niu_ncu_vld"; |
| 68 | #else |
| 69 | #ifdef NIU_SYSTEMC_T2 |
| 70 | output [31:0] ncu_niu_data OUTPUT_EDGE OUTPUT_SKEW verilog_node NIU_DUV_PATH.dummy"; |
| 71 | output ncu_niu_vld OUTPUT_EDGE OUTPUT_SKEW verilog_node NIU_DUV_PATH.dummy[0]"; |
| 72 | input niu_ncu_stall INPUT_EDGE verilog_node NIU_DUV_PATH.dummy[1]"; |
| 73 | output ncu_niu_stall OUTPUT_EDGE OUTPUT_SKEW verilog_node NIU_DUV_PATH.dummy[2]"; |
| 74 | input [31:0] niu_ncu_data INPUT_EDGE verilog_node NIU_DUV_PATH.niu_ncu_data"; |
| 75 | input niu_ncu_vld INPUT_EDGE verilog_node NIU_DUV_PATH.niu_ncu_vld"; |
| 76 | #else |
| 77 | // NCU to NIU |
| 78 | output [31:0] ncu_niu_data OUTPUT_EDGE OUTPUT_SKEW verilog_node NCU_PIO_PATH.ncu_niu_data"; |
| 79 | output ncu_niu_vld OUTPUT_EDGE OUTPUT_SKEW verilog_node NCU_PIO_PATH.ncu_niu_vld"; |
| 80 | input niu_ncu_stall INPUT_EDGE verilog_node NCU_PIO_PATH.niu_ncu_stall"; |
| 81 | |
| 82 | |
| 83 | // NIU to NCU |
| 84 | output ncu_niu_stall OUTPUT_EDGE OUTPUT_SKEW verilog_node NCU_PIO_PATH.ncu_niu_stall"; |
| 85 | input [31:0] niu_ncu_data INPUT_EDGE verilog_node NCU_PIO_PATH.niu_ncu_data"; |
| 86 | input niu_ncu_vld INPUT_EDGE verilog_node NCU_PIO_PATH.niu_ncu_vld"; |
| 87 | #endif |
| 88 | #endif |
| 89 | } // end of interface ncu_stub |
| 90 | |
| 91 | #endif |
| 92 | |
| 93 | // ports and port binds -- to move to a different file |
| 94 | |
| 95 | port ncu_port { |
| 96 | |
| 97 | clk; |
| 98 | ncu_niu_data; |
| 99 | ncu_niu_vld; |
| 100 | niu_ncu_stall; |
| 101 | |
| 102 | ncu_niu_stall; |
| 103 | niu_ncu_data; |
| 104 | niu_ncu_vld; |
| 105 | |
| 106 | } |
| 107 | |
| 108 | bind ncu_port ncu_bind { |
| 109 | |
| 110 | clk ncu_stub.clk; |
| 111 | |
| 112 | |
| 113 | ncu_niu_data ncu_stub.ncu_niu_data; |
| 114 | ncu_niu_vld ncu_stub.ncu_niu_vld; |
| 115 | niu_ncu_stall ncu_stub.niu_ncu_stall; |
| 116 | |
| 117 | ncu_niu_stall ncu_stub.ncu_niu_stall; |
| 118 | niu_ncu_data ncu_stub.niu_ncu_data; |
| 119 | niu_ncu_vld ncu_stub.niu_ncu_vld; |
| 120 | |
| 121 | |
| 122 | } |