Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: spc_msf1_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 spc_msf1_dp ( | |
36 | l2clk, | |
37 | tcu_pce_ov, | |
38 | spc_aclk, | |
39 | spc_bclk, | |
40 | tcu_se_scancollar_out, | |
41 | scan_in, | |
42 | scan_out, | |
43 | tcu_spc_mbist_start, | |
44 | spc_mbist_fail_buf, | |
45 | spc_mbist_done_buf, | |
46 | tcu_spc_mbist_start_ff, | |
47 | spc_mbist_fail_ff, | |
48 | spc_mbist_done_ff); | |
49 | wire pce_ov; | |
50 | wire stop; | |
51 | wire siclk; | |
52 | wire soclk; | |
53 | wire en; | |
54 | wire clk; | |
55 | wire tcu_spc_mbist_start_rep0; | |
56 | wire bank0_lat_scanin; | |
57 | wire bank0_lat_scanout; | |
58 | ||
59 | ||
60 | input l2clk; | |
61 | input tcu_pce_ov; | |
62 | input spc_aclk; | |
63 | input spc_bclk; | |
64 | input tcu_se_scancollar_out; | |
65 | input scan_in; | |
66 | output scan_out; | |
67 | ||
68 | // Core I/O before the MSFF | |
69 | input tcu_spc_mbist_start; | |
70 | input spc_mbist_fail_buf; | |
71 | input spc_mbist_done_buf; | |
72 | ||
73 | // Core I/O after the MSFF | |
74 | output tcu_spc_mbist_start_ff; | |
75 | output spc_mbist_fail_ff; | |
76 | output spc_mbist_done_ff; | |
77 | ||
78 | ////////////////////////////////////////////////////////////////////// | |
79 | ||
80 | assign pce_ov = tcu_pce_ov; | |
81 | assign stop = 1'b0; | |
82 | assign siclk = spc_aclk; | |
83 | assign soclk = spc_bclk; | |
84 | assign en = 1'b1; | |
85 | assign clk = l2clk; | |
86 | ||
87 | ||
88 | ||
89 | ////////////////////////////////////////////////////////////////////// | |
90 | ||
91 | ||
92 | spc_msf1_dpbuff_macro__dbuff_32x__rep_1__stack_none__width_1 chip_io_rep0 ( | |
93 | .din(tcu_spc_mbist_start), | |
94 | .dout(tcu_spc_mbist_start_rep0) | |
95 | ); | |
96 | ||
97 | spc_msf1_dpmsff_macro__stack_8r__width_3 bank0_lat ( | |
98 | .scan_in(bank0_lat_scanin), | |
99 | .scan_out(bank0_lat_scanout), | |
100 | .se ( tcu_se_scancollar_out ), | |
101 | .din ({tcu_spc_mbist_start_rep0, spc_mbist_fail_buf, spc_mbist_done_buf}), | |
102 | .dout ({tcu_spc_mbist_start_ff, spc_mbist_fail_ff, spc_mbist_done_ff} ), | |
103 | .clk(clk), | |
104 | .en(en), | |
105 | .siclk(siclk), | |
106 | .soclk(soclk), | |
107 | .pce_ov(pce_ov), | |
108 | .stop(stop) | |
109 | ); | |
110 | ||
111 | ||
112 | // fixscan start: | |
113 | assign bank0_lat_scanin = scan_in ; | |
114 | assign scan_out = bank0_lat_scanout ; | |
115 | // fixscan end: | |
116 | endmodule | |
117 | ||
118 | ||
119 | // | |
120 | // buff macro | |
121 | // | |
122 | // | |
123 | ||
124 | ||
125 | ||
126 | ||
127 | ||
128 | module spc_msf1_dpbuff_macro__dbuff_32x__rep_1__stack_none__width_1 ( | |
129 | din, | |
130 | dout); | |
131 | input [0:0] din; | |
132 | output [0:0] dout; | |
133 | ||
134 | ||
135 | ||
136 | ||
137 | ||
138 | ||
139 | buff #(1) d0_0 ( | |
140 | .in(din[0:0]), | |
141 | .out(dout[0:0]) | |
142 | ); | |
143 | ||
144 | ||
145 | ||
146 | ||
147 | ||
148 | ||
149 | ||
150 | ||
151 | endmodule | |
152 | ||
153 | ||
154 | ||
155 | ||
156 | ||
157 | ||
158 | ||
159 | ||
160 | ||
161 | // any PARAMS parms go into naming of macro | |
162 | ||
163 | module spc_msf1_dpmsff_macro__stack_8r__width_3 ( | |
164 | din, | |
165 | clk, | |
166 | en, | |
167 | se, | |
168 | scan_in, | |
169 | siclk, | |
170 | soclk, | |
171 | pce_ov, | |
172 | stop, | |
173 | dout, | |
174 | scan_out); | |
175 | wire l1clk; | |
176 | wire siclk_out; | |
177 | wire soclk_out; | |
178 | wire [1:0] so; | |
179 | ||
180 | input [2:0] din; | |
181 | ||
182 | ||
183 | input clk; | |
184 | input en; | |
185 | input se; | |
186 | input scan_in; | |
187 | input siclk; | |
188 | input soclk; | |
189 | input pce_ov; | |
190 | input stop; | |
191 | ||
192 | ||
193 | ||
194 | output [2:0] dout; | |
195 | ||
196 | ||
197 | output scan_out; | |
198 | ||
199 | ||
200 | ||
201 | ||
202 | cl_dp1_l1hdr_8x c0_0 ( | |
203 | .l2clk(clk), | |
204 | .pce(en), | |
205 | .aclk(siclk), | |
206 | .bclk(soclk), | |
207 | .l1clk(l1clk), | |
208 | .se(se), | |
209 | .pce_ov(pce_ov), | |
210 | .stop(stop), | |
211 | .siclk_out(siclk_out), | |
212 | .soclk_out(soclk_out) | |
213 | ); | |
214 | dff #(3) d0_0 ( | |
215 | .l1clk(l1clk), | |
216 | .siclk(siclk_out), | |
217 | .soclk(soclk_out), | |
218 | .d(din[2:0]), | |
219 | .si({scan_in,so[1:0]}), | |
220 | .so({so[1:0],scan_out}), | |
221 | .q(dout[2:0]) | |
222 | ); | |
223 | ||
224 | ||
225 | ||
226 | ||
227 | ||
228 | ||
229 | ||
230 | ||
231 | ||
232 | ||
233 | ||
234 | ||
235 | ||
236 | ||
237 | ||
238 | ||
239 | ||
240 | ||
241 | ||
242 | ||
243 | endmodule | |
244 | ||
245 | ||
246 | ||
247 | ||
248 | ||
249 | ||
250 | ||
251 |