| 1 | // ========== Copyright Header Begin ========================================== |
| 2 | // |
| 3 | // OpenSPARC T2 Processor File: l2t_rdmarpt_dp.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 | module l2t_rdmarpt_dp ( |
| 36 | l2t_l2b_fbrd_en_c3, |
| 37 | l2t_l2b_fbrd_wl_c3, |
| 38 | l2t_l2b_fbwr_wl_r2, |
| 39 | filbuf_fbd_rd_en_c2, |
| 40 | filbuf_fbd_rd_entry_c2, |
| 41 | filbuf_fbd_wr_entry_r1, |
| 42 | l2clk, |
| 43 | tcu_pce_ov, |
| 44 | tcu_aclk, |
| 45 | tcu_bclk, |
| 46 | tcu_scan_en, |
| 47 | tcu_clk_stop, |
| 48 | scan_in, |
| 49 | scan_out); |
| 50 | wire pce_ov; |
| 51 | wire siclk; |
| 52 | wire soclk; |
| 53 | wire stop; |
| 54 | wire se; |
| 55 | |
| 56 | |
| 57 | output l2t_l2b_fbrd_en_c3; |
| 58 | output [2:0] l2t_l2b_fbrd_wl_c3; |
| 59 | output [2:0] l2t_l2b_fbwr_wl_r2; |
| 60 | |
| 61 | input filbuf_fbd_rd_en_c2; |
| 62 | input [2:0] filbuf_fbd_rd_entry_c2; |
| 63 | input [2:0] filbuf_fbd_wr_entry_r1; |
| 64 | input l2clk; |
| 65 | |
| 66 | input tcu_pce_ov; |
| 67 | input tcu_aclk; |
| 68 | input tcu_bclk; |
| 69 | input tcu_scan_en; |
| 70 | input tcu_clk_stop; |
| 71 | input scan_in; |
| 72 | output scan_out; |
| 73 | |
| 74 | assign pce_ov = tcu_pce_ov; |
| 75 | assign siclk = tcu_aclk; |
| 76 | assign soclk = tcu_bclk; |
| 77 | assign stop = tcu_clk_stop; |
| 78 | assign se = tcu_scan_en; |
| 79 | |
| 80 | |
| 81 | l2t_msff_macro__dmsff_32x__stack_8r__width_7 ff_rdma_rptr_flops |
| 82 | ( |
| 83 | .din ({filbuf_fbd_rd_en_c2,filbuf_fbd_rd_entry_c2[2:0],filbuf_fbd_wr_entry_r1[2:0]}), |
| 84 | .dout ({l2t_l2b_fbrd_en_c3,l2t_l2b_fbrd_wl_c3[2:0],l2t_l2b_fbwr_wl_r2[2:0]}), |
| 85 | .clk (l2clk), |
| 86 | .en (1'b1), |
| 87 | .scan_in(scan_in), |
| 88 | .scan_out(scan_out), |
| 89 | .se(se), |
| 90 | .siclk(siclk), |
| 91 | .soclk(soclk), |
| 92 | .pce_ov(pce_ov), |
| 93 | .stop(stop) |
| 94 | ); |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | endmodule |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | // any PARAMS parms go into naming of macro |
| 105 | |
| 106 | module l2t_msff_macro__dmsff_32x__stack_8r__width_7 ( |
| 107 | din, |
| 108 | clk, |
| 109 | en, |
| 110 | se, |
| 111 | scan_in, |
| 112 | siclk, |
| 113 | soclk, |
| 114 | pce_ov, |
| 115 | stop, |
| 116 | dout, |
| 117 | scan_out); |
| 118 | wire l1clk; |
| 119 | wire siclk_out; |
| 120 | wire soclk_out; |
| 121 | wire [5:0] so; |
| 122 | |
| 123 | input [6:0] din; |
| 124 | |
| 125 | |
| 126 | input clk; |
| 127 | input en; |
| 128 | input se; |
| 129 | input scan_in; |
| 130 | input siclk; |
| 131 | input soclk; |
| 132 | input pce_ov; |
| 133 | input stop; |
| 134 | |
| 135 | |
| 136 | |
| 137 | output [6:0] dout; |
| 138 | |
| 139 | |
| 140 | output scan_out; |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | cl_dp1_l1hdr_8x c0_0 ( |
| 146 | .l2clk(clk), |
| 147 | .pce(en), |
| 148 | .aclk(siclk), |
| 149 | .bclk(soclk), |
| 150 | .l1clk(l1clk), |
| 151 | .se(se), |
| 152 | .pce_ov(pce_ov), |
| 153 | .stop(stop), |
| 154 | .siclk_out(siclk_out), |
| 155 | .soclk_out(soclk_out) |
| 156 | ); |
| 157 | dff #(7) d0_0 ( |
| 158 | .l1clk(l1clk), |
| 159 | .siclk(siclk_out), |
| 160 | .soclk(soclk_out), |
| 161 | .d(din[6:0]), |
| 162 | .si({scan_in,so[5:0]}), |
| 163 | .so({so[5:0],scan_out}), |
| 164 | .q(dout[6:0]) |
| 165 | ); |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | endmodule |
| 187 | |
| 188 | |
| 189 | |