Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: tlu_mbd_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 tlu_mbd_dp ( | |
36 | asi_mbd_compare_data, | |
37 | asi_mbd_sel_tsd0, | |
38 | asi_mbd_sel_tsd1, | |
39 | asi_mbd_sel_tic, | |
40 | tic_mbist_data, | |
41 | tsd0_mbist_data, | |
42 | tsd1_mbist_data, | |
43 | tlu_pc_0_prebuf_d, | |
44 | mbd_compare, | |
45 | tlu_pc_0_d); | |
46 | wire [31:0] read_data; | |
47 | ||
48 | ||
49 | ||
50 | input [7:0] asi_mbd_compare_data; | |
51 | input asi_mbd_sel_tsd0; | |
52 | input asi_mbd_sel_tsd1; | |
53 | input asi_mbd_sel_tic; | |
54 | ||
55 | input [31:0] tic_mbist_data; | |
56 | ||
57 | input [31:0] tsd0_mbist_data; | |
58 | input [31:0] tsd1_mbist_data; | |
59 | ||
60 | input [47:2] tlu_pc_0_prebuf_d; | |
61 | ||
62 | ||
63 | ||
64 | output mbd_compare; | |
65 | ||
66 | output [47:2] tlu_pc_0_d; | |
67 | ||
68 | ||
69 | ||
70 | ////////////////////////////////////////////////////////////////////// | |
71 | ||
72 | ||
73 | ||
74 | tlu_mbd_dp_mux_macro__mux_aonpe__ports_3__stack_32r__width_32 read_data_mux ( | |
75 | .din0 (tsd0_mbist_data [31:0] ), | |
76 | .din1 (tsd1_mbist_data [31:0] ), | |
77 | .din2 (tic_mbist_data [31:0] ), | |
78 | .sel0 (asi_mbd_sel_tsd0 ), | |
79 | .sel1 (asi_mbd_sel_tsd1 ), | |
80 | .sel2 (asi_mbd_sel_tic ), | |
81 | .dout (read_data [31:0] ) | |
82 | ); | |
83 | ||
84 | tlu_mbd_dp_cmp_macro__width_32 mbist_cmp ( | |
85 | .din0 (read_data [31:0] ), | |
86 | .din1 ({4 {asi_mbd_compare_data [7:0]}}), | |
87 | .dout (mbd_compare ) | |
88 | ||
89 | ); | |
90 | ||
91 | tlu_mbd_dp_buff_macro__dbuff_40x__rep_1__stack_none__width_46 pc_0_d_buf ( | |
92 | .din (tlu_pc_0_prebuf_d [47:2] ), | |
93 | .dout (tlu_pc_0_d [47:2] ) | |
94 | ||
95 | ); | |
96 | ||
97 | ||
98 | ||
99 | ||
100 | ||
101 | endmodule | |
102 | ||
103 | ||
104 | ||
105 | ||
106 | // general mux macro for pass-gate and and-or muxes with/wout priority encoders | |
107 | // also for pass-gate with decoder | |
108 | ||
109 | ||
110 | ||
111 | ||
112 | ||
113 | // any PARAMS parms go into naming of macro | |
114 | ||
115 | module tlu_mbd_dp_mux_macro__mux_aonpe__ports_3__stack_32r__width_32 ( | |
116 | din0, | |
117 | sel0, | |
118 | din1, | |
119 | sel1, | |
120 | din2, | |
121 | sel2, | |
122 | dout); | |
123 | wire buffout0; | |
124 | wire buffout1; | |
125 | wire buffout2; | |
126 | ||
127 | input [31:0] din0; | |
128 | input sel0; | |
129 | input [31:0] din1; | |
130 | input sel1; | |
131 | input [31:0] din2; | |
132 | input sel2; | |
133 | output [31:0] dout; | |
134 | ||
135 | ||
136 | ||
137 | ||
138 | ||
139 | cl_dp1_muxbuff3_8x c0_0 ( | |
140 | .in0(sel0), | |
141 | .in1(sel1), | |
142 | .in2(sel2), | |
143 | .out0(buffout0), | |
144 | .out1(buffout1), | |
145 | .out2(buffout2) | |
146 | ); | |
147 | mux3s #(32) d0_0 ( | |
148 | .sel0(buffout0), | |
149 | .sel1(buffout1), | |
150 | .sel2(buffout2), | |
151 | .in0(din0[31:0]), | |
152 | .in1(din1[31:0]), | |
153 | .in2(din2[31:0]), | |
154 | .dout(dout[31:0]) | |
155 | ); | |
156 | ||
157 | ||
158 | ||
159 | ||
160 | ||
161 | ||
162 | ||
163 | ||
164 | ||
165 | ||
166 | ||
167 | ||
168 | ||
169 | endmodule | |
170 | ||
171 | ||
172 | // | |
173 | // comparator macro (output is 1 if both inputs are equal; 0 otherwise) | |
174 | // | |
175 | // | |
176 | ||
177 | ||
178 | ||
179 | ||
180 | ||
181 | module tlu_mbd_dp_cmp_macro__width_32 ( | |
182 | din0, | |
183 | din1, | |
184 | dout); | |
185 | input [31:0] din0; | |
186 | input [31:0] din1; | |
187 | output dout; | |
188 | ||
189 | ||
190 | ||
191 | ||
192 | ||
193 | ||
194 | cmp #(32) m0_0 ( | |
195 | .in0(din0[31:0]), | |
196 | .in1(din1[31:0]), | |
197 | .out(dout) | |
198 | ); | |
199 | ||
200 | ||
201 | ||
202 | ||
203 | ||
204 | ||
205 | ||
206 | ||
207 | ||
208 | ||
209 | endmodule | |
210 | ||
211 | ||
212 | ||
213 | ||
214 | ||
215 | // | |
216 | // buff macro | |
217 | // | |
218 | // | |
219 | ||
220 | ||
221 | ||
222 | ||
223 | ||
224 | module tlu_mbd_dp_buff_macro__dbuff_40x__rep_1__stack_none__width_46 ( | |
225 | din, | |
226 | dout); | |
227 | input [45:0] din; | |
228 | output [45:0] dout; | |
229 | ||
230 | ||
231 | ||
232 | ||
233 | ||
234 | ||
235 | buff #(46) d0_0 ( | |
236 | .in(din[45:0]), | |
237 | .out(dout[45:0]) | |
238 | ); | |
239 | ||
240 | ||
241 | ||
242 | ||
243 | ||
244 | ||
245 | ||
246 | ||
247 | endmodule | |
248 | ||
249 | ||
250 | ||
251 |