Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: mcu_latq_ctl.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 mcu_latq_ctl ( | |
36 | latq_dout, | |
37 | latq_full, | |
38 | latq_empty, | |
39 | latq_enq, | |
40 | latq_deq, | |
41 | latq_din, | |
42 | l1clk, | |
43 | scan_in, | |
44 | scan_out, | |
45 | tcu_aclk, | |
46 | tcu_bclk, | |
47 | tcu_scan_en); | |
48 | wire siclk; | |
49 | wire soclk; | |
50 | wire se; | |
51 | wire [5:0] wptr_in; | |
52 | wire [5:0] wptr; | |
53 | wire ff_wptr_scanin; | |
54 | wire ff_wptr_scanout; | |
55 | wire [5:0] rptr_in; | |
56 | wire [5:0] rptr; | |
57 | wire ff_rptr_scanin; | |
58 | wire ff_rptr_scanout; | |
59 | wire ent0_en; | |
60 | wire ff_ent0_scanin; | |
61 | wire ff_ent0_scanout; | |
62 | wire [11:0] ent0; | |
63 | wire ent1_en; | |
64 | wire ff_ent1_scanin; | |
65 | wire ff_ent1_scanout; | |
66 | wire [11:0] ent1; | |
67 | wire ent2_en; | |
68 | wire ff_ent2_scanin; | |
69 | wire ff_ent2_scanout; | |
70 | wire [11:0] ent2; | |
71 | wire ent3_en; | |
72 | wire ff_ent3_scanin; | |
73 | wire ff_ent3_scanout; | |
74 | wire [11:0] ent3; | |
75 | wire ent4_en; | |
76 | wire ff_ent4_scanin; | |
77 | wire ff_ent4_scanout; | |
78 | wire [11:0] ent4; | |
79 | wire ent5_en; | |
80 | wire ff_ent5_scanin; | |
81 | wire ff_ent5_scanout; | |
82 | wire [11:0] ent5; | |
83 | wire ent6_en; | |
84 | wire ff_ent6_scanin; | |
85 | wire ff_ent6_scanout; | |
86 | wire [11:0] ent6; | |
87 | wire ent7_en; | |
88 | wire ff_ent7_scanin; | |
89 | wire ff_ent7_scanout; | |
90 | wire [11:0] ent7; | |
91 | wire ent8_en; | |
92 | wire ff_ent8_scanin; | |
93 | wire ff_ent8_scanout; | |
94 | wire [11:0] ent8; | |
95 | wire ent9_en; | |
96 | wire ff_ent9_scanin; | |
97 | wire ff_ent9_scanout; | |
98 | wire [11:0] ent9; | |
99 | wire ent10_en; | |
100 | wire ff_ent10_scanin; | |
101 | wire ff_ent10_scanout; | |
102 | wire [11:0] ent10; | |
103 | wire ent11_en; | |
104 | wire ff_ent11_scanin; | |
105 | wire ff_ent11_scanout; | |
106 | wire [11:0] ent11; | |
107 | wire ent12_en; | |
108 | wire ff_ent12_scanin; | |
109 | wire ff_ent12_scanout; | |
110 | wire [11:0] ent12; | |
111 | wire ent13_en; | |
112 | wire ff_ent13_scanin; | |
113 | wire ff_ent13_scanout; | |
114 | wire [11:0] ent13; | |
115 | wire ent14_en; | |
116 | wire ff_ent14_scanin; | |
117 | wire ff_ent14_scanout; | |
118 | wire [11:0] ent14; | |
119 | wire ent15_en; | |
120 | wire ff_ent15_scanin; | |
121 | wire ff_ent15_scanout; | |
122 | wire [11:0] ent15; | |
123 | wire ent16_en; | |
124 | wire ff_ent16_scanin; | |
125 | wire ff_ent16_scanout; | |
126 | wire [11:0] ent16; | |
127 | wire ent17_en; | |
128 | wire ff_ent17_scanin; | |
129 | wire ff_ent17_scanout; | |
130 | wire [11:0] ent17; | |
131 | wire ent18_en; | |
132 | wire ff_ent18_scanin; | |
133 | wire ff_ent18_scanout; | |
134 | wire [11:0] ent18; | |
135 | wire ent19_en; | |
136 | wire ff_ent19_scanin; | |
137 | wire ff_ent19_scanout; | |
138 | wire [11:0] ent19; | |
139 | wire ent20_en; | |
140 | wire ff_ent20_scanin; | |
141 | wire ff_ent20_scanout; | |
142 | wire [11:0] ent20; | |
143 | wire ent21_en; | |
144 | wire ff_ent21_scanin; | |
145 | wire ff_ent21_scanout; | |
146 | wire [11:0] ent21; | |
147 | wire ent22_en; | |
148 | wire ff_ent22_scanin; | |
149 | wire ff_ent22_scanout; | |
150 | wire [11:0] ent22; | |
151 | wire ent23_en; | |
152 | wire ff_ent23_scanin; | |
153 | wire ff_ent23_scanout; | |
154 | wire [11:0] ent23; | |
155 | wire ent24_en; | |
156 | wire ff_ent24_scanin; | |
157 | wire ff_ent24_scanout; | |
158 | wire [11:0] ent24; | |
159 | wire ent25_en; | |
160 | wire ff_ent25_scanin; | |
161 | wire ff_ent25_scanout; | |
162 | wire [11:0] ent25; | |
163 | wire ent26_en; | |
164 | wire ff_ent26_scanin; | |
165 | wire ff_ent26_scanout; | |
166 | wire [11:0] ent26; | |
167 | wire ent27_en; | |
168 | wire ff_ent27_scanin; | |
169 | wire ff_ent27_scanout; | |
170 | wire [11:0] ent27; | |
171 | wire ent28_en; | |
172 | wire ff_ent28_scanin; | |
173 | wire ff_ent28_scanout; | |
174 | wire [11:0] ent28; | |
175 | wire ent29_en; | |
176 | wire ff_ent29_scanin; | |
177 | wire ff_ent29_scanout; | |
178 | wire [11:0] ent29; | |
179 | wire ent30_en; | |
180 | wire ff_ent30_scanin; | |
181 | wire ff_ent30_scanout; | |
182 | wire [11:0] ent30; | |
183 | wire ent31_en; | |
184 | wire ff_ent31_scanin; | |
185 | wire ff_ent31_scanout; | |
186 | wire [11:0] ent31; | |
187 | ||
188 | ||
189 | output [11:0] latq_dout; | |
190 | output latq_full; | |
191 | output latq_empty; | |
192 | ||
193 | input latq_enq; | |
194 | input latq_deq; | |
195 | input [11:0] latq_din; | |
196 | ||
197 | input l1clk; | |
198 | input scan_in; | |
199 | output scan_out; | |
200 | input tcu_aclk; | |
201 | input tcu_bclk; | |
202 | input tcu_scan_en; | |
203 | ||
204 | // Code | |
205 | assign siclk = tcu_aclk; | |
206 | assign soclk = tcu_bclk; | |
207 | assign se = tcu_scan_en; | |
208 | ||
209 | // 0in fifo -enq latq_enq -deq latq_deq -depth 32 -enq_data latq_din[11:0] -deq_data latq_dout[11:0] | |
210 | ||
211 | assign wptr_in[5:0] = wptr[5:0] + 6'h1; | |
212 | mcu_latq_ctl_msff_ctl_macro__en_1__width_6 ff_wptr ( | |
213 | .scan_in(ff_wptr_scanin), | |
214 | .scan_out(ff_wptr_scanout), | |
215 | .din(wptr_in[5:0]), | |
216 | .dout(wptr[5:0]), | |
217 | .en(latq_enq), | |
218 | .l1clk(l1clk), | |
219 | .siclk(siclk), | |
220 | .soclk(soclk)); | |
221 | ||
222 | assign rptr_in[5:0] = rptr[5:0] + 6'h1; | |
223 | mcu_latq_ctl_msff_ctl_macro__en_1__width_6 ff_rptr ( | |
224 | .scan_in(ff_rptr_scanin), | |
225 | .scan_out(ff_rptr_scanout), | |
226 | .din(rptr_in[5:0]), | |
227 | .dout(rptr[5:0]), | |
228 | .en(latq_deq), | |
229 | .l1clk(l1clk), | |
230 | .siclk(siclk), | |
231 | .soclk(soclk)); | |
232 | ||
233 | assign latq_full = rptr[5:0] == {~wptr[5],wptr[4:0]}; | |
234 | assign latq_empty = rptr[5:0] == wptr[5:0]; | |
235 | ||
236 | assign ent0_en = (wptr[4:0] == 5'd0) & latq_enq; | |
237 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent0 ( | |
238 | .scan_in(ff_ent0_scanin), | |
239 | .scan_out(ff_ent0_scanout), | |
240 | .din(latq_din[11:0]), | |
241 | .dout(ent0[11:0]), | |
242 | .en(ent0_en), | |
243 | .l1clk(l1clk), | |
244 | .siclk(siclk), | |
245 | .soclk(soclk)); | |
246 | ||
247 | assign ent1_en = (wptr[4:0] == 5'd1) & latq_enq; | |
248 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent1 ( | |
249 | .scan_in(ff_ent1_scanin), | |
250 | .scan_out(ff_ent1_scanout), | |
251 | .din(latq_din[11:0]), | |
252 | .dout(ent1[11:0]), | |
253 | .en(ent1_en), | |
254 | .l1clk(l1clk), | |
255 | .siclk(siclk), | |
256 | .soclk(soclk)); | |
257 | ||
258 | assign ent2_en = (wptr[4:0] == 5'd2) & latq_enq; | |
259 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent2 ( | |
260 | .scan_in(ff_ent2_scanin), | |
261 | .scan_out(ff_ent2_scanout), | |
262 | .din(latq_din[11:0]), | |
263 | .dout(ent2[11:0]), | |
264 | .en(ent2_en), | |
265 | .l1clk(l1clk), | |
266 | .siclk(siclk), | |
267 | .soclk(soclk)); | |
268 | ||
269 | assign ent3_en = (wptr[4:0] == 5'd3) & latq_enq; | |
270 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent3 ( | |
271 | .scan_in(ff_ent3_scanin), | |
272 | .scan_out(ff_ent3_scanout), | |
273 | .din(latq_din[11:0]), | |
274 | .dout(ent3[11:0]), | |
275 | .en(ent3_en), | |
276 | .l1clk(l1clk), | |
277 | .siclk(siclk), | |
278 | .soclk(soclk)); | |
279 | ||
280 | assign ent4_en = (wptr[4:0] == 5'd4) & latq_enq; | |
281 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent4 ( | |
282 | .scan_in(ff_ent4_scanin), | |
283 | .scan_out(ff_ent4_scanout), | |
284 | .din(latq_din[11:0]), | |
285 | .dout(ent4[11:0]), | |
286 | .en(ent4_en), | |
287 | .l1clk(l1clk), | |
288 | .siclk(siclk), | |
289 | .soclk(soclk)); | |
290 | ||
291 | assign ent5_en = (wptr[4:0] == 5'd5) & latq_enq; | |
292 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent5 ( | |
293 | .scan_in(ff_ent5_scanin), | |
294 | .scan_out(ff_ent5_scanout), | |
295 | .din(latq_din[11:0]), | |
296 | .dout(ent5[11:0]), | |
297 | .en(ent5_en), | |
298 | .l1clk(l1clk), | |
299 | .siclk(siclk), | |
300 | .soclk(soclk)); | |
301 | ||
302 | assign ent6_en = (wptr[4:0] == 5'd6) & latq_enq; | |
303 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent6 ( | |
304 | .scan_in(ff_ent6_scanin), | |
305 | .scan_out(ff_ent6_scanout), | |
306 | .din(latq_din[11:0]), | |
307 | .dout(ent6[11:0]), | |
308 | .en(ent6_en), | |
309 | .l1clk(l1clk), | |
310 | .siclk(siclk), | |
311 | .soclk(soclk)); | |
312 | ||
313 | assign ent7_en = (wptr[4:0] == 5'd7) & latq_enq; | |
314 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent7 ( | |
315 | .scan_in(ff_ent7_scanin), | |
316 | .scan_out(ff_ent7_scanout), | |
317 | .din(latq_din[11:0]), | |
318 | .dout(ent7[11:0]), | |
319 | .en(ent7_en), | |
320 | .l1clk(l1clk), | |
321 | .siclk(siclk), | |
322 | .soclk(soclk)); | |
323 | ||
324 | assign ent8_en = (wptr[4:0] == 5'd8) & latq_enq; | |
325 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent8 ( | |
326 | .scan_in(ff_ent8_scanin), | |
327 | .scan_out(ff_ent8_scanout), | |
328 | .din(latq_din[11:0]), | |
329 | .dout(ent8[11:0]), | |
330 | .en(ent8_en), | |
331 | .l1clk(l1clk), | |
332 | .siclk(siclk), | |
333 | .soclk(soclk)); | |
334 | ||
335 | assign ent9_en = (wptr[4:0] == 5'd9) & latq_enq; | |
336 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent9 ( | |
337 | .scan_in(ff_ent9_scanin), | |
338 | .scan_out(ff_ent9_scanout), | |
339 | .din(latq_din[11:0]), | |
340 | .dout(ent9[11:0]), | |
341 | .en(ent9_en), | |
342 | .l1clk(l1clk), | |
343 | .siclk(siclk), | |
344 | .soclk(soclk)); | |
345 | ||
346 | assign ent10_en = (wptr[4:0] == 5'd10) & latq_enq; | |
347 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent10 ( | |
348 | .scan_in(ff_ent10_scanin), | |
349 | .scan_out(ff_ent10_scanout), | |
350 | .din(latq_din[11:0]), | |
351 | .dout(ent10[11:0]), | |
352 | .en(ent10_en), | |
353 | .l1clk(l1clk), | |
354 | .siclk(siclk), | |
355 | .soclk(soclk)); | |
356 | ||
357 | assign ent11_en = (wptr[4:0] == 5'd11) & latq_enq; | |
358 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent11 ( | |
359 | .scan_in(ff_ent11_scanin), | |
360 | .scan_out(ff_ent11_scanout), | |
361 | .din(latq_din[11:0]), | |
362 | .dout(ent11[11:0]), | |
363 | .en(ent11_en), | |
364 | .l1clk(l1clk), | |
365 | .siclk(siclk), | |
366 | .soclk(soclk)); | |
367 | ||
368 | assign ent12_en = (wptr[4:0] == 5'd12) & latq_enq; | |
369 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent12 ( | |
370 | .scan_in(ff_ent12_scanin), | |
371 | .scan_out(ff_ent12_scanout), | |
372 | .din(latq_din[11:0]), | |
373 | .dout(ent12[11:0]), | |
374 | .en(ent12_en), | |
375 | .l1clk(l1clk), | |
376 | .siclk(siclk), | |
377 | .soclk(soclk)); | |
378 | ||
379 | assign ent13_en = (wptr[4:0] == 5'd13) & latq_enq; | |
380 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent13 ( | |
381 | .scan_in(ff_ent13_scanin), | |
382 | .scan_out(ff_ent13_scanout), | |
383 | .din(latq_din[11:0]), | |
384 | .dout(ent13[11:0]), | |
385 | .en(ent13_en), | |
386 | .l1clk(l1clk), | |
387 | .siclk(siclk), | |
388 | .soclk(soclk)); | |
389 | ||
390 | assign ent14_en = (wptr[4:0] == 5'd14) & latq_enq; | |
391 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent14 ( | |
392 | .scan_in(ff_ent14_scanin), | |
393 | .scan_out(ff_ent14_scanout), | |
394 | .din(latq_din[11:0]), | |
395 | .dout(ent14[11:0]), | |
396 | .en(ent14_en), | |
397 | .l1clk(l1clk), | |
398 | .siclk(siclk), | |
399 | .soclk(soclk)); | |
400 | ||
401 | assign ent15_en = (wptr[4:0] == 5'd15) & latq_enq; | |
402 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent15 ( | |
403 | .scan_in(ff_ent15_scanin), | |
404 | .scan_out(ff_ent15_scanout), | |
405 | .din(latq_din[11:0]), | |
406 | .dout(ent15[11:0]), | |
407 | .en(ent15_en), | |
408 | .l1clk(l1clk), | |
409 | .siclk(siclk), | |
410 | .soclk(soclk)); | |
411 | ||
412 | assign ent16_en = (wptr[4:0] == 5'd16) & latq_enq; | |
413 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent16 ( | |
414 | .scan_in(ff_ent16_scanin), | |
415 | .scan_out(ff_ent16_scanout), | |
416 | .din(latq_din[11:0]), | |
417 | .dout(ent16[11:0]), | |
418 | .en(ent16_en), | |
419 | .l1clk(l1clk), | |
420 | .siclk(siclk), | |
421 | .soclk(soclk)); | |
422 | ||
423 | assign ent17_en = (wptr[4:0] == 5'd17) & latq_enq; | |
424 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent17 ( | |
425 | .scan_in(ff_ent17_scanin), | |
426 | .scan_out(ff_ent17_scanout), | |
427 | .din(latq_din[11:0]), | |
428 | .dout(ent17[11:0]), | |
429 | .en(ent17_en), | |
430 | .l1clk(l1clk), | |
431 | .siclk(siclk), | |
432 | .soclk(soclk)); | |
433 | ||
434 | assign ent18_en = (wptr[4:0] == 5'd18) & latq_enq; | |
435 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent18 ( | |
436 | .scan_in(ff_ent18_scanin), | |
437 | .scan_out(ff_ent18_scanout), | |
438 | .din(latq_din[11:0]), | |
439 | .dout(ent18[11:0]), | |
440 | .en(ent18_en), | |
441 | .l1clk(l1clk), | |
442 | .siclk(siclk), | |
443 | .soclk(soclk)); | |
444 | ||
445 | assign ent19_en = (wptr[4:0] == 5'd19) & latq_enq; | |
446 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent19 ( | |
447 | .scan_in(ff_ent19_scanin), | |
448 | .scan_out(ff_ent19_scanout), | |
449 | .din(latq_din[11:0]), | |
450 | .dout(ent19[11:0]), | |
451 | .en(ent19_en), | |
452 | .l1clk(l1clk), | |
453 | .siclk(siclk), | |
454 | .soclk(soclk)); | |
455 | ||
456 | assign ent20_en = (wptr[4:0] == 5'd20) & latq_enq; | |
457 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent20 ( | |
458 | .scan_in(ff_ent20_scanin), | |
459 | .scan_out(ff_ent20_scanout), | |
460 | .din(latq_din[11:0]), | |
461 | .dout(ent20[11:0]), | |
462 | .en(ent20_en), | |
463 | .l1clk(l1clk), | |
464 | .siclk(siclk), | |
465 | .soclk(soclk)); | |
466 | ||
467 | assign ent21_en = (wptr[4:0] == 5'd21) & latq_enq; | |
468 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent21 ( | |
469 | .scan_in(ff_ent21_scanin), | |
470 | .scan_out(ff_ent21_scanout), | |
471 | .din(latq_din[11:0]), | |
472 | .dout(ent21[11:0]), | |
473 | .en(ent21_en), | |
474 | .l1clk(l1clk), | |
475 | .siclk(siclk), | |
476 | .soclk(soclk)); | |
477 | ||
478 | assign ent22_en = (wptr[4:0] == 5'd22) & latq_enq; | |
479 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent22 ( | |
480 | .scan_in(ff_ent22_scanin), | |
481 | .scan_out(ff_ent22_scanout), | |
482 | .din(latq_din[11:0]), | |
483 | .dout(ent22[11:0]), | |
484 | .en(ent22_en), | |
485 | .l1clk(l1clk), | |
486 | .siclk(siclk), | |
487 | .soclk(soclk)); | |
488 | ||
489 | assign ent23_en = (wptr[4:0] == 5'd23) & latq_enq; | |
490 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent23 ( | |
491 | .scan_in(ff_ent23_scanin), | |
492 | .scan_out(ff_ent23_scanout), | |
493 | .din(latq_din[11:0]), | |
494 | .dout(ent23[11:0]), | |
495 | .en(ent23_en), | |
496 | .l1clk(l1clk), | |
497 | .siclk(siclk), | |
498 | .soclk(soclk)); | |
499 | ||
500 | assign ent24_en = (wptr[4:0] == 5'd24) & latq_enq; | |
501 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent24 ( | |
502 | .scan_in(ff_ent24_scanin), | |
503 | .scan_out(ff_ent24_scanout), | |
504 | .din(latq_din[11:0]), | |
505 | .dout(ent24[11:0]), | |
506 | .en(ent24_en), | |
507 | .l1clk(l1clk), | |
508 | .siclk(siclk), | |
509 | .soclk(soclk)); | |
510 | ||
511 | assign ent25_en = (wptr[4:0] == 5'd25) & latq_enq; | |
512 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent25 ( | |
513 | .scan_in(ff_ent25_scanin), | |
514 | .scan_out(ff_ent25_scanout), | |
515 | .din(latq_din[11:0]), | |
516 | .dout(ent25[11:0]), | |
517 | .en(ent25_en), | |
518 | .l1clk(l1clk), | |
519 | .siclk(siclk), | |
520 | .soclk(soclk)); | |
521 | ||
522 | assign ent26_en = (wptr[4:0] == 5'd26) & latq_enq; | |
523 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent26 ( | |
524 | .scan_in(ff_ent26_scanin), | |
525 | .scan_out(ff_ent26_scanout), | |
526 | .din(latq_din[11:0]), | |
527 | .dout(ent26[11:0]), | |
528 | .en(ent26_en), | |
529 | .l1clk(l1clk), | |
530 | .siclk(siclk), | |
531 | .soclk(soclk)); | |
532 | ||
533 | assign ent27_en = (wptr[4:0] == 5'd27) & latq_enq; | |
534 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent27 ( | |
535 | .scan_in(ff_ent27_scanin), | |
536 | .scan_out(ff_ent27_scanout), | |
537 | .din(latq_din[11:0]), | |
538 | .dout(ent27[11:0]), | |
539 | .en(ent27_en), | |
540 | .l1clk(l1clk), | |
541 | .siclk(siclk), | |
542 | .soclk(soclk)); | |
543 | ||
544 | assign ent28_en = (wptr[4:0] == 5'd28) & latq_enq; | |
545 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent28 ( | |
546 | .scan_in(ff_ent28_scanin), | |
547 | .scan_out(ff_ent28_scanout), | |
548 | .din(latq_din[11:0]), | |
549 | .dout(ent28[11:0]), | |
550 | .en(ent28_en), | |
551 | .l1clk(l1clk), | |
552 | .siclk(siclk), | |
553 | .soclk(soclk)); | |
554 | ||
555 | assign ent29_en = (wptr[4:0] == 5'd29) & latq_enq; | |
556 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent29 ( | |
557 | .scan_in(ff_ent29_scanin), | |
558 | .scan_out(ff_ent29_scanout), | |
559 | .din(latq_din[11:0]), | |
560 | .dout(ent29[11:0]), | |
561 | .en(ent29_en), | |
562 | .l1clk(l1clk), | |
563 | .siclk(siclk), | |
564 | .soclk(soclk)); | |
565 | ||
566 | assign ent30_en = (wptr[4:0] == 5'd30) & latq_enq; | |
567 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent30 ( | |
568 | .scan_in(ff_ent30_scanin), | |
569 | .scan_out(ff_ent30_scanout), | |
570 | .din(latq_din[11:0]), | |
571 | .dout(ent30[11:0]), | |
572 | .en(ent30_en), | |
573 | .l1clk(l1clk), | |
574 | .siclk(siclk), | |
575 | .soclk(soclk)); | |
576 | ||
577 | assign ent31_en = (wptr[4:0] == 5'd31) & latq_enq; | |
578 | mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ff_ent31 ( | |
579 | .scan_in(ff_ent31_scanin), | |
580 | .scan_out(ff_ent31_scanout), | |
581 | .din(latq_din[11:0]), | |
582 | .dout(ent31[11:0]), | |
583 | .en(ent31_en), | |
584 | .l1clk(l1clk), | |
585 | .siclk(siclk), | |
586 | .soclk(soclk)); | |
587 | ||
588 | // FIFO output selection | |
589 | assign latq_dout[11:0] = | |
590 | {12{rptr[4:0] == 5'd0}} & ent0[11:0] | | |
591 | {12{rptr[4:0] == 5'd1}} & ent1[11:0] | | |
592 | {12{rptr[4:0] == 5'd2}} & ent2[11:0] | | |
593 | {12{rptr[4:0] == 5'd3}} & ent3[11:0] | | |
594 | {12{rptr[4:0] == 5'd4}} & ent4[11:0] | | |
595 | {12{rptr[4:0] == 5'd5}} & ent5[11:0] | | |
596 | {12{rptr[4:0] == 5'd6}} & ent6[11:0] | | |
597 | {12{rptr[4:0] == 5'd7}} & ent7[11:0] | | |
598 | {12{rptr[4:0] == 5'd8}} & ent8[11:0] | | |
599 | {12{rptr[4:0] == 5'd9}} & ent9[11:0] | | |
600 | {12{rptr[4:0] == 5'd10}} & ent10[11:0] | | |
601 | {12{rptr[4:0] == 5'd11}} & ent11[11:0] | | |
602 | {12{rptr[4:0] == 5'd12}} & ent12[11:0] | | |
603 | {12{rptr[4:0] == 5'd13}} & ent13[11:0] | | |
604 | {12{rptr[4:0] == 5'd14}} & ent14[11:0] | | |
605 | {12{rptr[4:0] == 5'd15}} & ent15[11:0] | | |
606 | {12{rptr[4:0] == 5'd16}} & ent16[11:0] | | |
607 | {12{rptr[4:0] == 5'd17}} & ent17[11:0] | | |
608 | {12{rptr[4:0] == 5'd18}} & ent18[11:0] | | |
609 | {12{rptr[4:0] == 5'd19}} & ent19[11:0] | | |
610 | {12{rptr[4:0] == 5'd20}} & ent20[11:0] | | |
611 | {12{rptr[4:0] == 5'd21}} & ent21[11:0] | | |
612 | {12{rptr[4:0] == 5'd22}} & ent22[11:0] | | |
613 | {12{rptr[4:0] == 5'd23}} & ent23[11:0] | | |
614 | {12{rptr[4:0] == 5'd24}} & ent24[11:0] | | |
615 | {12{rptr[4:0] == 5'd25}} & ent25[11:0] | | |
616 | {12{rptr[4:0] == 5'd26}} & ent26[11:0] | | |
617 | {12{rptr[4:0] == 5'd27}} & ent27[11:0] | | |
618 | {12{rptr[4:0] == 5'd28}} & ent28[11:0] | | |
619 | {12{rptr[4:0] == 5'd29}} & ent29[11:0] | | |
620 | {12{rptr[4:0] == 5'd30}} & ent30[11:0] | | |
621 | {12{rptr[4:0] == 5'd31}} & ent31[11:0]; | |
622 | ||
623 | ||
624 | // fixscan start: | |
625 | assign ff_wptr_scanin = scan_in ; | |
626 | assign ff_rptr_scanin = ff_wptr_scanout ; | |
627 | assign ff_ent0_scanin = ff_rptr_scanout ; | |
628 | assign ff_ent1_scanin = ff_ent0_scanout ; | |
629 | assign ff_ent2_scanin = ff_ent1_scanout ; | |
630 | assign ff_ent3_scanin = ff_ent2_scanout ; | |
631 | assign ff_ent4_scanin = ff_ent3_scanout ; | |
632 | assign ff_ent5_scanin = ff_ent4_scanout ; | |
633 | assign ff_ent6_scanin = ff_ent5_scanout ; | |
634 | assign ff_ent7_scanin = ff_ent6_scanout ; | |
635 | assign ff_ent8_scanin = ff_ent7_scanout ; | |
636 | assign ff_ent9_scanin = ff_ent8_scanout ; | |
637 | assign ff_ent10_scanin = ff_ent9_scanout ; | |
638 | assign ff_ent11_scanin = ff_ent10_scanout ; | |
639 | assign ff_ent12_scanin = ff_ent11_scanout ; | |
640 | assign ff_ent13_scanin = ff_ent12_scanout ; | |
641 | assign ff_ent14_scanin = ff_ent13_scanout ; | |
642 | assign ff_ent15_scanin = ff_ent14_scanout ; | |
643 | assign ff_ent16_scanin = ff_ent15_scanout ; | |
644 | assign ff_ent17_scanin = ff_ent16_scanout ; | |
645 | assign ff_ent18_scanin = ff_ent17_scanout ; | |
646 | assign ff_ent19_scanin = ff_ent18_scanout ; | |
647 | assign ff_ent20_scanin = ff_ent19_scanout ; | |
648 | assign ff_ent21_scanin = ff_ent20_scanout ; | |
649 | assign ff_ent22_scanin = ff_ent21_scanout ; | |
650 | assign ff_ent23_scanin = ff_ent22_scanout ; | |
651 | assign ff_ent24_scanin = ff_ent23_scanout ; | |
652 | assign ff_ent25_scanin = ff_ent24_scanout ; | |
653 | assign ff_ent26_scanin = ff_ent25_scanout ; | |
654 | assign ff_ent27_scanin = ff_ent26_scanout ; | |
655 | assign ff_ent28_scanin = ff_ent27_scanout ; | |
656 | assign ff_ent29_scanin = ff_ent28_scanout ; | |
657 | assign ff_ent30_scanin = ff_ent29_scanout ; | |
658 | assign ff_ent31_scanin = ff_ent30_scanout ; | |
659 | assign scan_out = ff_ent31_scanout ; | |
660 | // fixscan end: | |
661 | endmodule | |
662 | ||
663 | ||
664 | ||
665 | ||
666 | ||
667 | ||
668 | // any PARAMS parms go into naming of macro | |
669 | ||
670 | module mcu_latq_ctl_msff_ctl_macro__en_1__width_6 ( | |
671 | din, | |
672 | en, | |
673 | l1clk, | |
674 | scan_in, | |
675 | siclk, | |
676 | soclk, | |
677 | dout, | |
678 | scan_out); | |
679 | wire [5:0] fdin; | |
680 | wire [4:0] so; | |
681 | ||
682 | input [5:0] din; | |
683 | input en; | |
684 | input l1clk; | |
685 | input scan_in; | |
686 | ||
687 | ||
688 | input siclk; | |
689 | input soclk; | |
690 | ||
691 | output [5:0] dout; | |
692 | output scan_out; | |
693 | assign fdin[5:0] = (din[5:0] & {6{en}}) | (dout[5:0] & ~{6{en}}); | |
694 | ||
695 | ||
696 | ||
697 | ||
698 | ||
699 | ||
700 | dff #(6) d0_0 ( | |
701 | .l1clk(l1clk), | |
702 | .siclk(siclk), | |
703 | .soclk(soclk), | |
704 | .d(fdin[5:0]), | |
705 | .si({scan_in,so[4:0]}), | |
706 | .so({so[4:0],scan_out}), | |
707 | .q(dout[5:0]) | |
708 | ); | |
709 | ||
710 | ||
711 | ||
712 | ||
713 | ||
714 | ||
715 | ||
716 | ||
717 | ||
718 | ||
719 | ||
720 | ||
721 | endmodule | |
722 | ||
723 | ||
724 | ||
725 | ||
726 | ||
727 | ||
728 | ||
729 | ||
730 | ||
731 | ||
732 | ||
733 | ||
734 | ||
735 | // any PARAMS parms go into naming of macro | |
736 | ||
737 | module mcu_latq_ctl_msff_ctl_macro__en_1__width_12 ( | |
738 | din, | |
739 | en, | |
740 | l1clk, | |
741 | scan_in, | |
742 | siclk, | |
743 | soclk, | |
744 | dout, | |
745 | scan_out); | |
746 | wire [11:0] fdin; | |
747 | wire [10:0] so; | |
748 | ||
749 | input [11:0] din; | |
750 | input en; | |
751 | input l1clk; | |
752 | input scan_in; | |
753 | ||
754 | ||
755 | input siclk; | |
756 | input soclk; | |
757 | ||
758 | output [11:0] dout; | |
759 | output scan_out; | |
760 | assign fdin[11:0] = (din[11:0] & {12{en}}) | (dout[11:0] & ~{12{en}}); | |
761 | ||
762 | ||
763 | ||
764 | ||
765 | ||
766 | ||
767 | dff #(12) d0_0 ( | |
768 | .l1clk(l1clk), | |
769 | .siclk(siclk), | |
770 | .soclk(soclk), | |
771 | .d(fdin[11:0]), | |
772 | .si({scan_in,so[10:0]}), | |
773 | .so({so[10:0],scan_out}), | |
774 | .q(dout[11:0]) | |
775 | ); | |
776 | ||
777 | ||
778 | ||
779 | ||
780 | ||
781 | ||
782 | ||
783 | ||
784 | ||
785 | ||
786 | ||
787 | ||
788 | endmodule | |
789 | ||
790 | ||
791 | ||
792 | ||
793 | ||
794 | ||
795 | ||
796 |