Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: mcu_rdata_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_rdata_ctl ( | |
36 | mcu_ucb_rd_request_out, | |
37 | mcu_ucb_wr_req_out, | |
38 | mcu_ucb_mecc_err, | |
39 | mcu_ucb_secc_err, | |
40 | mcu_ucb_fbd_err, | |
41 | mcu_ucb_err_mode, | |
42 | mcu_ucb_err_event, | |
43 | ccu_mcu_cmp_io_sync_en, | |
44 | mcu_l2t0_qword_id_r0, | |
45 | mcu_l2t0_data_vld_r0, | |
46 | mcu_l2t0_rd_req_id_r0, | |
47 | mcu_l2t0_mecc_err_r3, | |
48 | mcu_l2t0_secc_err_r3, | |
49 | mcu_l2t0_scb_mecc_err, | |
50 | mcu_l2t0_scb_secc_err, | |
51 | mcu_l2t1_qword_id_r0, | |
52 | mcu_l2t1_data_vld_r0, | |
53 | mcu_l2t1_rd_req_id_r0, | |
54 | mcu_l2t1_mecc_err_r3, | |
55 | mcu_l2t1_secc_err_r3, | |
56 | mcu_l2t1_scb_mecc_err, | |
57 | mcu_l2t1_scb_secc_err, | |
58 | rdata_drif_rd_req_vld, | |
59 | rdata_drif_wr_req_vld, | |
60 | rdata_drif_addr, | |
61 | rdata_drif_data, | |
62 | rdata_mcu_selfrsh, | |
63 | rdata_err_ecci, | |
64 | rdata_err_fbri, | |
65 | rdata_err_fbui, | |
66 | mcu_ucb_ack_vld, | |
67 | mcu_ucb_nack_vld, | |
68 | mcu_ucb_data, | |
69 | rdata_err_intr, | |
70 | rdata_err_fbr, | |
71 | rdata_cmp_ddr_sync_en, | |
72 | rdata_ddr_cmp_sync_en, | |
73 | rdata_rddata_sel, | |
74 | rdata_pa_err, | |
75 | rdata_pm_1mcu, | |
76 | rdata_pm_2mcu, | |
77 | mbist_read_data, | |
78 | rdata0_wdq_rd, | |
79 | rdata1_wdq_rd, | |
80 | rdata_wdq_radr, | |
81 | mbist_run_d1, | |
82 | mbist_run_d1_l, | |
83 | mbist_sel_hiorlo_72bits_d1, | |
84 | mbist_sel_bank0or1_d1, | |
85 | rdata_serdes_dtm, | |
86 | ccu_mcu_cmp_ddr_sync_en, | |
87 | ccu_mcu_ddr_cmp_sync_en, | |
88 | ccu_mcu_io_cmp_sync_en, | |
89 | ucb_rdata_selfrsh, | |
90 | ucb_mcu_rd_req_vld, | |
91 | ucb_mcu_wr_req_vld, | |
92 | ucb_mcu_addr, | |
93 | ucb_mcu_data, | |
94 | ucb_err_ecci, | |
95 | ucb_err_fbri, | |
96 | ucb_err_fbui, | |
97 | drif_rdata_ack_vld, | |
98 | drif_rdata_nack_vld, | |
99 | drif_rdata_data, | |
100 | fbdic_err_fbr, | |
101 | rdpctl_l2t0_data_valid, | |
102 | rdpctl_l2t1_data_valid, | |
103 | rdpctl_qword_id, | |
104 | rdpctl_rd_req_id, | |
105 | rdpctl_pa_err, | |
106 | rdpctl_scrb0_err_valid, | |
107 | rdpctl_scrb1_err_valid, | |
108 | rdpctl_fbd0_recov_err, | |
109 | rdpctl_fbd1_recov_err, | |
110 | rdpctl_fbd_unrecov_err, | |
111 | rdpctl_secc_cnt_intr, | |
112 | rdpctl_dbg_trig_enable, | |
113 | fbdic_fbd_error, | |
114 | drif_mcu_error_mode, | |
115 | woq_wr_req_out, | |
116 | ucb_pm, | |
117 | ucb_pm_ba01, | |
118 | ucb_pm_ba23, | |
119 | ucb_pm_ba45, | |
120 | ucb_pm_ba67, | |
121 | readdp_l2_secc_err_dly1, | |
122 | readdp_l2_mecc_err_dly1, | |
123 | mbist_run, | |
124 | mbist_addr, | |
125 | mbist_sel_bank0or1, | |
126 | mbist_sel_hiorlo_72bits, | |
127 | mbist_wdqrf00_rd_en, | |
128 | mbist_wdqrf01_rd_en, | |
129 | mbist_wdqrf10_rd_en, | |
130 | mbist_wdqrf11_rd_en, | |
131 | drif0_wdq_rd, | |
132 | drif1_wdq_rd, | |
133 | drif_wdq_radr, | |
134 | wdqrf00_data, | |
135 | wdqrf01_data, | |
136 | wdqrf10_data, | |
137 | wdqrf11_data, | |
138 | fbdic_srds_dtm_muxsel, | |
139 | array_wr_inhibit, | |
140 | cmp_array_wr_inhibit, | |
141 | dr_array_wr_inhibit, | |
142 | l2clk, | |
143 | scan_in, | |
144 | scan_out, | |
145 | tcu_pce_ov, | |
146 | tcu_aclk, | |
147 | tcu_bclk, | |
148 | tcu_scan_en); | |
149 | wire pce_ov; | |
150 | wire siclk; | |
151 | wire soclk; | |
152 | wire se; | |
153 | wire l1clk; | |
154 | wire ff_mcu_sync_pulses_scanin; | |
155 | wire ff_mcu_sync_pulses_scanout; | |
156 | wire ff_io_sync_pulses_scanin; | |
157 | wire ff_io_sync_pulses_scanout; | |
158 | wire rdata_io_cmp_sync_en; | |
159 | wire rdata_cmp_io_sync_en; | |
160 | wire ff_mcu_sync_pulse_delays_scanin; | |
161 | wire ff_mcu_sync_pulse_delays_scanout; | |
162 | wire rdata_ddr_cmp_sync_en_d1; | |
163 | wire rdata_ddr_cmp_sync_en_d2; | |
164 | wire rdata_ddr_cmp_sync_en_d3; | |
165 | wire rdata_io_cmp_sync_en_d1; | |
166 | wire [1:0] rdata_data_word_cnt_in; | |
167 | wire [1:0] rdata_data_word_cnt; | |
168 | wire ff_data_word_cnt_scanin; | |
169 | wire ff_data_word_cnt_scanout; | |
170 | wire mcu_ucb_data_vld; | |
171 | wire [4:0] mcu_ucb_rd_request_out_d1_in; | |
172 | wire [4:0] mcu_ucb_rd_request_out_d1; | |
173 | wire [2:0] rdata_rd_req_id; | |
174 | wire ff_ucb_rdata_rd_req_id_scanin; | |
175 | wire ff_ucb_rdata_rd_req_id_scanout; | |
176 | wire ff_ucb_rdata_rd_req_id_d1_scanin; | |
177 | wire ff_ucb_rdata_rd_req_id_d1_scanout; | |
178 | wire mcu_ucb_any_mecc_err; | |
179 | wire mcu_ucb_mecc_err_o; | |
180 | wire mcu_ucb_mecc_err_d1; | |
181 | wire ff_ucb_mecc_err_o_scanin; | |
182 | wire ff_ucb_mecc_err_o_scanout; | |
183 | wire ff_ucb_mecc_err_d1_scanin; | |
184 | wire ff_ucb_mecc_err_d1_scanout; | |
185 | wire mcu_ucb_any_secc_err; | |
186 | wire mcu_ucb_secc_err_o; | |
187 | wire mcu_ucb_secc_err_d1; | |
188 | wire ff_ucb_secc_err_o_scanin; | |
189 | wire ff_ucb_secc_err_o_scanout; | |
190 | wire ff_ucb_secc_err_d1_scanin; | |
191 | wire ff_ucb_secc_err_d1_scanout; | |
192 | wire mcu_ucb_l1clk_err_event; | |
193 | wire rdata_dbg_trig_enable; | |
194 | wire mcu_ucb_err_event_o; | |
195 | wire mcu_ucb_err_event_d1; | |
196 | wire ff_ucb_err_event_d1_scanin; | |
197 | wire ff_ucb_err_event_d1_scanout; | |
198 | wire ff_ucb_err_event_scanin; | |
199 | wire ff_ucb_err_event_scanout; | |
200 | wire mcu_ucb_l1clk_fbd_error_o; | |
201 | wire rdata_fbd_error; | |
202 | wire mcu_ucb_fbd_error_d1; | |
203 | wire ff_ucb_fbd_error_d1_scanin; | |
204 | wire ff_ucb_fbd_error_d1_scanout; | |
205 | wire ff_ucb_fbd_error_scanin; | |
206 | wire ff_ucb_fbd_error_scanout; | |
207 | wire ff_mcu_ucb_err_mode_scanin; | |
208 | wire ff_mcu_ucb_err_mode_scanout; | |
209 | wire rdata_mcu_error_mode; | |
210 | wire rdata_wr_req_out_cnt_incr; | |
211 | wire [1:0] rdata_wr_req_out; | |
212 | wire [1:0] rdata_wr_req_out_cnt; | |
213 | wire rdata_wr_req_out_cnt_decr; | |
214 | wire [1:0] rdata_wr_req_out_cnt_in; | |
215 | wire ff_wr_req_out_cnt_scanin; | |
216 | wire ff_wr_req_out_cnt_scanout; | |
217 | wire [1:1] mcu_ucb_l1clk_wr_req_out_o; | |
218 | wire [1:0] mcu_ucb_wr_req_out_d1; | |
219 | wire ff_ucb_wr_req_out1_d1_scanin; | |
220 | wire ff_ucb_wr_req_out1_d1_scanout; | |
221 | wire ff_ucb_wr_req_out1_scanin; | |
222 | wire ff_ucb_wr_req_out1_scanout; | |
223 | wire ff_ucb_wr_req_out0_scanin; | |
224 | wire ff_ucb_wr_req_out0_scanout; | |
225 | wire ff_ucb_test_signals_scanin; | |
226 | wire ff_ucb_test_signals_scanout; | |
227 | wire rdata_selfrsh; | |
228 | wire ucb_rd_wr_vld_scanin; | |
229 | wire ucb_rd_wr_vld_scanout; | |
230 | wire rdata_ucb_rd_req_vld; | |
231 | wire rdata_ucb_wr_req_vld; | |
232 | wire ucb_addr_in_scanin; | |
233 | wire ucb_addr_in_scanout; | |
234 | wire [12:0] rdata_ucb_addr; | |
235 | wire ucb_data_in_scanin; | |
236 | wire ucb_data_in_scanout; | |
237 | wire [63:0] rdata_ucb_data; | |
238 | wire ff_ucb_err_inj_scanin; | |
239 | wire ff_ucb_err_inj_scanout; | |
240 | wire rdata_ucb_err_ecci; | |
241 | wire rdata_ucb_err_fbri; | |
242 | wire rdata_ucb_err_fbui; | |
243 | wire ff_partial_bank_mode_scanin; | |
244 | wire ff_partial_bank_mode_scanout; | |
245 | wire rdata_pm; | |
246 | wire rdata_pm_ba01; | |
247 | wire rdata_pm_ba23; | |
248 | wire rdata_pm_ba45; | |
249 | wire rdata_pm_ba67; | |
250 | wire rdata_ucb_wr_req_vld_en; | |
251 | wire rdata_ucb_wr_req_reset; | |
252 | wire rdata_ucb_wr_req_vld_cpu; | |
253 | wire rdata_wr_vld_scanin; | |
254 | wire rdata_wr_vld_scanout; | |
255 | wire rdata_ucb_rd_req_vld_en; | |
256 | wire rdata_ucb_rd_req_reset; | |
257 | wire rdata_ucb_rd_req_vld_cpu; | |
258 | wire rdata_rd_vld_scanin; | |
259 | wire rdata_rd_vld_scanout; | |
260 | wire rdata_ucb_addr_en; | |
261 | wire ff_rdata_ucb_addr_cpu_scanin; | |
262 | wire ff_rdata_ucb_addr_cpu_scanout; | |
263 | wire [12:0] rdata_ucb_addr_cpu; | |
264 | wire ff_rdata_ucb_data_cpu_scanin; | |
265 | wire ff_rdata_ucb_data_cpu_scanout; | |
266 | wire [63:0] rdata_ucb_data_cpu; | |
267 | wire rdata_ucb_ack_en; | |
268 | wire rdata_ucb_ack_vld; | |
269 | wire rdata_ucb_nack_en; | |
270 | wire rdata_ucb_nack_vld; | |
271 | wire rdata_ucb_ack_reset; | |
272 | wire rdata_ucb_ack_vld_cpu; | |
273 | wire rdata_ucb_nack_reset; | |
274 | wire rdata_ucb_nack_vld_cpu; | |
275 | wire ucb_ack_scanin; | |
276 | wire ucb_ack_scanout; | |
277 | wire ucb_nack_scanin; | |
278 | wire ucb_nack_scanout; | |
279 | wire ucb_data_cpu_scanin; | |
280 | wire ucb_data_cpu_scanout; | |
281 | wire [63:0] rdata_ucb_drif_data; | |
282 | wire [63:0] rdata_ucb_drif_data_cpu; | |
283 | wire rdata_secc_intr_en; | |
284 | wire rdata_secc_cnt_intr; | |
285 | wire rdata_secc_intr_reset; | |
286 | wire rdata_secc_cnt_intr_cpu; | |
287 | wire ff_ecc_intr_scanin; | |
288 | wire ff_ecc_intr_scanout; | |
289 | wire rdata_fbr_intr_en; | |
290 | wire rdata_fbr_intr; | |
291 | wire rdata_fbr_intr_reset; | |
292 | wire rdata_fbr_intr_cpu; | |
293 | wire ff_fbr_intr_scanin; | |
294 | wire ff_fbr_intr_scanout; | |
295 | wire ucb_ack_nack_scanin; | |
296 | wire ucb_ack_nack_scanout; | |
297 | wire ucb_data_out_scanin; | |
298 | wire ucb_data_out_scanout; | |
299 | wire ff_ncu_intr_scanin; | |
300 | wire ff_ncu_intr_scanout; | |
301 | wire ff_serdes_dtm_scanin; | |
302 | wire ff_serdes_dtm_scanout; | |
303 | wire rdata_serdes_dtm_cpu; | |
304 | wire ff_test_signals_scanin; | |
305 | wire ff_test_signals_scanout; | |
306 | wire rdata_ucb_rd_wr_vld_scanin; | |
307 | wire rdata_ucb_rd_wr_vld_scanout; | |
308 | wire rdata_ucb_addr_in_scanin; | |
309 | wire rdata_ucb_addr_in_scanout; | |
310 | wire rdata_ucb_data_in_scanin; | |
311 | wire rdata_ucb_data_in_scanout; | |
312 | wire ff_err_inj_scanin; | |
313 | wire ff_err_inj_scanout; | |
314 | wire rdata_pm_two_mcus; | |
315 | wire rdata_pm_2mcu_in; | |
316 | wire rdata_pm_1mcu_in; | |
317 | wire ff_pm_mcus_scanin; | |
318 | wire ff_pm_mcus_scanout; | |
319 | wire rdata_ucb_ack_nack_scanin; | |
320 | wire rdata_ucb_ack_nack_scanout; | |
321 | wire ff_ucb_data_out_scanin; | |
322 | wire ff_ucb_data_out_scanout; | |
323 | wire ff_data_valid_scanin; | |
324 | wire ff_data_valid_scanout; | |
325 | wire rdata_l2t0_data_valid; | |
326 | wire rdata_l2t1_data_valid; | |
327 | wire ff_rd_req_id_scanin; | |
328 | wire ff_rd_req_id_scanout; | |
329 | wire ff_qword_id_scanin; | |
330 | wire ff_qword_id_scanout; | |
331 | wire rdata_qword_id; | |
332 | wire ff_scrub_err_valid_scanin; | |
333 | wire ff_scrub_err_valid_scanout; | |
334 | wire rdata_scrb0_err_valid; | |
335 | wire rdata_scrb1_err_valid; | |
336 | wire rdata_fbd0_recov_err; | |
337 | wire rdata_fbd1_recov_err; | |
338 | wire ff_pa_err_p2_scanin; | |
339 | wire ff_pa_err_p2_scanout; | |
340 | wire rdata_pa_err_p2; | |
341 | wire rdata_fbd_unrecov_err_p1_1; | |
342 | wire rdata_fbd_unrecov_err_p2_0; | |
343 | wire ff_dbg_trig_scanin; | |
344 | wire ff_dbg_trig_scanout; | |
345 | wire ff_debug_signals_scanin; | |
346 | wire ff_debug_signals_scanout; | |
347 | wire rdata_fbd_error_out; | |
348 | wire [1:0] rdata_wr_req_out_out; | |
349 | wire ff_rdata_intr_scanin; | |
350 | wire ff_rdata_intr_scanout; | |
351 | wire ff_serdes_dtm_cpu_scanin; | |
352 | wire ff_serdes_dtm_cpu_scanout; | |
353 | wire rdata_ddr_cmp_sync_en_d12; | |
354 | wire rdata_ddr_cmp_sync_en_d12_in; | |
355 | wire ff_ddr_cmp_sync_en_d12_scanin; | |
356 | wire ff_ddr_cmp_sync_en_d12_scanout; | |
357 | wire mcu_l2t0_scb_secc_err_in; | |
358 | wire mcu_l2t0_scb_mecc_err_in; | |
359 | wire mcu_l2t1_scb_secc_err_in; | |
360 | wire mcu_l2t1_scb_mecc_err_in; | |
361 | wire ff_l2_scb_mecc_secc_scanin; | |
362 | wire ff_l2_scb_mecc_secc_scanout; | |
363 | wire rdata_ddr_cmp_sync_en_d23_in; | |
364 | wire ff_ddr_cmp_sync_en_d23_scanin; | |
365 | wire ff_ddr_cmp_sync_en_d23_scanout; | |
366 | wire rdata_ddr_cmp_sync_en_d23; | |
367 | wire ff_data_valid_d1_scanin; | |
368 | wire ff_data_valid_d1_scanout; | |
369 | wire rdata_l2t0_data_valid_d1; | |
370 | wire rdata_l2t1_data_valid_d1; | |
371 | wire ff_pa_err_p1_scanin; | |
372 | wire ff_pa_err_p1_scanout; | |
373 | wire rdata_pa_err_p1; | |
374 | wire rdata_fbd_unrecov_err_p1_0; | |
375 | wire mcu_l2t0_mecc_err_r1; | |
376 | wire mcu_l2t1_mecc_err_r1; | |
377 | wire mcu_l2t0_secc_err_r1; | |
378 | wire mcu_l2t1_secc_err_r1; | |
379 | wire ff_l2_mecc_secc_r2_scanin; | |
380 | wire ff_l2_mecc_secc_r2_scanout; | |
381 | wire mcu_l2t0_mecc_err_r2; | |
382 | wire mcu_l2t0_secc_err_r2; | |
383 | wire mcu_l2t1_mecc_err_r2; | |
384 | wire mcu_l2t1_secc_err_r2; | |
385 | wire ff_l2_mecc_secc_r3_scanin; | |
386 | wire ff_l2_mecc_secc_r3_scanout; | |
387 | wire rdata_pa_err_in; | |
388 | wire ff_pa_err_scanin; | |
389 | wire ff_pa_err_scanout; | |
390 | wire ff_mbist_data_scanin; | |
391 | wire ff_mbist_data_scanout; | |
392 | wire [7:0] wdqrf00_data_reg; | |
393 | wire [7:0] wdqrf01_data_reg; | |
394 | wire [7:0] wdqrf10_data_reg; | |
395 | wire [7:0] wdqrf11_data_reg; | |
396 | wire ff_mbist_addr_scanin; | |
397 | wire ff_mbist_run_d1_scanout; | |
398 | wire ff_mbist_addr_scanout; | |
399 | wire [4:0] mbist_addr_d1; | |
400 | wire mbist_wdqrf00_rd_en_d1; | |
401 | wire mbist_wdqrf01_rd_en_d1; | |
402 | wire mbist_wdqrf10_rd_en_d1; | |
403 | wire mbist_wdqrf11_rd_en_d1; | |
404 | wire spares_scanin; | |
405 | wire spares_scanout; | |
406 | ||
407 | ||
408 | //##dbg signal | |
409 | output [4:0] mcu_ucb_rd_request_out ; // sent to dbg | |
410 | output [1:0] mcu_ucb_wr_req_out ; // sent to dbg | |
411 | output mcu_ucb_mecc_err ; // sent to dbg | |
412 | output mcu_ucb_secc_err ; // sent to dbg | |
413 | output mcu_ucb_fbd_err ; // sent to dbg | |
414 | output mcu_ucb_err_mode ; // sent to dbg | |
415 | output mcu_ucb_err_event ; // sent to dbg | |
416 | input ccu_mcu_cmp_io_sync_en; // clock synchronization signal from cpu to io | |
417 | ||
418 | // mcu to l2 cache signals accompanying read data | |
419 | output [1:0] mcu_l2t0_qword_id_r0; // quad word id to l2 cache bank 0 | |
420 | output mcu_l2t0_data_vld_r0; // data valid to l2 cache bank 0 | |
421 | output [2:0] mcu_l2t0_rd_req_id_r0; // read request id to l2 cache bank 0 | |
422 | output mcu_l2t0_mecc_err_r3; // multi-bit ecc error | |
423 | output mcu_l2t0_secc_err_r3; // single-bit ecc error | |
424 | output mcu_l2t0_scb_mecc_err; // multi-bit ecc error on scrubbing request | |
425 | output mcu_l2t0_scb_secc_err; // single-bit ecc error on scrubbing request | |
426 | ||
427 | output [1:0] mcu_l2t1_qword_id_r0; // quad word id to l2 cache bank 1 | |
428 | output mcu_l2t1_data_vld_r0; // data valid to l2 cache bank 1 | |
429 | output [2:0] mcu_l2t1_rd_req_id_r0; // read request id to l2 cache bank 1 | |
430 | output mcu_l2t1_mecc_err_r3; // multi-bit ecc error | |
431 | output mcu_l2t1_secc_err_r3; // single-bit ecc error | |
432 | output mcu_l2t1_scb_mecc_err; // multi-bit ecc error on scrubbing request | |
433 | output mcu_l2t1_scb_secc_err; // single-bit ecc error on scrubbing request | |
434 | ||
435 | // ucb rd/wr request | |
436 | output rdata_drif_rd_req_vld; | |
437 | output rdata_drif_wr_req_vld; | |
438 | output [12:0] rdata_drif_addr; | |
439 | output [63:0] rdata_drif_data; | |
440 | ||
441 | output rdata_mcu_selfrsh; // put mcu in self refresh mode | |
442 | ||
443 | output rdata_err_ecci; | |
444 | output rdata_err_fbri; | |
445 | output rdata_err_fbui; | |
446 | ||
447 | // register rd/wr reply to ucb | |
448 | output mcu_ucb_ack_vld; | |
449 | output mcu_ucb_nack_vld; | |
450 | output [63:0] mcu_ucb_data; | |
451 | ||
452 | output rdata_err_intr; // interrupt signal to ucb module | |
453 | output rdata_err_fbr; | |
454 | ||
455 | output rdata_cmp_ddr_sync_en; // clock synchronization signal from cpu to mcu for dp blocks | |
456 | output rdata_ddr_cmp_sync_en; // clock synchronization signal from mcu to cpu for dp blocks | |
457 | ||
458 | output [1:0] rdata_rddata_sel; // dummy data vs. upper/lower word select to readdp | |
459 | output rdata_pa_err; // physical address error bit to readdp to corrupt L2 ECC | |
460 | ||
461 | output rdata_pm_1mcu; | |
462 | output rdata_pm_2mcu; | |
463 | ||
464 | output [7:0] mbist_read_data; | |
465 | output [1:0] rdata0_wdq_rd; | |
466 | output [1:0] rdata1_wdq_rd; | |
467 | output [4:0] rdata_wdq_radr; | |
468 | ||
469 | // delayed versions of mbist signals for wrdp | |
470 | output mbist_run_d1; | |
471 | output mbist_run_d1_l; | |
472 | output mbist_sel_hiorlo_72bits_d1; | |
473 | output mbist_sel_bank0or1_d1; | |
474 | ||
475 | output rdata_serdes_dtm; | |
476 | ||
477 | input ccu_mcu_cmp_ddr_sync_en; // clock synchronization signal from cpu to mcu | |
478 | input ccu_mcu_ddr_cmp_sync_en; // clock synchronization signal from mcu to cpu | |
479 | input ccu_mcu_io_cmp_sync_en; // clock synchronization signal from io to cpu | |
480 | ||
481 | input ucb_rdata_selfrsh; // put mcu in self refresh mode | |
482 | ||
483 | // register rd/wr request from ucb | |
484 | input ucb_mcu_rd_req_vld; | |
485 | input ucb_mcu_wr_req_vld; | |
486 | input [12:0] ucb_mcu_addr; | |
487 | input [63:0] ucb_mcu_data; | |
488 | ||
489 | input ucb_err_ecci; | |
490 | input ucb_err_fbri; | |
491 | input ucb_err_fbui; | |
492 | ||
493 | // register rd reply to ucb | |
494 | input drif_rdata_ack_vld; | |
495 | input drif_rdata_nack_vld; | |
496 | input [63:0] drif_rdata_data; | |
497 | ||
498 | input fbdic_err_fbr; | |
499 | ||
500 | input rdpctl_l2t0_data_valid; // data valid for returning l2t0 read data | |
501 | input rdpctl_l2t1_data_valid; // data valid for returning l2t1 read data | |
502 | input rdpctl_qword_id; // qword id for returning transaction | |
503 | input [2:0] rdpctl_rd_req_id; // read request id for returning transaction | |
504 | input rdpctl_pa_err; // physical address error to OR with mecc | |
505 | ||
506 | input rdpctl_scrb0_err_valid; // scrub error valid for l2t0 | |
507 | input rdpctl_scrb1_err_valid; // scrub error valid for l2t1 | |
508 | ||
509 | input rdpctl_fbd0_recov_err; | |
510 | input rdpctl_fbd1_recov_err; | |
511 | input [1:0] rdpctl_fbd_unrecov_err; | |
512 | ||
513 | input rdpctl_secc_cnt_intr; // secc error count interrupt to NCU | |
514 | input rdpctl_dbg_trig_enable; // debug trigger | |
515 | ||
516 | input fbdic_fbd_error; | |
517 | input drif_mcu_error_mode; | |
518 | input [1:0] woq_wr_req_out; | |
519 | ||
520 | input ucb_pm; // partial bank mode signals | |
521 | input ucb_pm_ba01; | |
522 | input ucb_pm_ba23; | |
523 | input ucb_pm_ba45; | |
524 | input ucb_pm_ba67; | |
525 | ||
526 | // ecc error signals | |
527 | input readdp_l2_secc_err_dly1; | |
528 | input readdp_l2_mecc_err_dly1; | |
529 | ||
530 | // mbist signals | |
531 | input mbist_run; | |
532 | input [4:0] mbist_addr; | |
533 | input mbist_sel_bank0or1; | |
534 | input mbist_sel_hiorlo_72bits; | |
535 | input mbist_wdqrf00_rd_en; | |
536 | input mbist_wdqrf01_rd_en; | |
537 | input mbist_wdqrf10_rd_en; | |
538 | input mbist_wdqrf11_rd_en; | |
539 | ||
540 | input drif0_wdq_rd; | |
541 | input drif1_wdq_rd; | |
542 | input [4:0] drif_wdq_radr; | |
543 | ||
544 | input [7:0] wdqrf00_data; | |
545 | input [7:0] wdqrf01_data; | |
546 | input [7:0] wdqrf10_data; | |
547 | input [7:0] wdqrf11_data; | |
548 | ||
549 | input fbdic_srds_dtm_muxsel; | |
550 | ||
551 | output array_wr_inhibit; | |
552 | input cmp_array_wr_inhibit; | |
553 | input dr_array_wr_inhibit; | |
554 | ||
555 | // Global Signals | |
556 | input l2clk; | |
557 | input scan_in; | |
558 | output scan_out; | |
559 | input tcu_pce_ov; | |
560 | input tcu_aclk; | |
561 | input tcu_bclk; | |
562 | input tcu_scan_en; | |
563 | ||
564 | // Code | |
565 | assign pce_ov = tcu_pce_ov; | |
566 | assign siclk = tcu_aclk; | |
567 | assign soclk = tcu_bclk; | |
568 | assign se = tcu_scan_en; | |
569 | ||
570 | assign array_wr_inhibit = cmp_array_wr_inhibit & dr_array_wr_inhibit; | |
571 | ||
572 | mcu_rdata_ctl_l1clkhdr_ctl_macro clkgen ( | |
573 | .l2clk(l2clk), | |
574 | .l1en(1'b1 ), | |
575 | .stop(1'b0), | |
576 | .l1clk(l1clk), | |
577 | .pce_ov(pce_ov), | |
578 | .se(se)); | |
579 | ||
580 | // sync pulses to transfer data between clock domains | |
581 | mcu_rdata_ctl_msff_ctl_macro__width_2 ff_mcu_sync_pulses ( | |
582 | .scan_in(ff_mcu_sync_pulses_scanin), | |
583 | .scan_out(ff_mcu_sync_pulses_scanout), | |
584 | .din({ccu_mcu_ddr_cmp_sync_en, ccu_mcu_cmp_ddr_sync_en}), | |
585 | .dout({rdata_ddr_cmp_sync_en, rdata_cmp_ddr_sync_en}), | |
586 | .l1clk(l1clk), | |
587 | .siclk(siclk), | |
588 | .soclk(soclk)); | |
589 | ||
590 | mcu_rdata_ctl_msff_ctl_macro__width_2 ff_io_sync_pulses ( | |
591 | .scan_in(ff_io_sync_pulses_scanin), | |
592 | .scan_out(ff_io_sync_pulses_scanout), | |
593 | .din({ccu_mcu_io_cmp_sync_en, ccu_mcu_cmp_io_sync_en}), | |
594 | .dout({rdata_io_cmp_sync_en, rdata_cmp_io_sync_en}), | |
595 | .l1clk(l1clk), | |
596 | .siclk(siclk), | |
597 | .soclk(soclk)); | |
598 | ||
599 | mcu_rdata_ctl_msff_ctl_macro__width_4 ff_mcu_sync_pulse_delays ( | |
600 | .scan_in(ff_mcu_sync_pulse_delays_scanin), | |
601 | .scan_out(ff_mcu_sync_pulse_delays_scanout), | |
602 | .din({rdata_ddr_cmp_sync_en, rdata_ddr_cmp_sync_en_d1, rdata_ddr_cmp_sync_en_d2, rdata_io_cmp_sync_en}), | |
603 | .dout({rdata_ddr_cmp_sync_en_d1, rdata_ddr_cmp_sync_en_d2, rdata_ddr_cmp_sync_en_d3, rdata_io_cmp_sync_en_d1}), | |
604 | .l1clk(l1clk), | |
605 | .siclk(siclk), | |
606 | .soclk(soclk)); | |
607 | ////////////////////////////////////////////////////////////////// | |
608 | //## SIGNALS from l1clk to ioclk then send to dbg module | |
609 | ////////////////////////////////////////////////////////////////// | |
610 | assign rdata_data_word_cnt_in[1:0] = (mcu_l2t0_data_vld_r0 | mcu_l2t1_data_vld_r0) ? rdata_data_word_cnt[1:0] + 2'h1 : | |
611 | rdata_data_word_cnt[1:0]; | |
612 | mcu_rdata_ctl_msff_ctl_macro__width_2 ff_data_word_cnt ( | |
613 | .scan_in(ff_data_word_cnt_scanin), | |
614 | .scan_out(ff_data_word_cnt_scanout), | |
615 | .din(rdata_data_word_cnt_in[1:0]), | |
616 | .dout(rdata_data_word_cnt[1:0]), | |
617 | .l1clk(l1clk), | |
618 | .siclk(siclk), | |
619 | .soclk(soclk)); | |
620 | ||
621 | assign mcu_ucb_data_vld = (mcu_l2t0_data_vld_r0 | mcu_l2t1_data_vld_r0) & rdata_data_word_cnt[1:0] == 2'h0; | |
622 | ||
623 | assign mcu_ucb_rd_request_out_d1_in[4] = mcu_ucb_data_vld ? 1'b1 : | |
624 | rdata_cmp_io_sync_en ? 1'b0 : mcu_ucb_rd_request_out_d1[4]; | |
625 | assign mcu_ucb_rd_request_out_d1_in[3] = mcu_ucb_data_vld ? mcu_l2t1_data_vld_r0 : | |
626 | rdata_cmp_io_sync_en ? 1'b0 : mcu_ucb_rd_request_out_d1[3]; | |
627 | assign mcu_ucb_rd_request_out_d1_in[2:0] = mcu_ucb_data_vld ? rdata_rd_req_id[2:0] : | |
628 | rdata_cmp_io_sync_en ? 3'h0 : mcu_ucb_rd_request_out_d1[2:0]; | |
629 | ||
630 | mcu_rdata_ctl_msff_ctl_macro__width_5 ff_ucb_rdata_rd_req_id ( | |
631 | .scan_in(ff_ucb_rdata_rd_req_id_scanin), | |
632 | .scan_out(ff_ucb_rdata_rd_req_id_scanout), | |
633 | .din (mcu_ucb_rd_request_out_d1_in[4:0]), | |
634 | .dout (mcu_ucb_rd_request_out_d1[4:0]), | |
635 | .l1clk (l1clk), | |
636 | .siclk(siclk), | |
637 | .soclk(soclk)); | |
638 | ||
639 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_5 ff_ucb_rdata_rd_req_id_d1 ( | |
640 | .scan_in(ff_ucb_rdata_rd_req_id_d1_scanin), | |
641 | .scan_out(ff_ucb_rdata_rd_req_id_d1_scanout), | |
642 | .din (mcu_ucb_rd_request_out_d1[4:0]), | |
643 | .dout (mcu_ucb_rd_request_out[4:0]), | |
644 | .en (rdata_cmp_io_sync_en), | |
645 | .l1clk (l1clk), | |
646 | .siclk(siclk), | |
647 | .soclk(soclk)); | |
648 | //## or all mecc and secc signals before sync to cross clock domains | |
649 | assign mcu_ucb_any_mecc_err = mcu_l2t0_mecc_err_r3 | mcu_l2t0_scb_mecc_err | mcu_l2t1_mecc_err_r3 | mcu_l2t1_scb_mecc_err ; | |
650 | assign mcu_ucb_mecc_err_o = mcu_ucb_any_mecc_err ? 1'b1 : rdata_cmp_io_sync_en ? 1'b0 : mcu_ucb_mecc_err_d1 ; | |
651 | mcu_rdata_ctl_msff_ctl_macro__width_1 ff_ucb_mecc_err_o ( | |
652 | .scan_in(ff_ucb_mecc_err_o_scanin), | |
653 | .scan_out(ff_ucb_mecc_err_o_scanout), | |
654 | .din ( mcu_ucb_mecc_err_o ) , | |
655 | .dout ( mcu_ucb_mecc_err_d1 ) , | |
656 | .l1clk (l1clk), | |
657 | .siclk(siclk), | |
658 | .soclk(soclk)); | |
659 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_ucb_mecc_err_d1 ( | |
660 | .scan_in(ff_ucb_mecc_err_d1_scanin), | |
661 | .scan_out(ff_ucb_mecc_err_d1_scanout), | |
662 | .din ( mcu_ucb_mecc_err_d1 ) , | |
663 | .dout ( mcu_ucb_mecc_err ) , | |
664 | .en ( rdata_cmp_io_sync_en ) , | |
665 | .l1clk (l1clk), | |
666 | .siclk(siclk), | |
667 | .soclk(soclk)); | |
668 | ||
669 | assign mcu_ucb_any_secc_err = mcu_l2t0_secc_err_r3 | mcu_l2t0_scb_secc_err | mcu_l2t1_secc_err_r3 | mcu_l2t1_scb_secc_err ; | |
670 | assign mcu_ucb_secc_err_o = mcu_ucb_any_secc_err ? 1'b1 : rdata_cmp_io_sync_en ? 1'b0 : mcu_ucb_secc_err_d1 ; | |
671 | mcu_rdata_ctl_msff_ctl_macro__width_1 ff_ucb_secc_err_o ( | |
672 | .scan_in(ff_ucb_secc_err_o_scanin), | |
673 | .scan_out(ff_ucb_secc_err_o_scanout), | |
674 | .din ( mcu_ucb_secc_err_o ) , | |
675 | .dout ( mcu_ucb_secc_err_d1 ) , | |
676 | .l1clk (l1clk), | |
677 | .siclk(siclk), | |
678 | .soclk(soclk)); | |
679 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_ucb_secc_err_d1 ( | |
680 | .scan_in(ff_ucb_secc_err_d1_scanin), | |
681 | .scan_out(ff_ucb_secc_err_d1_scanout), | |
682 | .din ( mcu_ucb_secc_err_d1 ) , | |
683 | .dout ( mcu_ucb_secc_err ) , | |
684 | .en ( rdata_cmp_io_sync_en ) , | |
685 | .l1clk (l1clk), | |
686 | .siclk(siclk), | |
687 | .soclk(soclk)); | |
688 | ||
689 | assign mcu_ucb_l1clk_err_event = rdata_dbg_trig_enable & (mcu_ucb_any_secc_err | mcu_ucb_any_mecc_err); | |
690 | assign mcu_ucb_err_event_o = mcu_ucb_l1clk_err_event ? 1'b1 : rdata_cmp_io_sync_en ? 1'b0 : mcu_ucb_err_event_d1 ; | |
691 | mcu_rdata_ctl_msff_ctl_macro__width_1 ff_ucb_err_event_d1 ( | |
692 | .scan_in(ff_ucb_err_event_d1_scanin), | |
693 | .scan_out(ff_ucb_err_event_d1_scanout), | |
694 | .din ( mcu_ucb_err_event_o ) , | |
695 | .dout ( mcu_ucb_err_event_d1 ) , | |
696 | .l1clk (l1clk), | |
697 | .siclk(siclk), | |
698 | .soclk(soclk)); | |
699 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_ucb_err_event ( | |
700 | .scan_in(ff_ucb_err_event_scanin), | |
701 | .scan_out(ff_ucb_err_event_scanout), | |
702 | .din ( mcu_ucb_err_event_d1 ) , | |
703 | .dout ( mcu_ucb_err_event ) , | |
704 | .en ( rdata_cmp_io_sync_en ) , | |
705 | .l1clk (l1clk), | |
706 | .siclk(siclk), | |
707 | .soclk(soclk)); | |
708 | //### | |
709 | //assign mcu_ucb_fbd_err = rdata_fbd_error ; | |
710 | ||
711 | //### | |
712 | assign mcu_ucb_l1clk_fbd_error_o = rdata_fbd_error ? 1'b1 : rdata_cmp_io_sync_en ? 1'b0 : mcu_ucb_fbd_error_d1 ; | |
713 | mcu_rdata_ctl_msff_ctl_macro__width_1 ff_ucb_fbd_error_d1 ( | |
714 | .scan_in(ff_ucb_fbd_error_d1_scanin), | |
715 | .scan_out(ff_ucb_fbd_error_d1_scanout), | |
716 | .din ( mcu_ucb_l1clk_fbd_error_o ) , | |
717 | .dout ( mcu_ucb_fbd_error_d1 ) , | |
718 | .l1clk (l1clk), | |
719 | .siclk(siclk), | |
720 | .soclk(soclk)); | |
721 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_ucb_fbd_error ( | |
722 | .scan_in(ff_ucb_fbd_error_scanin), | |
723 | .scan_out(ff_ucb_fbd_error_scanout), | |
724 | .din ( mcu_ucb_fbd_error_d1 ) , | |
725 | .dout ( mcu_ucb_fbd_err ) , | |
726 | .en ( rdata_cmp_io_sync_en ) , | |
727 | .l1clk (l1clk), | |
728 | .siclk(siclk), | |
729 | .soclk(soclk)); | |
730 | // | |
731 | mcu_rdata_ctl_msff_ctl_macro__en_1 ff_mcu_ucb_err_mode ( | |
732 | .scan_in(ff_mcu_ucb_err_mode_scanin), | |
733 | .scan_out(ff_mcu_ucb_err_mode_scanout), | |
734 | .din(rdata_mcu_error_mode), | |
735 | .dout(mcu_ucb_err_mode), | |
736 | .en(rdata_cmp_io_sync_en), | |
737 | .l1clk(l1clk), | |
738 | .siclk(siclk), | |
739 | .soclk(soclk)); | |
740 | ||
741 | ||
742 | // 0in overflow -var rdata_wr_req_out_cnt[1:0] | |
743 | // 0in underflow -var rdata_wr_req_out_cnt[1:0] | |
744 | assign rdata_wr_req_out_cnt_incr = rdata_wr_req_out[0] & (~rdata_cmp_io_sync_en & (|rdata_wr_req_out_cnt[1:0]) | | |
745 | ~(|rdata_wr_req_out_cnt[1:0])); | |
746 | assign rdata_wr_req_out_cnt_decr = rdata_cmp_io_sync_en & (|rdata_wr_req_out_cnt[1:0]) & ~rdata_wr_req_out[0]; | |
747 | ||
748 | assign rdata_wr_req_out_cnt_in[1:0] = rdata_wr_req_out_cnt_incr ? rdata_wr_req_out_cnt[1:0] + 2'h1 : | |
749 | rdata_wr_req_out_cnt_decr ? rdata_wr_req_out_cnt[1:0] - 2'h1 : rdata_wr_req_out_cnt[1:0]; | |
750 | ||
751 | mcu_rdata_ctl_msff_ctl_macro__width_2 ff_wr_req_out_cnt ( | |
752 | .scan_in(ff_wr_req_out_cnt_scanin), | |
753 | .scan_out(ff_wr_req_out_cnt_scanout), | |
754 | .din(rdata_wr_req_out_cnt_in[1:0]), | |
755 | .dout(rdata_wr_req_out_cnt[1:0]), | |
756 | .l1clk(l1clk), | |
757 | .siclk(siclk), | |
758 | .soclk(soclk)); | |
759 | ||
760 | assign mcu_ucb_l1clk_wr_req_out_o[1] = rdata_wr_req_out[1] ? 1'b1 : | |
761 | rdata_cmp_io_sync_en ? 1'b0 : mcu_ucb_wr_req_out_d1[1] ; | |
762 | mcu_rdata_ctl_msff_ctl_macro__width_1 ff_ucb_wr_req_out1_d1 ( | |
763 | .scan_in(ff_ucb_wr_req_out1_d1_scanin), | |
764 | .scan_out(ff_ucb_wr_req_out1_d1_scanout), | |
765 | .din ( mcu_ucb_l1clk_wr_req_out_o[1] ) , | |
766 | .dout ( mcu_ucb_wr_req_out_d1[1] ) , | |
767 | .l1clk (l1clk), | |
768 | .siclk(siclk), | |
769 | .soclk(soclk)); | |
770 | ||
771 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_ucb_wr_req_out1 ( | |
772 | .scan_in(ff_ucb_wr_req_out1_scanin), | |
773 | .scan_out(ff_ucb_wr_req_out1_scanout), | |
774 | .din ( mcu_ucb_wr_req_out_d1[1] ) , | |
775 | .dout ( mcu_ucb_wr_req_out[1] ) , | |
776 | .en ( rdata_cmp_io_sync_en ) , | |
777 | .l1clk (l1clk), | |
778 | .siclk(siclk), | |
779 | .soclk(soclk)); | |
780 | ||
781 | assign mcu_ucb_wr_req_out_d1[0] = |rdata_wr_req_out_cnt[1:0]; | |
782 | ||
783 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_ucb_wr_req_out0 ( | |
784 | .scan_in(ff_ucb_wr_req_out0_scanin), | |
785 | .scan_out(ff_ucb_wr_req_out0_scanout), | |
786 | .din ( mcu_ucb_wr_req_out_d1[0] ) , | |
787 | .dout ( mcu_ucb_wr_req_out[0] ) , | |
788 | .en ( rdata_cmp_io_sync_en ) , | |
789 | .l1clk (l1clk), | |
790 | .siclk(siclk), | |
791 | .soclk(soclk)); | |
792 | ||
793 | ||
794 | ||
795 | ////////////////////////////////////////////////////////////////// | |
796 | // SIGNALS FROM IO TO CPU CLK | |
797 | ////////////////////////////////////////////////////////////////// | |
798 | ||
799 | // Test signals | |
800 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_ucb_test_signals ( | |
801 | .scan_in(ff_ucb_test_signals_scanin), | |
802 | .scan_out(ff_ucb_test_signals_scanout), | |
803 | .din (ucb_rdata_selfrsh), | |
804 | .dout (rdata_selfrsh), | |
805 | .en (rdata_io_cmp_sync_en), | |
806 | .l1clk (l1clk), | |
807 | .siclk(siclk), | |
808 | .soclk(soclk)); | |
809 | ||
810 | // flop ucb write and read valid | |
811 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_2 ucb_rd_wr_vld ( | |
812 | .scan_in(ucb_rd_wr_vld_scanin), | |
813 | .scan_out(ucb_rd_wr_vld_scanout), | |
814 | .din ({ucb_mcu_rd_req_vld, ucb_mcu_wr_req_vld}), | |
815 | .dout ({rdata_ucb_rd_req_vld, rdata_ucb_wr_req_vld}), | |
816 | .en (rdata_io_cmp_sync_en), | |
817 | .l1clk (l1clk), | |
818 | .siclk(siclk), | |
819 | .soclk(soclk)); | |
820 | ||
821 | // flop ucb addr in | |
822 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_13 ucb_addr_in ( | |
823 | .scan_in(ucb_addr_in_scanin), | |
824 | .scan_out(ucb_addr_in_scanout), | |
825 | .din (ucb_mcu_addr[12:0]), | |
826 | .dout (rdata_ucb_addr[12:0]), | |
827 | .en (rdata_io_cmp_sync_en), | |
828 | .l1clk (l1clk), | |
829 | .siclk(siclk), | |
830 | .soclk(soclk)); | |
831 | ||
832 | // flop ucb data in | |
833 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_64 ucb_data_in ( | |
834 | .scan_in(ucb_data_in_scanin), | |
835 | .scan_out(ucb_data_in_scanout), | |
836 | .din(ucb_mcu_data[63:0]), | |
837 | .dout(rdata_ucb_data[63:0]), | |
838 | .en(rdata_io_cmp_sync_en), | |
839 | .l1clk(l1clk), | |
840 | .siclk(siclk), | |
841 | .soclk(soclk)); | |
842 | ||
843 | // error injection signals | |
844 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_3 ff_ucb_err_inj ( | |
845 | .scan_in(ff_ucb_err_inj_scanin), | |
846 | .scan_out(ff_ucb_err_inj_scanout), | |
847 | .din({ucb_err_ecci,ucb_err_fbri,ucb_err_fbui}), | |
848 | .dout({rdata_ucb_err_ecci,rdata_ucb_err_fbri,rdata_ucb_err_fbui}), | |
849 | .en(rdata_io_cmp_sync_en), | |
850 | .l1clk(l1clk), | |
851 | .siclk(siclk), | |
852 | .soclk(soclk)); | |
853 | ||
854 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_5 ff_partial_bank_mode ( | |
855 | .scan_in(ff_partial_bank_mode_scanin), | |
856 | .scan_out(ff_partial_bank_mode_scanout), | |
857 | .din({ucb_pm, ucb_pm_ba01, ucb_pm_ba23, ucb_pm_ba45, ucb_pm_ba67}), | |
858 | .dout({rdata_pm, rdata_pm_ba01, rdata_pm_ba23, rdata_pm_ba45, rdata_pm_ba67}), | |
859 | .en(rdata_io_cmp_sync_en), | |
860 | .l1clk(l1clk), | |
861 | .siclk(siclk), | |
862 | .soclk(soclk)); | |
863 | ||
864 | //////////////////////// | |
865 | // Flop enables so that they are reset on mcu sync pulse | |
866 | //////////////////////// | |
867 | ||
868 | // flop write valid | |
869 | assign rdata_ucb_wr_req_vld_en = rdata_io_cmp_sync_en_d1 & rdata_ucb_wr_req_vld; | |
870 | assign rdata_ucb_wr_req_reset = rdata_cmp_ddr_sync_en & rdata_ucb_wr_req_vld_cpu; | |
871 | ||
872 | mcu_rdata_ctl_msff_ctl_macro__clr_1__en_1__width_1 rdata_wr_vld ( | |
873 | .scan_in(rdata_wr_vld_scanin), | |
874 | .scan_out(rdata_wr_vld_scanout), | |
875 | .din(rdata_ucb_wr_req_vld), | |
876 | .dout(rdata_ucb_wr_req_vld_cpu), | |
877 | .en(rdata_ucb_wr_req_vld_en), | |
878 | .clr(rdata_ucb_wr_req_reset), | |
879 | .l1clk(l1clk), | |
880 | .siclk(siclk), | |
881 | .soclk(soclk)); | |
882 | ||
883 | // flop read valid | |
884 | assign rdata_ucb_rd_req_vld_en = rdata_io_cmp_sync_en_d1 & rdata_ucb_rd_req_vld; | |
885 | assign rdata_ucb_rd_req_reset = rdata_cmp_ddr_sync_en & rdata_ucb_rd_req_vld_cpu; | |
886 | ||
887 | mcu_rdata_ctl_msff_ctl_macro__clr_1__en_1__width_1 rdata_rd_vld ( | |
888 | .scan_in(rdata_rd_vld_scanin), | |
889 | .scan_out(rdata_rd_vld_scanout), | |
890 | .din(rdata_ucb_rd_req_vld), | |
891 | .dout(rdata_ucb_rd_req_vld_cpu), | |
892 | .en(rdata_ucb_rd_req_vld_en), | |
893 | .clr(rdata_ucb_rd_req_reset), | |
894 | .l1clk(l1clk), | |
895 | .siclk(siclk), | |
896 | .soclk(soclk)); | |
897 | ||
898 | assign rdata_ucb_addr_en = rdata_ucb_wr_req_vld_en | rdata_ucb_rd_req_vld_en; | |
899 | ||
900 | // flop addr in | |
901 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_13 ff_rdata_ucb_addr_cpu ( | |
902 | .scan_in(ff_rdata_ucb_addr_cpu_scanin), | |
903 | .scan_out(ff_rdata_ucb_addr_cpu_scanout), | |
904 | .din(rdata_ucb_addr[12:0]), | |
905 | .dout(rdata_ucb_addr_cpu[12:0]), | |
906 | .en(rdata_ucb_addr_en), | |
907 | .l1clk(l1clk), | |
908 | .siclk(siclk), | |
909 | .soclk(soclk)); | |
910 | ||
911 | // flop data in | |
912 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_64 ff_rdata_ucb_data_cpu ( | |
913 | .scan_in(ff_rdata_ucb_data_cpu_scanin), | |
914 | .scan_out(ff_rdata_ucb_data_cpu_scanout), | |
915 | .din(rdata_ucb_data[63:0]), | |
916 | .dout(rdata_ucb_data_cpu[63:0]), | |
917 | .en(rdata_ucb_wr_req_vld), | |
918 | .l1clk(l1clk), | |
919 | .siclk(siclk), | |
920 | .soclk(soclk)); | |
921 | ||
922 | //////////////////////////////////////// | |
923 | // Flop enable so that its reset on io sync pulse | |
924 | //////////////////////////////////////// | |
925 | ||
926 | assign rdata_ucb_ack_en = rdata_ddr_cmp_sync_en_d1 & rdata_ucb_ack_vld; | |
927 | assign rdata_ucb_nack_en = rdata_ddr_cmp_sync_en_d1 & rdata_ucb_nack_vld; | |
928 | assign rdata_ucb_ack_reset = rdata_cmp_io_sync_en & rdata_ucb_ack_vld_cpu; | |
929 | assign rdata_ucb_nack_reset = rdata_cmp_io_sync_en & rdata_ucb_nack_vld_cpu; | |
930 | ||
931 | // flop ack | |
932 | mcu_rdata_ctl_msff_ctl_macro__clr_1__en_1__width_1 ucb_ack ( | |
933 | .scan_in(ucb_ack_scanin), | |
934 | .scan_out(ucb_ack_scanout), | |
935 | .din(rdata_ucb_ack_vld), | |
936 | .dout(rdata_ucb_ack_vld_cpu), | |
937 | .en(rdata_ucb_ack_en), | |
938 | .clr(rdata_ucb_ack_reset), | |
939 | .l1clk(l1clk), | |
940 | .siclk(siclk), | |
941 | .soclk(soclk)); | |
942 | ||
943 | // flop nack | |
944 | mcu_rdata_ctl_msff_ctl_macro__clr_1__en_1__width_1 ucb_nack ( | |
945 | .scan_in(ucb_nack_scanin), | |
946 | .scan_out(ucb_nack_scanout), | |
947 | .din(rdata_ucb_nack_vld), | |
948 | .dout(rdata_ucb_nack_vld_cpu), | |
949 | .en(rdata_ucb_nack_en), | |
950 | .clr(rdata_ucb_nack_reset), | |
951 | .l1clk(l1clk), | |
952 | .siclk(siclk), | |
953 | .soclk(soclk)); | |
954 | ||
955 | // flop data | |
956 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_64 ucb_data_cpu ( | |
957 | .scan_in(ucb_data_cpu_scanin), | |
958 | .scan_out(ucb_data_cpu_scanout), | |
959 | .din(rdata_ucb_drif_data[63:0]), | |
960 | .dout(rdata_ucb_drif_data_cpu[63:0]), | |
961 | .en(rdata_ucb_ack_en), | |
962 | .l1clk(l1clk), | |
963 | .siclk(siclk), | |
964 | .soclk(soclk)); | |
965 | ||
966 | // secc counter interrupt for NCU | |
967 | assign rdata_secc_intr_en = rdata_ddr_cmp_sync_en_d1 & rdata_secc_cnt_intr; | |
968 | assign rdata_secc_intr_reset = rdata_cmp_io_sync_en & rdata_secc_cnt_intr_cpu; | |
969 | ||
970 | mcu_rdata_ctl_msff_ctl_macro__clr_1__en_1__width_1 ff_ecc_intr ( | |
971 | .scan_in(ff_ecc_intr_scanin), | |
972 | .scan_out(ff_ecc_intr_scanout), | |
973 | .din(rdata_secc_cnt_intr), | |
974 | .dout(rdata_secc_cnt_intr_cpu), | |
975 | .en(rdata_secc_intr_en), | |
976 | .clr(rdata_secc_intr_reset), | |
977 | .l1clk(l1clk), | |
978 | .siclk(siclk), | |
979 | .soclk(soclk)); | |
980 | ||
981 | // fbdimm channel recoverable error interrupt for NCU | |
982 | assign rdata_fbr_intr_en = rdata_ddr_cmp_sync_en_d1 & rdata_fbr_intr; | |
983 | assign rdata_fbr_intr_reset = rdata_cmp_io_sync_en & rdata_fbr_intr_cpu; | |
984 | ||
985 | mcu_rdata_ctl_msff_ctl_macro__clr_1__en_1__width_1 ff_fbr_intr ( | |
986 | .scan_in(ff_fbr_intr_scanin), | |
987 | .scan_out(ff_fbr_intr_scanout), | |
988 | .din(rdata_fbr_intr), | |
989 | .dout(rdata_fbr_intr_cpu), | |
990 | .en(rdata_fbr_intr_en), | |
991 | .clr(rdata_fbr_intr_reset), | |
992 | .l1clk(l1clk), | |
993 | .siclk(siclk), | |
994 | .soclk(soclk)); | |
995 | ||
996 | ||
997 | ////////////////////////////////////////////////////////////////// | |
998 | // SIGNALS FROM CPU TO IO CLK | |
999 | ////////////////////////////////////////////////////////////////// | |
1000 | ||
1001 | // flop ack and nack | |
1002 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_2 ucb_ack_nack ( | |
1003 | .scan_in(ucb_ack_nack_scanin), | |
1004 | .scan_out(ucb_ack_nack_scanout), | |
1005 | .din({rdata_ucb_ack_vld_cpu, rdata_ucb_nack_vld_cpu}), | |
1006 | .dout({mcu_ucb_ack_vld, mcu_ucb_nack_vld}), | |
1007 | .en(rdata_cmp_io_sync_en), | |
1008 | .l1clk(l1clk), | |
1009 | .siclk(siclk), | |
1010 | .soclk(soclk)); | |
1011 | ||
1012 | // flop data | |
1013 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_64 ucb_data_out ( | |
1014 | .scan_in(ucb_data_out_scanin), | |
1015 | .scan_out(ucb_data_out_scanout), | |
1016 | .din(rdata_ucb_drif_data_cpu[63:0]), | |
1017 | .dout(mcu_ucb_data[63:0]), | |
1018 | .en(rdata_cmp_io_sync_en), | |
1019 | .l1clk(l1clk), | |
1020 | .siclk(siclk), | |
1021 | .soclk(soclk)); | |
1022 | ||
1023 | // flop secc counter interrupt | |
1024 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_2 ff_ncu_intr ( | |
1025 | .scan_in(ff_ncu_intr_scanin), | |
1026 | .scan_out(ff_ncu_intr_scanout), | |
1027 | .din({rdata_secc_cnt_intr_cpu,rdata_fbr_intr_cpu}), | |
1028 | .dout({rdata_err_intr,rdata_err_fbr}), | |
1029 | .en(rdata_cmp_io_sync_en), | |
1030 | .l1clk(l1clk), | |
1031 | .siclk(siclk), | |
1032 | .soclk(soclk)); | |
1033 | ||
1034 | // | |
1035 | mcu_rdata_ctl_msff_ctl_macro__en_1 ff_serdes_dtm ( | |
1036 | .scan_in(ff_serdes_dtm_scanin), | |
1037 | .scan_out(ff_serdes_dtm_scanout), | |
1038 | .din(rdata_serdes_dtm_cpu), | |
1039 | .dout(rdata_serdes_dtm), | |
1040 | .en(rdata_cmp_io_sync_en), | |
1041 | .l1clk(l1clk), | |
1042 | .siclk(siclk), | |
1043 | .soclk(soclk)); | |
1044 | ||
1045 | ///////////////////////////////////////////////// | |
1046 | // SIGNALS FROM CPU CLK TO DRAM CLK | |
1047 | ///////////////////////////////////////////////// | |
1048 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_test_signals ( | |
1049 | .scan_in(ff_test_signals_scanin), | |
1050 | .scan_out(ff_test_signals_scanout), | |
1051 | .din({rdata_selfrsh}), | |
1052 | .dout({rdata_mcu_selfrsh}), | |
1053 | .en(rdata_cmp_ddr_sync_en), | |
1054 | .l1clk(l1clk), | |
1055 | .siclk(siclk), | |
1056 | .soclk(soclk)); | |
1057 | ||
1058 | // flop write and read valid | |
1059 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_2 rdata_ucb_rd_wr_vld ( | |
1060 | .scan_in(rdata_ucb_rd_wr_vld_scanin), | |
1061 | .scan_out(rdata_ucb_rd_wr_vld_scanout), | |
1062 | .din({rdata_ucb_rd_req_vld_cpu, rdata_ucb_wr_req_vld_cpu}), | |
1063 | .dout({rdata_drif_rd_req_vld, rdata_drif_wr_req_vld}), | |
1064 | .en(rdata_cmp_ddr_sync_en), | |
1065 | .l1clk(l1clk), | |
1066 | .siclk(siclk), | |
1067 | .soclk(soclk)); | |
1068 | ||
1069 | // flop addr in | |
1070 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_13 rdata_ucb_addr_in ( | |
1071 | .scan_in(rdata_ucb_addr_in_scanin), | |
1072 | .scan_out(rdata_ucb_addr_in_scanout), | |
1073 | .din(rdata_ucb_addr_cpu[12:0]), | |
1074 | .dout(rdata_drif_addr[12:0]), | |
1075 | .en(rdata_cmp_ddr_sync_en), | |
1076 | .l1clk(l1clk), | |
1077 | .siclk(siclk), | |
1078 | .soclk(soclk)); | |
1079 | ||
1080 | // flop data in | |
1081 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_64 rdata_ucb_data_in ( | |
1082 | .scan_in(rdata_ucb_data_in_scanin), | |
1083 | .scan_out(rdata_ucb_data_in_scanout), | |
1084 | .din(rdata_ucb_data_cpu[63:0]), | |
1085 | .dout(rdata_drif_data[63:0]), | |
1086 | .en(rdata_cmp_ddr_sync_en), | |
1087 | .l1clk(l1clk), | |
1088 | .siclk(siclk), | |
1089 | .soclk(soclk)); | |
1090 | ||
1091 | // error injection signals | |
1092 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_3 ff_err_inj ( | |
1093 | .scan_in(ff_err_inj_scanin), | |
1094 | .scan_out(ff_err_inj_scanout), | |
1095 | .din({rdata_ucb_err_ecci,rdata_ucb_err_fbri,rdata_ucb_err_fbui}), | |
1096 | .dout({rdata_err_ecci,rdata_err_fbri,rdata_err_fbui}), | |
1097 | .en(rdata_cmp_ddr_sync_en), | |
1098 | .l1clk(l1clk), | |
1099 | .siclk(siclk), | |
1100 | .soclk(soclk)); | |
1101 | ||
1102 | assign rdata_pm_two_mcus = rdata_pm_ba01 & rdata_pm_ba23 | | |
1103 | rdata_pm_ba01 & rdata_pm_ba45 | | |
1104 | rdata_pm_ba01 & rdata_pm_ba67 | | |
1105 | rdata_pm_ba23 & rdata_pm_ba45 | | |
1106 | rdata_pm_ba23 & rdata_pm_ba67 | | |
1107 | rdata_pm_ba45 & rdata_pm_ba67; | |
1108 | ||
1109 | assign rdata_pm_2mcu_in = rdata_pm & rdata_pm_two_mcus; | |
1110 | assign rdata_pm_1mcu_in = rdata_pm & ~rdata_pm_two_mcus; | |
1111 | ||
1112 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_2 ff_pm_mcus ( | |
1113 | .scan_in(ff_pm_mcus_scanin), | |
1114 | .scan_out(ff_pm_mcus_scanout), | |
1115 | .din({rdata_pm_1mcu_in,rdata_pm_2mcu_in}), | |
1116 | .dout({rdata_pm_1mcu,rdata_pm_2mcu}), | |
1117 | .en(rdata_cmp_ddr_sync_en), | |
1118 | .l1clk(l1clk), | |
1119 | .siclk(siclk), | |
1120 | .soclk(soclk)); | |
1121 | ||
1122 | ///////////////////////////////////////////////// | |
1123 | // SIGNALS FROM MCU CLK TO CPU CLK | |
1124 | ///////////////////////////////////////////////// | |
1125 | // flop ucb read ack and nack | |
1126 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_2 rdata_ucb_ack_nack ( | |
1127 | .scan_in(rdata_ucb_ack_nack_scanin), | |
1128 | .scan_out(rdata_ucb_ack_nack_scanout), | |
1129 | .din({drif_rdata_ack_vld, drif_rdata_nack_vld}), | |
1130 | .dout({rdata_ucb_ack_vld, rdata_ucb_nack_vld}), | |
1131 | .en(rdata_ddr_cmp_sync_en), | |
1132 | .l1clk(l1clk), | |
1133 | .siclk(siclk), | |
1134 | .soclk(soclk)); | |
1135 | ||
1136 | // flop ucb read data | |
1137 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_64 ff_ucb_data_out ( | |
1138 | .scan_in(ff_ucb_data_out_scanin), | |
1139 | .scan_out(ff_ucb_data_out_scanout), | |
1140 | .din(drif_rdata_data[63:0]), | |
1141 | .dout(rdata_ucb_drif_data[63:0]), | |
1142 | .en(rdata_ddr_cmp_sync_en), | |
1143 | .l1clk(l1clk), | |
1144 | .siclk(siclk), | |
1145 | .soclk(soclk)); | |
1146 | ||
1147 | ////////////////////////////////////////////////////// | |
1148 | // incoming signals from rdpctl | |
1149 | ////////////////////////////////////////////////////// | |
1150 | ||
1151 | // data valids for l2 cache | |
1152 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_2 ff_data_valid ( | |
1153 | .scan_in(ff_data_valid_scanin), | |
1154 | .scan_out(ff_data_valid_scanout), | |
1155 | .din({rdpctl_l2t0_data_valid,rdpctl_l2t1_data_valid}), | |
1156 | .dout({rdata_l2t0_data_valid,rdata_l2t1_data_valid}), | |
1157 | .en(rdata_ddr_cmp_sync_en), | |
1158 | .l1clk(l1clk), | |
1159 | .siclk(siclk), | |
1160 | .soclk(soclk)); | |
1161 | ||
1162 | // read request id's for l2 cache | |
1163 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_3 ff_rd_req_id ( | |
1164 | .scan_in(ff_rd_req_id_scanin), | |
1165 | .scan_out(ff_rd_req_id_scanout), | |
1166 | .din(rdpctl_rd_req_id[2:0]), | |
1167 | .dout(rdata_rd_req_id[2:0]), | |
1168 | .en(rdata_ddr_cmp_sync_en), | |
1169 | .l1clk(l1clk), | |
1170 | .siclk(siclk), | |
1171 | .soclk(soclk)); | |
1172 | ||
1173 | // quad word id's for l2 cache | |
1174 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_qword_id ( | |
1175 | .scan_in(ff_qword_id_scanin), | |
1176 | .scan_out(ff_qword_id_scanout), | |
1177 | .din(rdpctl_qword_id), | |
1178 | .dout(rdata_qword_id), | |
1179 | .en(rdata_ddr_cmp_sync_en), | |
1180 | .l1clk(l1clk), | |
1181 | .siclk(siclk), | |
1182 | .soclk(soclk)); | |
1183 | ||
1184 | // error flags for l2 cache | |
1185 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_4 ff_scrub_err_valid ( | |
1186 | .scan_in(ff_scrub_err_valid_scanin), | |
1187 | .scan_out(ff_scrub_err_valid_scanout), | |
1188 | .din({rdpctl_scrb0_err_valid, rdpctl_scrb1_err_valid, rdpctl_fbd0_recov_err, rdpctl_fbd1_recov_err}), | |
1189 | .dout({rdata_scrb0_err_valid, rdata_scrb1_err_valid, rdata_fbd0_recov_err, rdata_fbd1_recov_err}), | |
1190 | .en(rdata_ddr_cmp_sync_en), | |
1191 | .l1clk(l1clk), | |
1192 | .siclk(siclk), | |
1193 | .soclk(soclk)); | |
1194 | ||
1195 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_3 ff_pa_err_p2 ( | |
1196 | .scan_in(ff_pa_err_p2_scanin), | |
1197 | .scan_out(ff_pa_err_p2_scanout), | |
1198 | .din({rdpctl_pa_err, rdpctl_fbd_unrecov_err[1:0]}), | |
1199 | .dout({rdata_pa_err_p2, rdata_fbd_unrecov_err_p1_1, rdata_fbd_unrecov_err_p2_0}), | |
1200 | .en(rdata_ddr_cmp_sync_en), | |
1201 | .l1clk(l1clk), | |
1202 | .siclk(siclk), | |
1203 | .soclk(soclk)); | |
1204 | ||
1205 | // debug trigger enable | |
1206 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ff_dbg_trig ( | |
1207 | .scan_in(ff_dbg_trig_scanin), | |
1208 | .scan_out(ff_dbg_trig_scanout), | |
1209 | .din(rdpctl_dbg_trig_enable), | |
1210 | .dout(rdata_dbg_trig_enable), | |
1211 | .en(rdata_ddr_cmp_sync_en), | |
1212 | .l1clk(l1clk), | |
1213 | .siclk(siclk), | |
1214 | .soclk(soclk)); | |
1215 | ||
1216 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_4 ff_debug_signals ( | |
1217 | .scan_in(ff_debug_signals_scanin), | |
1218 | .scan_out(ff_debug_signals_scanout), | |
1219 | .din({fbdic_fbd_error,drif_mcu_error_mode,woq_wr_req_out[1:0]}), | |
1220 | .dout({rdata_fbd_error_out,rdata_mcu_error_mode,rdata_wr_req_out_out[1:0]}), | |
1221 | .en(rdata_ddr_cmp_sync_en), | |
1222 | .l1clk(l1clk), | |
1223 | .siclk(siclk), | |
1224 | .soclk(soclk)); | |
1225 | ||
1226 | assign rdata_fbd_error = rdata_fbd_error_out & rdata_ddr_cmp_sync_en_d1; | |
1227 | assign rdata_wr_req_out[1:0] = rdata_wr_req_out_out[1:0] & {2{rdata_ddr_cmp_sync_en_d1}}; | |
1228 | ||
1229 | // interrupts for NCU | |
1230 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_2 ff_rdata_intr ( | |
1231 | .scan_in(ff_rdata_intr_scanin), | |
1232 | .scan_out(ff_rdata_intr_scanout), | |
1233 | .din({rdpctl_secc_cnt_intr,fbdic_err_fbr}), | |
1234 | .dout({rdata_secc_cnt_intr,rdata_fbr_intr}), | |
1235 | .en(rdata_ddr_cmp_sync_en), | |
1236 | .l1clk(l1clk), | |
1237 | .siclk(siclk), | |
1238 | .soclk(soclk)); | |
1239 | ||
1240 | // SERDES DTM mux select for ucb | |
1241 | mcu_rdata_ctl_msff_ctl_macro__en_1 ff_serdes_dtm_cpu ( | |
1242 | .scan_in(ff_serdes_dtm_cpu_scanin), | |
1243 | .scan_out(ff_serdes_dtm_cpu_scanout), | |
1244 | .din(fbdic_srds_dtm_muxsel), | |
1245 | .dout(rdata_serdes_dtm_cpu), | |
1246 | .en(rdata_ddr_cmp_sync_en), | |
1247 | .l1clk(l1clk), | |
1248 | .siclk(siclk), | |
1249 | .soclk(soclk)); | |
1250 | ||
1251 | ////////////////////////////////////////////////////////////////// | |
1252 | // Generate L2 response for read requests | |
1253 | ////////////////////////////////////////////////////////////////// | |
1254 | ||
1255 | assign mcu_l2t0_data_vld_r0 = rdata_l2t0_data_valid & rdata_ddr_cmp_sync_en_d12; | |
1256 | assign mcu_l2t1_data_vld_r0 = rdata_l2t1_data_valid & rdata_ddr_cmp_sync_en_d12; | |
1257 | assign mcu_l2t0_rd_req_id_r0[2:0] = rdata_rd_req_id[2:0]; | |
1258 | assign mcu_l2t1_rd_req_id_r0[2:0] = rdata_rd_req_id[2:0]; | |
1259 | assign mcu_l2t0_qword_id_r0[1:0] = {rdata_qword_id, rdata_ddr_cmp_sync_en_d2 & rdata_l2t0_data_valid}; | |
1260 | assign mcu_l2t1_qword_id_r0[1:0] = {rdata_qword_id, rdata_ddr_cmp_sync_en_d2 & rdata_l2t1_data_valid}; | |
1261 | ||
1262 | assign rdata_ddr_cmp_sync_en_d12_in = rdata_ddr_cmp_sync_en | rdata_ddr_cmp_sync_en_d1; | |
1263 | mcu_rdata_ctl_msff_ctl_macro ff_ddr_cmp_sync_en_d12 ( | |
1264 | .scan_in(ff_ddr_cmp_sync_en_d12_scanin), | |
1265 | .scan_out(ff_ddr_cmp_sync_en_d12_scanout), | |
1266 | .din(rdata_ddr_cmp_sync_en_d12_in), | |
1267 | .dout(rdata_ddr_cmp_sync_en_d12), | |
1268 | .l1clk(l1clk), | |
1269 | .siclk(siclk), | |
1270 | .soclk(soclk)); | |
1271 | ||
1272 | // select signal to force data and l2ecc to zero for dummy reads | |
1273 | assign rdata_rddata_sel[1:0] = rdata_ddr_cmp_sync_en_d1 ? 2'h2 : 2'h1; | |
1274 | ||
1275 | ///////////////////////////////////////////////// | |
1276 | // ECC Detect and Correct data | |
1277 | ///////////////////////////////////////////////// | |
1278 | ||
1279 | // scrubbing ecc error signals | |
1280 | assign mcu_l2t0_scb_secc_err_in = readdp_l2_secc_err_dly1 & rdata_scrb0_err_valid & rdata_ddr_cmp_sync_en_d12 | | |
1281 | rdata_fbd0_recov_err & rdata_ddr_cmp_sync_en_d1; | |
1282 | assign mcu_l2t0_scb_mecc_err_in = readdp_l2_mecc_err_dly1 & rdata_scrb0_err_valid & rdata_ddr_cmp_sync_en_d12 | | |
1283 | rdata_fbd_unrecov_err_p1_1 & rdata_ddr_cmp_sync_en_d1; | |
1284 | assign mcu_l2t1_scb_secc_err_in = readdp_l2_secc_err_dly1 & rdata_scrb1_err_valid & rdata_ddr_cmp_sync_en_d12 | | |
1285 | rdata_fbd1_recov_err & rdata_ddr_cmp_sync_en_d1; | |
1286 | assign mcu_l2t1_scb_mecc_err_in = readdp_l2_mecc_err_dly1 & rdata_scrb1_err_valid & rdata_ddr_cmp_sync_en_d12; | |
1287 | ||
1288 | mcu_rdata_ctl_msff_ctl_macro__width_4 ff_l2_scb_mecc_secc ( | |
1289 | .scan_in(ff_l2_scb_mecc_secc_scanin), | |
1290 | .scan_out(ff_l2_scb_mecc_secc_scanout), | |
1291 | .din({ mcu_l2t0_scb_mecc_err_in, mcu_l2t0_scb_secc_err_in, mcu_l2t1_scb_mecc_err_in, mcu_l2t1_scb_secc_err_in}), | |
1292 | .dout({mcu_l2t0_scb_mecc_err, mcu_l2t0_scb_secc_err, mcu_l2t1_scb_mecc_err, mcu_l2t1_scb_secc_err}), | |
1293 | .l1clk(l1clk), | |
1294 | .siclk(siclk), | |
1295 | .soclk(soclk)); | |
1296 | ||
1297 | // L2 read ecc error signals | |
1298 | assign rdata_ddr_cmp_sync_en_d23_in = rdata_ddr_cmp_sync_en_d1 | rdata_ddr_cmp_sync_en_d2; | |
1299 | mcu_rdata_ctl_msff_ctl_macro ff_ddr_cmp_sync_en_d23 ( | |
1300 | .scan_in(ff_ddr_cmp_sync_en_d23_scanin), | |
1301 | .scan_out(ff_ddr_cmp_sync_en_d23_scanout), | |
1302 | .din(rdata_ddr_cmp_sync_en_d23_in), | |
1303 | .dout(rdata_ddr_cmp_sync_en_d23), | |
1304 | .l1clk(l1clk), | |
1305 | .siclk(siclk), | |
1306 | .soclk(soclk)); | |
1307 | ||
1308 | mcu_rdata_ctl_msff_ctl_macro__width_2 ff_data_valid_d1 ( | |
1309 | .scan_in(ff_data_valid_d1_scanin), | |
1310 | .scan_out(ff_data_valid_d1_scanout), | |
1311 | .din({rdata_l2t0_data_valid,rdata_l2t1_data_valid}), | |
1312 | .dout({rdata_l2t0_data_valid_d1,rdata_l2t1_data_valid_d1}), | |
1313 | .l1clk(l1clk), | |
1314 | .siclk(siclk), | |
1315 | .soclk(soclk)); | |
1316 | ||
1317 | mcu_rdata_ctl_msff_ctl_macro__width_2 ff_pa_err_p1 ( | |
1318 | .scan_in(ff_pa_err_p1_scanin), | |
1319 | .scan_out(ff_pa_err_p1_scanout), | |
1320 | .din({rdata_pa_err_p2, rdata_fbd_unrecov_err_p2_0}), | |
1321 | .dout({rdata_pa_err_p1, rdata_fbd_unrecov_err_p1_0}), | |
1322 | .l1clk(l1clk), | |
1323 | .siclk(siclk), | |
1324 | .soclk(soclk)); | |
1325 | ||
1326 | assign mcu_l2t0_mecc_err_r1 = (readdp_l2_mecc_err_dly1 | rdata_pa_err_p1 | rdata_fbd_unrecov_err_p1_0) & | |
1327 | rdata_l2t0_data_valid_d1 & rdata_ddr_cmp_sync_en_d23; | |
1328 | assign mcu_l2t1_mecc_err_r1 = (readdp_l2_mecc_err_dly1 | rdata_pa_err_p1 | rdata_fbd_unrecov_err_p1_0) & | |
1329 | rdata_l2t1_data_valid_d1 & rdata_ddr_cmp_sync_en_d23; | |
1330 | ||
1331 | assign mcu_l2t0_secc_err_r1 = readdp_l2_secc_err_dly1 & rdata_l2t0_data_valid_d1 & rdata_ddr_cmp_sync_en_d23; | |
1332 | assign mcu_l2t1_secc_err_r1 = readdp_l2_secc_err_dly1 & rdata_l2t1_data_valid_d1 & rdata_ddr_cmp_sync_en_d23; | |
1333 | ||
1334 | // delay the error bits to match up with the data | |
1335 | mcu_rdata_ctl_msff_ctl_macro__width_4 ff_l2_mecc_secc_r2 ( | |
1336 | .scan_in(ff_l2_mecc_secc_r2_scanin), | |
1337 | .scan_out(ff_l2_mecc_secc_r2_scanout), | |
1338 | .din({mcu_l2t0_mecc_err_r1, mcu_l2t0_secc_err_r1, mcu_l2t1_mecc_err_r1, mcu_l2t1_secc_err_r1}), | |
1339 | .dout({mcu_l2t0_mecc_err_r2, mcu_l2t0_secc_err_r2, mcu_l2t1_mecc_err_r2, mcu_l2t1_secc_err_r2}), | |
1340 | .l1clk(l1clk), | |
1341 | .siclk(siclk), | |
1342 | .soclk(soclk)); | |
1343 | ||
1344 | mcu_rdata_ctl_msff_ctl_macro__width_4 ff_l2_mecc_secc_r3 ( | |
1345 | .scan_in(ff_l2_mecc_secc_r3_scanin), | |
1346 | .scan_out(ff_l2_mecc_secc_r3_scanout), | |
1347 | .din({mcu_l2t0_mecc_err_r2, mcu_l2t0_secc_err_r2, mcu_l2t1_mecc_err_r2, mcu_l2t1_secc_err_r2}), | |
1348 | .dout({mcu_l2t0_mecc_err_r3, mcu_l2t0_secc_err_r3, mcu_l2t1_mecc_err_r3, mcu_l2t1_secc_err_r3}), | |
1349 | .l1clk(l1clk), | |
1350 | .siclk(siclk), | |
1351 | .soclk(soclk)); | |
1352 | ||
1353 | assign rdata_pa_err_in = (rdata_pa_err_p1 | rdata_fbd_unrecov_err_p1_0) & | |
1354 | (rdata_l2t0_data_valid_d1 | rdata_l2t1_data_valid_d1) & rdata_ddr_cmp_sync_en_d23; | |
1355 | mcu_rdata_ctl_msff_ctl_macro ff_pa_err ( | |
1356 | .scan_in(ff_pa_err_scanin), | |
1357 | .scan_out(ff_pa_err_scanout), | |
1358 | .din(rdata_pa_err_in), | |
1359 | .dout(rdata_pa_err), | |
1360 | .l1clk(l1clk), | |
1361 | .siclk(siclk), | |
1362 | .soclk(soclk)); | |
1363 | ||
1364 | // MBIST read data | |
1365 | ||
1366 | mcu_rdata_ctl_msff_ctl_macro__width_32 ff_mbist_data ( | |
1367 | .scan_in(ff_mbist_data_scanin), | |
1368 | .scan_out(ff_mbist_data_scanout), | |
1369 | .din({wdqrf00_data[7:0],wdqrf01_data[7:0],wdqrf10_data[7:0],wdqrf11_data[7:0]}), | |
1370 | .dout({wdqrf00_data_reg[7:0],wdqrf01_data_reg[7:0],wdqrf10_data_reg[7:0],wdqrf11_data_reg[7:0]}), | |
1371 | .l1clk(l1clk), | |
1372 | .siclk(siclk), | |
1373 | .soclk(soclk)); | |
1374 | ||
1375 | assign mbist_read_data[7:0] = | |
1376 | wdqrf00_data_reg[7:0] & {8{~mbist_sel_bank0or1_d1 & ~mbist_sel_hiorlo_72bits_d1 & mbist_run_d1}} | | |
1377 | wdqrf01_data_reg[7:0] & {8{~mbist_sel_bank0or1_d1 & mbist_sel_hiorlo_72bits_d1 & mbist_run_d1}} | | |
1378 | wdqrf10_data_reg[7:0] & {8{ mbist_sel_bank0or1_d1 & ~mbist_sel_hiorlo_72bits_d1 & mbist_run_d1}} | | |
1379 | wdqrf11_data_reg[7:0] & {8{ mbist_sel_bank0or1_d1 & mbist_sel_hiorlo_72bits_d1 & mbist_run_d1}}; | |
1380 | ||
1381 | // MBIST read enable and address | |
1382 | mcu_rdata_ctl_msff_ctl_macro ff_mbist_run_d1 ( | |
1383 | .scan_in(ff_mbist_addr_scanin), | |
1384 | .scan_out(ff_mbist_run_d1_scanout), | |
1385 | .din(mbist_run), | |
1386 | .dout(mbist_run_d1), | |
1387 | .l1clk(l1clk), | |
1388 | .siclk(siclk), | |
1389 | .soclk(soclk)); | |
1390 | ||
1391 | mcu_rdata_ctl_msff_ctl_macro__en_1__width_11 ff_mbist_addr ( | |
1392 | .scan_in(ff_mbist_run_d1_scanout), | |
1393 | .scan_out(ff_mbist_addr_scanout), | |
1394 | .din({mbist_addr[4:0],mbist_sel_bank0or1,mbist_sel_hiorlo_72bits, | |
1395 | mbist_wdqrf00_rd_en,mbist_wdqrf01_rd_en,mbist_wdqrf10_rd_en,mbist_wdqrf11_rd_en}), | |
1396 | .dout({mbist_addr_d1[4:0],mbist_sel_bank0or1_d1,mbist_sel_hiorlo_72bits_d1, | |
1397 | mbist_wdqrf00_rd_en_d1,mbist_wdqrf01_rd_en_d1,mbist_wdqrf10_rd_en_d1,mbist_wdqrf11_rd_en_d1}), | |
1398 | .en(mbist_run), | |
1399 | .l1clk(l1clk), | |
1400 | .siclk(siclk), | |
1401 | .soclk(soclk)); | |
1402 | ||
1403 | assign mbist_run_d1_l = ~mbist_run_d1; | |
1404 | ||
1405 | assign rdata_wdq_radr[4:0] = mbist_run_d1 ? mbist_addr_d1[4:0] : drif_wdq_radr[4:0]; | |
1406 | assign rdata0_wdq_rd[0] = mbist_run_d1 ? mbist_wdqrf00_rd_en_d1 : drif0_wdq_rd; | |
1407 | assign rdata0_wdq_rd[1] = mbist_run_d1 ? mbist_wdqrf01_rd_en_d1 : drif0_wdq_rd; | |
1408 | assign rdata1_wdq_rd[0] = mbist_run_d1 ? mbist_wdqrf10_rd_en_d1 : drif1_wdq_rd; | |
1409 | assign rdata1_wdq_rd[1] = mbist_run_d1 ? mbist_wdqrf11_rd_en_d1 : drif1_wdq_rd; | |
1410 | ||
1411 | // spare gates | |
1412 | mcu_rdata_ctl_spare_ctl_macro__num_5 spares ( | |
1413 | .scan_in(spares_scanin), | |
1414 | .scan_out(spares_scanout), | |
1415 | .l1clk(l1clk), | |
1416 | .siclk(siclk), | |
1417 | .soclk(soclk) | |
1418 | ); | |
1419 | ||
1420 | // fixscan start: | |
1421 | assign ff_mcu_sync_pulses_scanin = scan_in ; | |
1422 | assign ff_io_sync_pulses_scanin = ff_mcu_sync_pulses_scanout; | |
1423 | assign ff_mcu_sync_pulse_delays_scanin = ff_io_sync_pulses_scanout; | |
1424 | assign ff_data_word_cnt_scanin = ff_mcu_sync_pulse_delays_scanout; | |
1425 | assign ff_ucb_rdata_rd_req_id_scanin = ff_data_word_cnt_scanout ; | |
1426 | assign ff_ucb_rdata_rd_req_id_d1_scanin = ff_ucb_rdata_rd_req_id_scanout; | |
1427 | assign ff_ucb_mecc_err_o_scanin = ff_ucb_rdata_rd_req_id_d1_scanout; | |
1428 | assign ff_ucb_mecc_err_d1_scanin = ff_ucb_mecc_err_o_scanout; | |
1429 | assign ff_ucb_secc_err_o_scanin = ff_ucb_mecc_err_d1_scanout; | |
1430 | assign ff_ucb_secc_err_d1_scanin = ff_ucb_secc_err_o_scanout; | |
1431 | assign ff_ucb_err_event_d1_scanin = ff_ucb_secc_err_d1_scanout; | |
1432 | assign ff_ucb_err_event_scanin = ff_ucb_err_event_d1_scanout; | |
1433 | assign ff_ucb_fbd_error_d1_scanin = ff_ucb_err_event_scanout ; | |
1434 | assign ff_ucb_fbd_error_scanin = ff_ucb_fbd_error_d1_scanout; | |
1435 | assign ff_mcu_ucb_err_mode_scanin = ff_ucb_fbd_error_scanout ; | |
1436 | assign ff_wr_req_out_cnt_scanin = ff_mcu_ucb_err_mode_scanout; | |
1437 | assign ff_ucb_wr_req_out1_d1_scanin = ff_wr_req_out_cnt_scanout; | |
1438 | assign ff_ucb_wr_req_out1_scanin = ff_ucb_wr_req_out1_d1_scanout; | |
1439 | assign ff_ucb_wr_req_out0_scanin = ff_ucb_wr_req_out1_scanout; | |
1440 | assign ff_ucb_test_signals_scanin = ff_ucb_wr_req_out0_scanout; | |
1441 | assign ucb_rd_wr_vld_scanin = ff_ucb_test_signals_scanout; | |
1442 | assign ucb_addr_in_scanin = ucb_rd_wr_vld_scanout ; | |
1443 | assign ucb_data_in_scanin = ucb_addr_in_scanout ; | |
1444 | assign ff_ucb_err_inj_scanin = ucb_data_in_scanout ; | |
1445 | assign ff_partial_bank_mode_scanin = ff_ucb_err_inj_scanout ; | |
1446 | assign rdata_wr_vld_scanin = ff_partial_bank_mode_scanout; | |
1447 | assign rdata_rd_vld_scanin = rdata_wr_vld_scanout ; | |
1448 | assign ff_rdata_ucb_addr_cpu_scanin = rdata_rd_vld_scanout ; | |
1449 | assign ff_rdata_ucb_data_cpu_scanin = ff_rdata_ucb_addr_cpu_scanout; | |
1450 | assign ucb_ack_scanin = ff_rdata_ucb_data_cpu_scanout; | |
1451 | assign ucb_nack_scanin = ucb_ack_scanout ; | |
1452 | assign ucb_data_cpu_scanin = ucb_nack_scanout ; | |
1453 | assign ff_ecc_intr_scanin = ucb_data_cpu_scanout ; | |
1454 | assign ff_fbr_intr_scanin = ff_ecc_intr_scanout ; | |
1455 | assign ucb_ack_nack_scanin = ff_fbr_intr_scanout ; | |
1456 | assign ucb_data_out_scanin = ucb_ack_nack_scanout ; | |
1457 | assign ff_ncu_intr_scanin = ucb_data_out_scanout ; | |
1458 | assign ff_serdes_dtm_scanin = ff_ncu_intr_scanout ; | |
1459 | assign ff_test_signals_scanin = ff_serdes_dtm_scanout ; | |
1460 | assign rdata_ucb_rd_wr_vld_scanin = ff_test_signals_scanout ; | |
1461 | assign rdata_ucb_addr_in_scanin = rdata_ucb_rd_wr_vld_scanout; | |
1462 | assign rdata_ucb_data_in_scanin = rdata_ucb_addr_in_scanout; | |
1463 | assign ff_err_inj_scanin = rdata_ucb_data_in_scanout; | |
1464 | assign ff_pm_mcus_scanin = ff_err_inj_scanout ; | |
1465 | assign rdata_ucb_ack_nack_scanin = ff_pm_mcus_scanout ; | |
1466 | assign ff_ucb_data_out_scanin = rdata_ucb_ack_nack_scanout; | |
1467 | assign ff_data_valid_scanin = ff_ucb_data_out_scanout ; | |
1468 | assign ff_rd_req_id_scanin = ff_data_valid_scanout ; | |
1469 | assign ff_qword_id_scanin = ff_rd_req_id_scanout ; | |
1470 | assign ff_scrub_err_valid_scanin = ff_qword_id_scanout ; | |
1471 | assign ff_pa_err_p2_scanin = ff_scrub_err_valid_scanout; | |
1472 | assign ff_dbg_trig_scanin = ff_pa_err_p2_scanout ; | |
1473 | assign ff_debug_signals_scanin = ff_dbg_trig_scanout ; | |
1474 | assign ff_rdata_intr_scanin = ff_debug_signals_scanout ; | |
1475 | assign ff_serdes_dtm_cpu_scanin = ff_rdata_intr_scanout ; | |
1476 | assign ff_ddr_cmp_sync_en_d12_scanin = ff_serdes_dtm_cpu_scanout; | |
1477 | assign ff_l2_scb_mecc_secc_scanin = ff_ddr_cmp_sync_en_d12_scanout; | |
1478 | assign ff_ddr_cmp_sync_en_d23_scanin = ff_l2_scb_mecc_secc_scanout; | |
1479 | assign ff_data_valid_d1_scanin = ff_ddr_cmp_sync_en_d23_scanout; | |
1480 | assign ff_pa_err_p1_scanin = ff_data_valid_d1_scanout ; | |
1481 | assign ff_l2_mecc_secc_r2_scanin = ff_pa_err_p1_scanout ; | |
1482 | assign ff_l2_mecc_secc_r3_scanin = ff_l2_mecc_secc_r2_scanout; | |
1483 | assign ff_pa_err_scanin = ff_l2_mecc_secc_r3_scanout; | |
1484 | assign ff_mbist_data_scanin = ff_pa_err_scanout ; | |
1485 | assign ff_mbist_addr_scanin = ff_mbist_data_scanout ; | |
1486 | assign spares_scanin = ff_mbist_addr_scanout ; | |
1487 | assign scan_out = spares_scanout ; | |
1488 | // fixscan end: | |
1489 | endmodule | |
1490 | ||
1491 | ||
1492 | ||
1493 | ||
1494 | ||
1495 | ||
1496 | // any PARAMS parms go into naming of macro | |
1497 | ||
1498 | module mcu_rdata_ctl_l1clkhdr_ctl_macro ( | |
1499 | l2clk, | |
1500 | l1en, | |
1501 | pce_ov, | |
1502 | stop, | |
1503 | se, | |
1504 | l1clk); | |
1505 | ||
1506 | ||
1507 | input l2clk; | |
1508 | input l1en; | |
1509 | input pce_ov; | |
1510 | input stop; | |
1511 | input se; | |
1512 | output l1clk; | |
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | cl_sc1_l1hdr_8x c_0 ( | |
1519 | ||
1520 | ||
1521 | .l2clk(l2clk), | |
1522 | .pce(l1en), | |
1523 | .l1clk(l1clk), | |
1524 | .se(se), | |
1525 | .pce_ov(pce_ov), | |
1526 | .stop(stop) | |
1527 | ); | |
1528 | ||
1529 | ||
1530 | ||
1531 | endmodule | |
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | // any PARAMS parms go into naming of macro | |
1546 | ||
1547 | module mcu_rdata_ctl_msff_ctl_macro__width_2 ( | |
1548 | din, | |
1549 | l1clk, | |
1550 | scan_in, | |
1551 | siclk, | |
1552 | soclk, | |
1553 | dout, | |
1554 | scan_out); | |
1555 | wire [1:0] fdin; | |
1556 | wire [0:0] so; | |
1557 | ||
1558 | input [1:0] din; | |
1559 | input l1clk; | |
1560 | input scan_in; | |
1561 | ||
1562 | ||
1563 | input siclk; | |
1564 | input soclk; | |
1565 | ||
1566 | output [1:0] dout; | |
1567 | output scan_out; | |
1568 | assign fdin[1:0] = din[1:0]; | |
1569 | ||
1570 | ||
1571 | ||
1572 | ||
1573 | ||
1574 | ||
1575 | dff #(2) d0_0 ( | |
1576 | .l1clk(l1clk), | |
1577 | .siclk(siclk), | |
1578 | .soclk(soclk), | |
1579 | .d(fdin[1:0]), | |
1580 | .si({scan_in,so[0:0]}), | |
1581 | .so({so[0:0],scan_out}), | |
1582 | .q(dout[1:0]) | |
1583 | ); | |
1584 | ||
1585 | ||
1586 | ||
1587 | ||
1588 | ||
1589 | ||
1590 | ||
1591 | ||
1592 | ||
1593 | ||
1594 | ||
1595 | ||
1596 | endmodule | |
1597 | ||
1598 | ||
1599 | ||
1600 | ||
1601 | ||
1602 | ||
1603 | ||
1604 | ||
1605 | ||
1606 | ||
1607 | ||
1608 | ||
1609 | ||
1610 | // any PARAMS parms go into naming of macro | |
1611 | ||
1612 | module mcu_rdata_ctl_msff_ctl_macro__width_4 ( | |
1613 | din, | |
1614 | l1clk, | |
1615 | scan_in, | |
1616 | siclk, | |
1617 | soclk, | |
1618 | dout, | |
1619 | scan_out); | |
1620 | wire [3:0] fdin; | |
1621 | wire [2:0] so; | |
1622 | ||
1623 | input [3:0] din; | |
1624 | input l1clk; | |
1625 | input scan_in; | |
1626 | ||
1627 | ||
1628 | input siclk; | |
1629 | input soclk; | |
1630 | ||
1631 | output [3:0] dout; | |
1632 | output scan_out; | |
1633 | assign fdin[3:0] = din[3:0]; | |
1634 | ||
1635 | ||
1636 | ||
1637 | ||
1638 | ||
1639 | ||
1640 | dff #(4) d0_0 ( | |
1641 | .l1clk(l1clk), | |
1642 | .siclk(siclk), | |
1643 | .soclk(soclk), | |
1644 | .d(fdin[3:0]), | |
1645 | .si({scan_in,so[2:0]}), | |
1646 | .so({so[2:0],scan_out}), | |
1647 | .q(dout[3:0]) | |
1648 | ); | |
1649 | ||
1650 | ||
1651 | ||
1652 | ||
1653 | ||
1654 | ||
1655 | ||
1656 | ||
1657 | ||
1658 | ||
1659 | ||
1660 | ||
1661 | endmodule | |
1662 | ||
1663 | ||
1664 | ||
1665 | ||
1666 | ||
1667 | ||
1668 | ||
1669 | ||
1670 | ||
1671 | ||
1672 | ||
1673 | ||
1674 | ||
1675 | // any PARAMS parms go into naming of macro | |
1676 | ||
1677 | module mcu_rdata_ctl_msff_ctl_macro__width_5 ( | |
1678 | din, | |
1679 | l1clk, | |
1680 | scan_in, | |
1681 | siclk, | |
1682 | soclk, | |
1683 | dout, | |
1684 | scan_out); | |
1685 | wire [4:0] fdin; | |
1686 | wire [3:0] so; | |
1687 | ||
1688 | input [4:0] din; | |
1689 | input l1clk; | |
1690 | input scan_in; | |
1691 | ||
1692 | ||
1693 | input siclk; | |
1694 | input soclk; | |
1695 | ||
1696 | output [4:0] dout; | |
1697 | output scan_out; | |
1698 | assign fdin[4:0] = din[4:0]; | |
1699 | ||
1700 | ||
1701 | ||
1702 | ||
1703 | ||
1704 | ||
1705 | dff #(5) d0_0 ( | |
1706 | .l1clk(l1clk), | |
1707 | .siclk(siclk), | |
1708 | .soclk(soclk), | |
1709 | .d(fdin[4:0]), | |
1710 | .si({scan_in,so[3:0]}), | |
1711 | .so({so[3:0],scan_out}), | |
1712 | .q(dout[4:0]) | |
1713 | ); | |
1714 | ||
1715 | ||
1716 | ||
1717 | ||
1718 | ||
1719 | ||
1720 | ||
1721 | ||
1722 | ||
1723 | ||
1724 | ||
1725 | ||
1726 | endmodule | |
1727 | ||
1728 | ||
1729 | ||
1730 | ||
1731 | ||
1732 | ||
1733 | ||
1734 | ||
1735 | ||
1736 | ||
1737 | ||
1738 | ||
1739 | ||
1740 | // any PARAMS parms go into naming of macro | |
1741 | ||
1742 | module mcu_rdata_ctl_msff_ctl_macro__en_1__width_5 ( | |
1743 | din, | |
1744 | en, | |
1745 | l1clk, | |
1746 | scan_in, | |
1747 | siclk, | |
1748 | soclk, | |
1749 | dout, | |
1750 | scan_out); | |
1751 | wire [4:0] fdin; | |
1752 | wire [3:0] so; | |
1753 | ||
1754 | input [4:0] din; | |
1755 | input en; | |
1756 | input l1clk; | |
1757 | input scan_in; | |
1758 | ||
1759 | ||
1760 | input siclk; | |
1761 | input soclk; | |
1762 | ||
1763 | output [4:0] dout; | |
1764 | output scan_out; | |
1765 | assign fdin[4:0] = (din[4:0] & {5{en}}) | (dout[4:0] & ~{5{en}}); | |
1766 | ||
1767 | ||
1768 | ||
1769 | ||
1770 | ||
1771 | ||
1772 | dff #(5) d0_0 ( | |
1773 | .l1clk(l1clk), | |
1774 | .siclk(siclk), | |
1775 | .soclk(soclk), | |
1776 | .d(fdin[4:0]), | |
1777 | .si({scan_in,so[3:0]}), | |
1778 | .so({so[3:0],scan_out}), | |
1779 | .q(dout[4:0]) | |
1780 | ); | |
1781 | ||
1782 | ||
1783 | ||
1784 | ||
1785 | ||
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | ||
1791 | ||
1792 | ||
1793 | endmodule | |
1794 | ||
1795 | ||
1796 | ||
1797 | ||
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | ||
1803 | ||
1804 | ||
1805 | ||
1806 | ||
1807 | // any PARAMS parms go into naming of macro | |
1808 | ||
1809 | module mcu_rdata_ctl_msff_ctl_macro__width_1 ( | |
1810 | din, | |
1811 | l1clk, | |
1812 | scan_in, | |
1813 | siclk, | |
1814 | soclk, | |
1815 | dout, | |
1816 | scan_out); | |
1817 | wire [0:0] fdin; | |
1818 | ||
1819 | input [0:0] din; | |
1820 | input l1clk; | |
1821 | input scan_in; | |
1822 | ||
1823 | ||
1824 | input siclk; | |
1825 | input soclk; | |
1826 | ||
1827 | output [0:0] dout; | |
1828 | output scan_out; | |
1829 | assign fdin[0:0] = din[0:0]; | |
1830 | ||
1831 | ||
1832 | ||
1833 | ||
1834 | ||
1835 | ||
1836 | dff #(1) d0_0 ( | |
1837 | .l1clk(l1clk), | |
1838 | .siclk(siclk), | |
1839 | .soclk(soclk), | |
1840 | .d(fdin[0:0]), | |
1841 | .si(scan_in), | |
1842 | .so(scan_out), | |
1843 | .q(dout[0:0]) | |
1844 | ); | |
1845 | ||
1846 | ||
1847 | ||
1848 | ||
1849 | ||
1850 | ||
1851 | ||
1852 | ||
1853 | ||
1854 | ||
1855 | ||
1856 | ||
1857 | endmodule | |
1858 | ||
1859 | ||
1860 | ||
1861 | ||
1862 | ||
1863 | ||
1864 | ||
1865 | ||
1866 | ||
1867 | ||
1868 | ||
1869 | ||
1870 | ||
1871 | // any PARAMS parms go into naming of macro | |
1872 | ||
1873 | module mcu_rdata_ctl_msff_ctl_macro__en_1__width_1 ( | |
1874 | din, | |
1875 | en, | |
1876 | l1clk, | |
1877 | scan_in, | |
1878 | siclk, | |
1879 | soclk, | |
1880 | dout, | |
1881 | scan_out); | |
1882 | wire [0:0] fdin; | |
1883 | ||
1884 | input [0:0] din; | |
1885 | input en; | |
1886 | input l1clk; | |
1887 | input scan_in; | |
1888 | ||
1889 | ||
1890 | input siclk; | |
1891 | input soclk; | |
1892 | ||
1893 | output [0:0] dout; | |
1894 | output scan_out; | |
1895 | assign fdin[0:0] = (din[0:0] & {1{en}}) | (dout[0:0] & ~{1{en}}); | |
1896 | ||
1897 | ||
1898 | ||
1899 | ||
1900 | ||
1901 | ||
1902 | dff #(1) d0_0 ( | |
1903 | .l1clk(l1clk), | |
1904 | .siclk(siclk), | |
1905 | .soclk(soclk), | |
1906 | .d(fdin[0:0]), | |
1907 | .si(scan_in), | |
1908 | .so(scan_out), | |
1909 | .q(dout[0:0]) | |
1910 | ); | |
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | ||
1916 | ||
1917 | ||
1918 | ||
1919 | ||
1920 | ||
1921 | ||
1922 | ||
1923 | endmodule | |
1924 | ||
1925 | ||
1926 | ||
1927 | ||
1928 | ||
1929 | ||
1930 | ||
1931 | ||
1932 | ||
1933 | ||
1934 | ||
1935 | ||
1936 | ||
1937 | // any PARAMS parms go into naming of macro | |
1938 | ||
1939 | module mcu_rdata_ctl_msff_ctl_macro__en_1 ( | |
1940 | din, | |
1941 | en, | |
1942 | l1clk, | |
1943 | scan_in, | |
1944 | siclk, | |
1945 | soclk, | |
1946 | dout, | |
1947 | scan_out); | |
1948 | wire [0:0] fdin; | |
1949 | ||
1950 | input [0:0] din; | |
1951 | input en; | |
1952 | input l1clk; | |
1953 | input scan_in; | |
1954 | ||
1955 | ||
1956 | input siclk; | |
1957 | input soclk; | |
1958 | ||
1959 | output [0:0] dout; | |
1960 | output scan_out; | |
1961 | assign fdin[0:0] = (din[0:0] & {1{en}}) | (dout[0:0] & ~{1{en}}); | |
1962 | ||
1963 | ||
1964 | ||
1965 | ||
1966 | ||
1967 | ||
1968 | dff #(1) d0_0 ( | |
1969 | .l1clk(l1clk), | |
1970 | .siclk(siclk), | |
1971 | .soclk(soclk), | |
1972 | .d(fdin[0:0]), | |
1973 | .si(scan_in), | |
1974 | .so(scan_out), | |
1975 | .q(dout[0:0]) | |
1976 | ); | |
1977 | ||
1978 | ||
1979 | ||
1980 | ||
1981 | ||
1982 | ||
1983 | ||
1984 | ||
1985 | ||
1986 | ||
1987 | ||
1988 | ||
1989 | endmodule | |
1990 | ||
1991 | ||
1992 | ||
1993 | ||
1994 | ||
1995 | ||
1996 | ||
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | ||
2003 | // any PARAMS parms go into naming of macro | |
2004 | ||
2005 | module mcu_rdata_ctl_msff_ctl_macro__en_1__width_2 ( | |
2006 | din, | |
2007 | en, | |
2008 | l1clk, | |
2009 | scan_in, | |
2010 | siclk, | |
2011 | soclk, | |
2012 | dout, | |
2013 | scan_out); | |
2014 | wire [1:0] fdin; | |
2015 | wire [0:0] so; | |
2016 | ||
2017 | input [1:0] din; | |
2018 | input en; | |
2019 | input l1clk; | |
2020 | input scan_in; | |
2021 | ||
2022 | ||
2023 | input siclk; | |
2024 | input soclk; | |
2025 | ||
2026 | output [1:0] dout; | |
2027 | output scan_out; | |
2028 | assign fdin[1:0] = (din[1:0] & {2{en}}) | (dout[1:0] & ~{2{en}}); | |
2029 | ||
2030 | ||
2031 | ||
2032 | ||
2033 | ||
2034 | ||
2035 | dff #(2) d0_0 ( | |
2036 | .l1clk(l1clk), | |
2037 | .siclk(siclk), | |
2038 | .soclk(soclk), | |
2039 | .d(fdin[1:0]), | |
2040 | .si({scan_in,so[0:0]}), | |
2041 | .so({so[0:0],scan_out}), | |
2042 | .q(dout[1:0]) | |
2043 | ); | |
2044 | ||
2045 | ||
2046 | ||
2047 | ||
2048 | ||
2049 | ||
2050 | ||
2051 | ||
2052 | ||
2053 | ||
2054 | ||
2055 | ||
2056 | endmodule | |
2057 | ||
2058 | ||
2059 | ||
2060 | ||
2061 | ||
2062 | ||
2063 | ||
2064 | ||
2065 | ||
2066 | ||
2067 | ||
2068 | ||
2069 | ||
2070 | // any PARAMS parms go into naming of macro | |
2071 | ||
2072 | module mcu_rdata_ctl_msff_ctl_macro__en_1__width_13 ( | |
2073 | din, | |
2074 | en, | |
2075 | l1clk, | |
2076 | scan_in, | |
2077 | siclk, | |
2078 | soclk, | |
2079 | dout, | |
2080 | scan_out); | |
2081 | wire [12:0] fdin; | |
2082 | wire [11:0] so; | |
2083 | ||
2084 | input [12:0] din; | |
2085 | input en; | |
2086 | input l1clk; | |
2087 | input scan_in; | |
2088 | ||
2089 | ||
2090 | input siclk; | |
2091 | input soclk; | |
2092 | ||
2093 | output [12:0] dout; | |
2094 | output scan_out; | |
2095 | assign fdin[12:0] = (din[12:0] & {13{en}}) | (dout[12:0] & ~{13{en}}); | |
2096 | ||
2097 | ||
2098 | ||
2099 | ||
2100 | ||
2101 | ||
2102 | dff #(13) d0_0 ( | |
2103 | .l1clk(l1clk), | |
2104 | .siclk(siclk), | |
2105 | .soclk(soclk), | |
2106 | .d(fdin[12:0]), | |
2107 | .si({scan_in,so[11:0]}), | |
2108 | .so({so[11:0],scan_out}), | |
2109 | .q(dout[12:0]) | |
2110 | ); | |
2111 | ||
2112 | ||
2113 | ||
2114 | ||
2115 | ||
2116 | ||
2117 | ||
2118 | ||
2119 | ||
2120 | ||
2121 | ||
2122 | ||
2123 | endmodule | |
2124 | ||
2125 | ||
2126 | ||
2127 | ||
2128 | ||
2129 | ||
2130 | ||
2131 | ||
2132 | ||
2133 | ||
2134 | ||
2135 | ||
2136 | ||
2137 | // any PARAMS parms go into naming of macro | |
2138 | ||
2139 | module mcu_rdata_ctl_msff_ctl_macro__en_1__width_64 ( | |
2140 | din, | |
2141 | en, | |
2142 | l1clk, | |
2143 | scan_in, | |
2144 | siclk, | |
2145 | soclk, | |
2146 | dout, | |
2147 | scan_out); | |
2148 | wire [63:0] fdin; | |
2149 | wire [62:0] so; | |
2150 | ||
2151 | input [63:0] din; | |
2152 | input en; | |
2153 | input l1clk; | |
2154 | input scan_in; | |
2155 | ||
2156 | ||
2157 | input siclk; | |
2158 | input soclk; | |
2159 | ||
2160 | output [63:0] dout; | |
2161 | output scan_out; | |
2162 | assign fdin[63:0] = (din[63:0] & {64{en}}) | (dout[63:0] & ~{64{en}}); | |
2163 | ||
2164 | ||
2165 | ||
2166 | ||
2167 | ||
2168 | ||
2169 | dff #(64) d0_0 ( | |
2170 | .l1clk(l1clk), | |
2171 | .siclk(siclk), | |
2172 | .soclk(soclk), | |
2173 | .d(fdin[63:0]), | |
2174 | .si({scan_in,so[62:0]}), | |
2175 | .so({so[62:0],scan_out}), | |
2176 | .q(dout[63:0]) | |
2177 | ); | |
2178 | ||
2179 | ||
2180 | ||
2181 | ||
2182 | ||
2183 | ||
2184 | ||
2185 | ||
2186 | ||
2187 | ||
2188 | ||
2189 | ||
2190 | endmodule | |
2191 | ||
2192 | ||
2193 | ||
2194 | ||
2195 | ||
2196 | ||
2197 | ||
2198 | ||
2199 | ||
2200 | ||
2201 | ||
2202 | ||
2203 | ||
2204 | // any PARAMS parms go into naming of macro | |
2205 | ||
2206 | module mcu_rdata_ctl_msff_ctl_macro__en_1__width_3 ( | |
2207 | din, | |
2208 | en, | |
2209 | l1clk, | |
2210 | scan_in, | |
2211 | siclk, | |
2212 | soclk, | |
2213 | dout, | |
2214 | scan_out); | |
2215 | wire [2:0] fdin; | |
2216 | wire [1:0] so; | |
2217 | ||
2218 | input [2:0] din; | |
2219 | input en; | |
2220 | input l1clk; | |
2221 | input scan_in; | |
2222 | ||
2223 | ||
2224 | input siclk; | |
2225 | input soclk; | |
2226 | ||
2227 | output [2:0] dout; | |
2228 | output scan_out; | |
2229 | assign fdin[2:0] = (din[2:0] & {3{en}}) | (dout[2:0] & ~{3{en}}); | |
2230 | ||
2231 | ||
2232 | ||
2233 | ||
2234 | ||
2235 | ||
2236 | dff #(3) d0_0 ( | |
2237 | .l1clk(l1clk), | |
2238 | .siclk(siclk), | |
2239 | .soclk(soclk), | |
2240 | .d(fdin[2:0]), | |
2241 | .si({scan_in,so[1:0]}), | |
2242 | .so({so[1:0],scan_out}), | |
2243 | .q(dout[2:0]) | |
2244 | ); | |
2245 | ||
2246 | ||
2247 | ||
2248 | ||
2249 | ||
2250 | ||
2251 | ||
2252 | ||
2253 | ||
2254 | ||
2255 | ||
2256 | ||
2257 | endmodule | |
2258 | ||
2259 | ||
2260 | ||
2261 | ||
2262 | ||
2263 | ||
2264 | ||
2265 | ||
2266 | ||
2267 | ||
2268 | ||
2269 | ||
2270 | ||
2271 | // any PARAMS parms go into naming of macro | |
2272 | ||
2273 | module mcu_rdata_ctl_msff_ctl_macro__clr_1__en_1__width_1 ( | |
2274 | din, | |
2275 | en, | |
2276 | clr, | |
2277 | l1clk, | |
2278 | scan_in, | |
2279 | siclk, | |
2280 | soclk, | |
2281 | dout, | |
2282 | scan_out); | |
2283 | wire [0:0] fdin; | |
2284 | ||
2285 | input [0:0] din; | |
2286 | input en; | |
2287 | input clr; | |
2288 | input l1clk; | |
2289 | input scan_in; | |
2290 | ||
2291 | ||
2292 | input siclk; | |
2293 | input soclk; | |
2294 | ||
2295 | output [0:0] dout; | |
2296 | output scan_out; | |
2297 | assign fdin[0:0] = (din[0:0] & {1{en}} & ~{1{clr}}) | (dout[0:0] & ~{1{en}} & ~{1{clr}}); | |
2298 | ||
2299 | ||
2300 | ||
2301 | ||
2302 | ||
2303 | ||
2304 | dff #(1) d0_0 ( | |
2305 | .l1clk(l1clk), | |
2306 | .siclk(siclk), | |
2307 | .soclk(soclk), | |
2308 | .d(fdin[0:0]), | |
2309 | .si(scan_in), | |
2310 | .so(scan_out), | |
2311 | .q(dout[0:0]) | |
2312 | ); | |
2313 | ||
2314 | ||
2315 | ||
2316 | ||
2317 | ||
2318 | ||
2319 | ||
2320 | ||
2321 | ||
2322 | ||
2323 | ||
2324 | ||
2325 | endmodule | |
2326 | ||
2327 | ||
2328 | ||
2329 | ||
2330 | ||
2331 | ||
2332 | ||
2333 | ||
2334 | ||
2335 | ||
2336 | ||
2337 | ||
2338 | ||
2339 | // any PARAMS parms go into naming of macro | |
2340 | ||
2341 | module mcu_rdata_ctl_msff_ctl_macro__en_1__width_4 ( | |
2342 | din, | |
2343 | en, | |
2344 | l1clk, | |
2345 | scan_in, | |
2346 | siclk, | |
2347 | soclk, | |
2348 | dout, | |
2349 | scan_out); | |
2350 | wire [3:0] fdin; | |
2351 | wire [2:0] so; | |
2352 | ||
2353 | input [3:0] din; | |
2354 | input en; | |
2355 | input l1clk; | |
2356 | input scan_in; | |
2357 | ||
2358 | ||
2359 | input siclk; | |
2360 | input soclk; | |
2361 | ||
2362 | output [3:0] dout; | |
2363 | output scan_out; | |
2364 | assign fdin[3:0] = (din[3:0] & {4{en}}) | (dout[3:0] & ~{4{en}}); | |
2365 | ||
2366 | ||
2367 | ||
2368 | ||
2369 | ||
2370 | ||
2371 | dff #(4) d0_0 ( | |
2372 | .l1clk(l1clk), | |
2373 | .siclk(siclk), | |
2374 | .soclk(soclk), | |
2375 | .d(fdin[3:0]), | |
2376 | .si({scan_in,so[2:0]}), | |
2377 | .so({so[2:0],scan_out}), | |
2378 | .q(dout[3:0]) | |
2379 | ); | |
2380 | ||
2381 | ||
2382 | ||
2383 | ||
2384 | ||
2385 | ||
2386 | ||
2387 | ||
2388 | ||
2389 | ||
2390 | ||
2391 | ||
2392 | endmodule | |
2393 | ||
2394 | ||
2395 | ||
2396 | ||
2397 | ||
2398 | ||
2399 | ||
2400 | ||
2401 | ||
2402 | ||
2403 | ||
2404 | ||
2405 | ||
2406 | // any PARAMS parms go into naming of macro | |
2407 | ||
2408 | module mcu_rdata_ctl_msff_ctl_macro ( | |
2409 | din, | |
2410 | l1clk, | |
2411 | scan_in, | |
2412 | siclk, | |
2413 | soclk, | |
2414 | dout, | |
2415 | scan_out); | |
2416 | wire [0:0] fdin; | |
2417 | ||
2418 | input [0:0] din; | |
2419 | input l1clk; | |
2420 | input scan_in; | |
2421 | ||
2422 | ||
2423 | input siclk; | |
2424 | input soclk; | |
2425 | ||
2426 | output [0:0] dout; | |
2427 | output scan_out; | |
2428 | assign fdin[0:0] = din[0:0]; | |
2429 | ||
2430 | ||
2431 | ||
2432 | ||
2433 | ||
2434 | ||
2435 | dff #(1) d0_0 ( | |
2436 | .l1clk(l1clk), | |
2437 | .siclk(siclk), | |
2438 | .soclk(soclk), | |
2439 | .d(fdin[0:0]), | |
2440 | .si(scan_in), | |
2441 | .so(scan_out), | |
2442 | .q(dout[0:0]) | |
2443 | ); | |
2444 | ||
2445 | ||
2446 | ||
2447 | ||
2448 | ||
2449 | ||
2450 | ||
2451 | ||
2452 | ||
2453 | ||
2454 | ||
2455 | ||
2456 | endmodule | |
2457 | ||
2458 | ||
2459 | ||
2460 | ||
2461 | ||
2462 | ||
2463 | ||
2464 | ||
2465 | ||
2466 | ||
2467 | ||
2468 | ||
2469 | ||
2470 | // any PARAMS parms go into naming of macro | |
2471 | ||
2472 | module mcu_rdata_ctl_msff_ctl_macro__width_32 ( | |
2473 | din, | |
2474 | l1clk, | |
2475 | scan_in, | |
2476 | siclk, | |
2477 | soclk, | |
2478 | dout, | |
2479 | scan_out); | |
2480 | wire [31:0] fdin; | |
2481 | wire [30:0] so; | |
2482 | ||
2483 | input [31:0] din; | |
2484 | input l1clk; | |
2485 | input scan_in; | |
2486 | ||
2487 | ||
2488 | input siclk; | |
2489 | input soclk; | |
2490 | ||
2491 | output [31:0] dout; | |
2492 | output scan_out; | |
2493 | assign fdin[31:0] = din[31:0]; | |
2494 | ||
2495 | ||
2496 | ||
2497 | ||
2498 | ||
2499 | ||
2500 | dff #(32) d0_0 ( | |
2501 | .l1clk(l1clk), | |
2502 | .siclk(siclk), | |
2503 | .soclk(soclk), | |
2504 | .d(fdin[31:0]), | |
2505 | .si({scan_in,so[30:0]}), | |
2506 | .so({so[30:0],scan_out}), | |
2507 | .q(dout[31:0]) | |
2508 | ); | |
2509 | ||
2510 | ||
2511 | ||
2512 | ||
2513 | ||
2514 | ||
2515 | ||
2516 | ||
2517 | ||
2518 | ||
2519 | ||
2520 | ||
2521 | endmodule | |
2522 | ||
2523 | ||
2524 | ||
2525 | ||
2526 | ||
2527 | ||
2528 | ||
2529 | ||
2530 | ||
2531 | ||
2532 | ||
2533 | ||
2534 | ||
2535 | // any PARAMS parms go into naming of macro | |
2536 | ||
2537 | module mcu_rdata_ctl_msff_ctl_macro__en_1__width_11 ( | |
2538 | din, | |
2539 | en, | |
2540 | l1clk, | |
2541 | scan_in, | |
2542 | siclk, | |
2543 | soclk, | |
2544 | dout, | |
2545 | scan_out); | |
2546 | wire [10:0] fdin; | |
2547 | wire [9:0] so; | |
2548 | ||
2549 | input [10:0] din; | |
2550 | input en; | |
2551 | input l1clk; | |
2552 | input scan_in; | |
2553 | ||
2554 | ||
2555 | input siclk; | |
2556 | input soclk; | |
2557 | ||
2558 | output [10:0] dout; | |
2559 | output scan_out; | |
2560 | assign fdin[10:0] = (din[10:0] & {11{en}}) | (dout[10:0] & ~{11{en}}); | |
2561 | ||
2562 | ||
2563 | ||
2564 | ||
2565 | ||
2566 | ||
2567 | dff #(11) d0_0 ( | |
2568 | .l1clk(l1clk), | |
2569 | .siclk(siclk), | |
2570 | .soclk(soclk), | |
2571 | .d(fdin[10:0]), | |
2572 | .si({scan_in,so[9:0]}), | |
2573 | .so({so[9:0],scan_out}), | |
2574 | .q(dout[10:0]) | |
2575 | ); | |
2576 | ||
2577 | ||
2578 | ||
2579 | ||
2580 | ||
2581 | ||
2582 | ||
2583 | ||
2584 | ||
2585 | ||
2586 | ||
2587 | ||
2588 | endmodule | |
2589 | ||
2590 | ||
2591 | ||
2592 | ||
2593 | ||
2594 | ||
2595 | ||
2596 | ||
2597 | ||
2598 | // Description: Spare gate macro for control blocks | |
2599 | // | |
2600 | // Param num controls the number of times the macro is added | |
2601 | // flops=0 can be used to use only combination spare logic | |
2602 | ||
2603 | ||
2604 | module mcu_rdata_ctl_spare_ctl_macro__num_5 ( | |
2605 | l1clk, | |
2606 | scan_in, | |
2607 | siclk, | |
2608 | soclk, | |
2609 | scan_out); | |
2610 | wire si_0; | |
2611 | wire so_0; | |
2612 | wire spare0_flop_unused; | |
2613 | wire spare0_buf_32x_unused; | |
2614 | wire spare0_nand3_8x_unused; | |
2615 | wire spare0_inv_8x_unused; | |
2616 | wire spare0_aoi22_4x_unused; | |
2617 | wire spare0_buf_8x_unused; | |
2618 | wire spare0_oai22_4x_unused; | |
2619 | wire spare0_inv_16x_unused; | |
2620 | wire spare0_nand2_16x_unused; | |
2621 | wire spare0_nor3_4x_unused; | |
2622 | wire spare0_nand2_8x_unused; | |
2623 | wire spare0_buf_16x_unused; | |
2624 | wire spare0_nor2_16x_unused; | |
2625 | wire spare0_inv_32x_unused; | |
2626 | wire si_1; | |
2627 | wire so_1; | |
2628 | wire spare1_flop_unused; | |
2629 | wire spare1_buf_32x_unused; | |
2630 | wire spare1_nand3_8x_unused; | |
2631 | wire spare1_inv_8x_unused; | |
2632 | wire spare1_aoi22_4x_unused; | |
2633 | wire spare1_buf_8x_unused; | |
2634 | wire spare1_oai22_4x_unused; | |
2635 | wire spare1_inv_16x_unused; | |
2636 | wire spare1_nand2_16x_unused; | |
2637 | wire spare1_nor3_4x_unused; | |
2638 | wire spare1_nand2_8x_unused; | |
2639 | wire spare1_buf_16x_unused; | |
2640 | wire spare1_nor2_16x_unused; | |
2641 | wire spare1_inv_32x_unused; | |
2642 | wire si_2; | |
2643 | wire so_2; | |
2644 | wire spare2_flop_unused; | |
2645 | wire spare2_buf_32x_unused; | |
2646 | wire spare2_nand3_8x_unused; | |
2647 | wire spare2_inv_8x_unused; | |
2648 | wire spare2_aoi22_4x_unused; | |
2649 | wire spare2_buf_8x_unused; | |
2650 | wire spare2_oai22_4x_unused; | |
2651 | wire spare2_inv_16x_unused; | |
2652 | wire spare2_nand2_16x_unused; | |
2653 | wire spare2_nor3_4x_unused; | |
2654 | wire spare2_nand2_8x_unused; | |
2655 | wire spare2_buf_16x_unused; | |
2656 | wire spare2_nor2_16x_unused; | |
2657 | wire spare2_inv_32x_unused; | |
2658 | wire si_3; | |
2659 | wire so_3; | |
2660 | wire spare3_flop_unused; | |
2661 | wire spare3_buf_32x_unused; | |
2662 | wire spare3_nand3_8x_unused; | |
2663 | wire spare3_inv_8x_unused; | |
2664 | wire spare3_aoi22_4x_unused; | |
2665 | wire spare3_buf_8x_unused; | |
2666 | wire spare3_oai22_4x_unused; | |
2667 | wire spare3_inv_16x_unused; | |
2668 | wire spare3_nand2_16x_unused; | |
2669 | wire spare3_nor3_4x_unused; | |
2670 | wire spare3_nand2_8x_unused; | |
2671 | wire spare3_buf_16x_unused; | |
2672 | wire spare3_nor2_16x_unused; | |
2673 | wire spare3_inv_32x_unused; | |
2674 | wire si_4; | |
2675 | wire so_4; | |
2676 | wire spare4_flop_unused; | |
2677 | wire spare4_buf_32x_unused; | |
2678 | wire spare4_nand3_8x_unused; | |
2679 | wire spare4_inv_8x_unused; | |
2680 | wire spare4_aoi22_4x_unused; | |
2681 | wire spare4_buf_8x_unused; | |
2682 | wire spare4_oai22_4x_unused; | |
2683 | wire spare4_inv_16x_unused; | |
2684 | wire spare4_nand2_16x_unused; | |
2685 | wire spare4_nor3_4x_unused; | |
2686 | wire spare4_nand2_8x_unused; | |
2687 | wire spare4_buf_16x_unused; | |
2688 | wire spare4_nor2_16x_unused; | |
2689 | wire spare4_inv_32x_unused; | |
2690 | ||
2691 | ||
2692 | input l1clk; | |
2693 | input scan_in; | |
2694 | input siclk; | |
2695 | input soclk; | |
2696 | output scan_out; | |
2697 | ||
2698 | cl_sc1_msff_8x spare0_flop (.l1clk(l1clk), | |
2699 | .siclk(siclk), | |
2700 | .soclk(soclk), | |
2701 | .si(si_0), | |
2702 | .so(so_0), | |
2703 | .d(1'b0), | |
2704 | .q(spare0_flop_unused)); | |
2705 | assign si_0 = scan_in; | |
2706 | ||
2707 | cl_u1_buf_32x spare0_buf_32x (.in(1'b1), | |
2708 | .out(spare0_buf_32x_unused)); | |
2709 | cl_u1_nand3_8x spare0_nand3_8x (.in0(1'b1), | |
2710 | .in1(1'b1), | |
2711 | .in2(1'b1), | |
2712 | .out(spare0_nand3_8x_unused)); | |
2713 | cl_u1_inv_8x spare0_inv_8x (.in(1'b1), | |
2714 | .out(spare0_inv_8x_unused)); | |
2715 | cl_u1_aoi22_4x spare0_aoi22_4x (.in00(1'b1), | |
2716 | .in01(1'b1), | |
2717 | .in10(1'b1), | |
2718 | .in11(1'b1), | |
2719 | .out(spare0_aoi22_4x_unused)); | |
2720 | cl_u1_buf_8x spare0_buf_8x (.in(1'b1), | |
2721 | .out(spare0_buf_8x_unused)); | |
2722 | cl_u1_oai22_4x spare0_oai22_4x (.in00(1'b1), | |
2723 | .in01(1'b1), | |
2724 | .in10(1'b1), | |
2725 | .in11(1'b1), | |
2726 | .out(spare0_oai22_4x_unused)); | |
2727 | cl_u1_inv_16x spare0_inv_16x (.in(1'b1), | |
2728 | .out(spare0_inv_16x_unused)); | |
2729 | cl_u1_nand2_16x spare0_nand2_16x (.in0(1'b1), | |
2730 | .in1(1'b1), | |
2731 | .out(spare0_nand2_16x_unused)); | |
2732 | cl_u1_nor3_4x spare0_nor3_4x (.in0(1'b0), | |
2733 | .in1(1'b0), | |
2734 | .in2(1'b0), | |
2735 | .out(spare0_nor3_4x_unused)); | |
2736 | cl_u1_nand2_8x spare0_nand2_8x (.in0(1'b1), | |
2737 | .in1(1'b1), | |
2738 | .out(spare0_nand2_8x_unused)); | |
2739 | cl_u1_buf_16x spare0_buf_16x (.in(1'b1), | |
2740 | .out(spare0_buf_16x_unused)); | |
2741 | cl_u1_nor2_16x spare0_nor2_16x (.in0(1'b0), | |
2742 | .in1(1'b0), | |
2743 | .out(spare0_nor2_16x_unused)); | |
2744 | cl_u1_inv_32x spare0_inv_32x (.in(1'b1), | |
2745 | .out(spare0_inv_32x_unused)); | |
2746 | ||
2747 | cl_sc1_msff_8x spare1_flop (.l1clk(l1clk), | |
2748 | .siclk(siclk), | |
2749 | .soclk(soclk), | |
2750 | .si(si_1), | |
2751 | .so(so_1), | |
2752 | .d(1'b0), | |
2753 | .q(spare1_flop_unused)); | |
2754 | assign si_1 = so_0; | |
2755 | ||
2756 | cl_u1_buf_32x spare1_buf_32x (.in(1'b1), | |
2757 | .out(spare1_buf_32x_unused)); | |
2758 | cl_u1_nand3_8x spare1_nand3_8x (.in0(1'b1), | |
2759 | .in1(1'b1), | |
2760 | .in2(1'b1), | |
2761 | .out(spare1_nand3_8x_unused)); | |
2762 | cl_u1_inv_8x spare1_inv_8x (.in(1'b1), | |
2763 | .out(spare1_inv_8x_unused)); | |
2764 | cl_u1_aoi22_4x spare1_aoi22_4x (.in00(1'b1), | |
2765 | .in01(1'b1), | |
2766 | .in10(1'b1), | |
2767 | .in11(1'b1), | |
2768 | .out(spare1_aoi22_4x_unused)); | |
2769 | cl_u1_buf_8x spare1_buf_8x (.in(1'b1), | |
2770 | .out(spare1_buf_8x_unused)); | |
2771 | cl_u1_oai22_4x spare1_oai22_4x (.in00(1'b1), | |
2772 | .in01(1'b1), | |
2773 | .in10(1'b1), | |
2774 | .in11(1'b1), | |
2775 | .out(spare1_oai22_4x_unused)); | |
2776 | cl_u1_inv_16x spare1_inv_16x (.in(1'b1), | |
2777 | .out(spare1_inv_16x_unused)); | |
2778 | cl_u1_nand2_16x spare1_nand2_16x (.in0(1'b1), | |
2779 | .in1(1'b1), | |
2780 | .out(spare1_nand2_16x_unused)); | |
2781 | cl_u1_nor3_4x spare1_nor3_4x (.in0(1'b0), | |
2782 | .in1(1'b0), | |
2783 | .in2(1'b0), | |
2784 | .out(spare1_nor3_4x_unused)); | |
2785 | cl_u1_nand2_8x spare1_nand2_8x (.in0(1'b1), | |
2786 | .in1(1'b1), | |
2787 | .out(spare1_nand2_8x_unused)); | |
2788 | cl_u1_buf_16x spare1_buf_16x (.in(1'b1), | |
2789 | .out(spare1_buf_16x_unused)); | |
2790 | cl_u1_nor2_16x spare1_nor2_16x (.in0(1'b0), | |
2791 | .in1(1'b0), | |
2792 | .out(spare1_nor2_16x_unused)); | |
2793 | cl_u1_inv_32x spare1_inv_32x (.in(1'b1), | |
2794 | .out(spare1_inv_32x_unused)); | |
2795 | ||
2796 | cl_sc1_msff_8x spare2_flop (.l1clk(l1clk), | |
2797 | .siclk(siclk), | |
2798 | .soclk(soclk), | |
2799 | .si(si_2), | |
2800 | .so(so_2), | |
2801 | .d(1'b0), | |
2802 | .q(spare2_flop_unused)); | |
2803 | assign si_2 = so_1; | |
2804 | ||
2805 | cl_u1_buf_32x spare2_buf_32x (.in(1'b1), | |
2806 | .out(spare2_buf_32x_unused)); | |
2807 | cl_u1_nand3_8x spare2_nand3_8x (.in0(1'b1), | |
2808 | .in1(1'b1), | |
2809 | .in2(1'b1), | |
2810 | .out(spare2_nand3_8x_unused)); | |
2811 | cl_u1_inv_8x spare2_inv_8x (.in(1'b1), | |
2812 | .out(spare2_inv_8x_unused)); | |
2813 | cl_u1_aoi22_4x spare2_aoi22_4x (.in00(1'b1), | |
2814 | .in01(1'b1), | |
2815 | .in10(1'b1), | |
2816 | .in11(1'b1), | |
2817 | .out(spare2_aoi22_4x_unused)); | |
2818 | cl_u1_buf_8x spare2_buf_8x (.in(1'b1), | |
2819 | .out(spare2_buf_8x_unused)); | |
2820 | cl_u1_oai22_4x spare2_oai22_4x (.in00(1'b1), | |
2821 | .in01(1'b1), | |
2822 | .in10(1'b1), | |
2823 | .in11(1'b1), | |
2824 | .out(spare2_oai22_4x_unused)); | |
2825 | cl_u1_inv_16x spare2_inv_16x (.in(1'b1), | |
2826 | .out(spare2_inv_16x_unused)); | |
2827 | cl_u1_nand2_16x spare2_nand2_16x (.in0(1'b1), | |
2828 | .in1(1'b1), | |
2829 | .out(spare2_nand2_16x_unused)); | |
2830 | cl_u1_nor3_4x spare2_nor3_4x (.in0(1'b0), | |
2831 | .in1(1'b0), | |
2832 | .in2(1'b0), | |
2833 | .out(spare2_nor3_4x_unused)); | |
2834 | cl_u1_nand2_8x spare2_nand2_8x (.in0(1'b1), | |
2835 | .in1(1'b1), | |
2836 | .out(spare2_nand2_8x_unused)); | |
2837 | cl_u1_buf_16x spare2_buf_16x (.in(1'b1), | |
2838 | .out(spare2_buf_16x_unused)); | |
2839 | cl_u1_nor2_16x spare2_nor2_16x (.in0(1'b0), | |
2840 | .in1(1'b0), | |
2841 | .out(spare2_nor2_16x_unused)); | |
2842 | cl_u1_inv_32x spare2_inv_32x (.in(1'b1), | |
2843 | .out(spare2_inv_32x_unused)); | |
2844 | ||
2845 | cl_sc1_msff_8x spare3_flop (.l1clk(l1clk), | |
2846 | .siclk(siclk), | |
2847 | .soclk(soclk), | |
2848 | .si(si_3), | |
2849 | .so(so_3), | |
2850 | .d(1'b0), | |
2851 | .q(spare3_flop_unused)); | |
2852 | assign si_3 = so_2; | |
2853 | ||
2854 | cl_u1_buf_32x spare3_buf_32x (.in(1'b1), | |
2855 | .out(spare3_buf_32x_unused)); | |
2856 | cl_u1_nand3_8x spare3_nand3_8x (.in0(1'b1), | |
2857 | .in1(1'b1), | |
2858 | .in2(1'b1), | |
2859 | .out(spare3_nand3_8x_unused)); | |
2860 | cl_u1_inv_8x spare3_inv_8x (.in(1'b1), | |
2861 | .out(spare3_inv_8x_unused)); | |
2862 | cl_u1_aoi22_4x spare3_aoi22_4x (.in00(1'b1), | |
2863 | .in01(1'b1), | |
2864 | .in10(1'b1), | |
2865 | .in11(1'b1), | |
2866 | .out(spare3_aoi22_4x_unused)); | |
2867 | cl_u1_buf_8x spare3_buf_8x (.in(1'b1), | |
2868 | .out(spare3_buf_8x_unused)); | |
2869 | cl_u1_oai22_4x spare3_oai22_4x (.in00(1'b1), | |
2870 | .in01(1'b1), | |
2871 | .in10(1'b1), | |
2872 | .in11(1'b1), | |
2873 | .out(spare3_oai22_4x_unused)); | |
2874 | cl_u1_inv_16x spare3_inv_16x (.in(1'b1), | |
2875 | .out(spare3_inv_16x_unused)); | |
2876 | cl_u1_nand2_16x spare3_nand2_16x (.in0(1'b1), | |
2877 | .in1(1'b1), | |
2878 | .out(spare3_nand2_16x_unused)); | |
2879 | cl_u1_nor3_4x spare3_nor3_4x (.in0(1'b0), | |
2880 | .in1(1'b0), | |
2881 | .in2(1'b0), | |
2882 | .out(spare3_nor3_4x_unused)); | |
2883 | cl_u1_nand2_8x spare3_nand2_8x (.in0(1'b1), | |
2884 | .in1(1'b1), | |
2885 | .out(spare3_nand2_8x_unused)); | |
2886 | cl_u1_buf_16x spare3_buf_16x (.in(1'b1), | |
2887 | .out(spare3_buf_16x_unused)); | |
2888 | cl_u1_nor2_16x spare3_nor2_16x (.in0(1'b0), | |
2889 | .in1(1'b0), | |
2890 | .out(spare3_nor2_16x_unused)); | |
2891 | cl_u1_inv_32x spare3_inv_32x (.in(1'b1), | |
2892 | .out(spare3_inv_32x_unused)); | |
2893 | ||
2894 | cl_sc1_msff_8x spare4_flop (.l1clk(l1clk), | |
2895 | .siclk(siclk), | |
2896 | .soclk(soclk), | |
2897 | .si(si_4), | |
2898 | .so(so_4), | |
2899 | .d(1'b0), | |
2900 | .q(spare4_flop_unused)); | |
2901 | assign si_4 = so_3; | |
2902 | ||
2903 | cl_u1_buf_32x spare4_buf_32x (.in(1'b1), | |
2904 | .out(spare4_buf_32x_unused)); | |
2905 | cl_u1_nand3_8x spare4_nand3_8x (.in0(1'b1), | |
2906 | .in1(1'b1), | |
2907 | .in2(1'b1), | |
2908 | .out(spare4_nand3_8x_unused)); | |
2909 | cl_u1_inv_8x spare4_inv_8x (.in(1'b1), | |
2910 | .out(spare4_inv_8x_unused)); | |
2911 | cl_u1_aoi22_4x spare4_aoi22_4x (.in00(1'b1), | |
2912 | .in01(1'b1), | |
2913 | .in10(1'b1), | |
2914 | .in11(1'b1), | |
2915 | .out(spare4_aoi22_4x_unused)); | |
2916 | cl_u1_buf_8x spare4_buf_8x (.in(1'b1), | |
2917 | .out(spare4_buf_8x_unused)); | |
2918 | cl_u1_oai22_4x spare4_oai22_4x (.in00(1'b1), | |
2919 | .in01(1'b1), | |
2920 | .in10(1'b1), | |
2921 | .in11(1'b1), | |
2922 | .out(spare4_oai22_4x_unused)); | |
2923 | cl_u1_inv_16x spare4_inv_16x (.in(1'b1), | |
2924 | .out(spare4_inv_16x_unused)); | |
2925 | cl_u1_nand2_16x spare4_nand2_16x (.in0(1'b1), | |
2926 | .in1(1'b1), | |
2927 | .out(spare4_nand2_16x_unused)); | |
2928 | cl_u1_nor3_4x spare4_nor3_4x (.in0(1'b0), | |
2929 | .in1(1'b0), | |
2930 | .in2(1'b0), | |
2931 | .out(spare4_nor3_4x_unused)); | |
2932 | cl_u1_nand2_8x spare4_nand2_8x (.in0(1'b1), | |
2933 | .in1(1'b1), | |
2934 | .out(spare4_nand2_8x_unused)); | |
2935 | cl_u1_buf_16x spare4_buf_16x (.in(1'b1), | |
2936 | .out(spare4_buf_16x_unused)); | |
2937 | cl_u1_nor2_16x spare4_nor2_16x (.in0(1'b0), | |
2938 | .in1(1'b0), | |
2939 | .out(spare4_nor2_16x_unused)); | |
2940 | cl_u1_inv_32x spare4_inv_32x (.in(1'b1), | |
2941 | .out(spare4_inv_32x_unused)); | |
2942 | assign scan_out = so_4; | |
2943 | ||
2944 | ||
2945 | ||
2946 | endmodule | |
2947 |