// ========== Copyright Header Begin ==========================================
// OpenSPARC T2 Processor File: ncu_c2iscd_ctl.v
// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; version 2 of the License.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// For the avoidance of doubt, and except that if any non-GPL license
// choice is available it will apply instead, Sun elects to use only
// the General Public License version 2 (GPLv2) at this time for any
// software where a choice of GPL license versions is made
// available with the language indicating that GPLv2 or any later version
// may be used, or where a choice of which version of the GPL is applied is
// otherwise unspecified.
// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
// CA 95054 USA or visit www.sun.com if you need additional information or
// ========== Copyright Header End ============================================
efu_ncu_bankavail_dshift,
efu_ncu_coreavail_dshift,
tap_mondo_acc_addr_invld_d2_f,
ncu_spc7_core_enable_status,
ncu_spc6_core_enable_status,
ncu_spc5_core_enable_status,
ncu_spc4_core_enable_status,
ncu_spc3_core_enable_status,
ncu_spc2_core_enable_status,
ncu_spc1_core_enable_status,
ncu_spc0_core_enable_status,
wire [3:0] cpu_packet_type;
wire [2:0] cpu_packet_size;
wire c2i_packet_is_rd_req;
wire c2i_packet_is_wr_req;
wire [11:0] dmupio_addr35to24;
wire ncu_c2isc_ctl_scanin;
wire ncu_c2isc_ctl_scanout;
wire [39:0] c2i_packet_addr;
wire dmupio_ucb_buf_acpt;
wire dmucsr_ucb_buf_acpt;
wire ncu_man_ucb_buf_acpt;
wire ncu_int_ucb_buf_acpt;
wire bounce_ucb_buf_acpt;
wire rd_nack_ucb_buf_acpt;
wire [127:0] tap_iob_packet;
wire ncu_ctrl_ctl_scanin;
wire ncu_ctrl_ctl_scanout;
wire [63:0] c2i_rd_nack_packet;
wire ncu_c2isd_ctl_scanin;
wire ncu_c2isd_ctl_scanout;
wire dmupio_ucb_buf_scanin;
wire dmupio_ucb_buf_scanout;
wire dmucsr_ucb_buf_scanin;
wire dmucsr_ucb_buf_scanout;
wire ssi_ucb_buf_scanout;
wire mcu0_ucb_buf_scanin;
wire mcu0_ucb_buf_scanout;
wire mcu1_ucb_buf_scanin;
wire mcu1_ucb_buf_scanout;
wire mcu2_ucb_buf_scanin;
wire mcu2_ucb_buf_scanout;
wire mcu3_ucb_buf_scanin;
wire mcu3_ucb_buf_scanout;
wire ccu_ucb_buf_scanout;
wire rcu_ucb_buf_scanout;
wire dbg1_ucb_buf_scanin;
wire dbg1_ucb_buf_scanout;
wire niu_ucb_buf_scanout;
wire tcu_ucb_buf_scanout;
input bounce_ack_rd; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input ccu_ncu_stall; // To ccu_ucb_buf of ncu_c2ibuf4_ctl.v
input [63:0] core_running_status; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input [143:0] cpubuf_dout; // To ncu_c2isd_ctl of ncu_c2isd_ctl.v
input [5:0] cpubuf_tail_f; // To ncu_c2isc_ctl of ncu_c2isc_ctl.v
input dmu_ncu_stall; // To dmucsr_ucb_buf of ncu_c2ibuf32_ctl.v
input [3:0] dmu_ncu_wrack_tag; // To dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
input dmu_ncu_wrack_vld; // To dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
input dmu_ncu_wrack_par; // to ncu_c2ibufpio_ctl.sv
input efu_ncu_bankavail_dshift;// To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input efu_ncu_coreavail_dshift;// To ncu_ctrl_ctl of ncu_ctrl_ctl.v
//input efu_ncu_fuse_clk1; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input efu_ncu_fuse_data; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input efu_ncu_fusestat_dshift;// To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input efu_ncu_sernum0_dshift; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input efu_ncu_sernum1_dshift; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input efu_ncu_sernum2_dshift; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input [15:0] intman_tbl_dout; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input [143:0] dmubuf0_dout; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input [143:0] dmubuf1_dout; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input iobuf_avail; // To ncu_c2isc_ctl of ncu_c2isc_ctl.v
input [6:0] io_intman_addr; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input iol2clk; // To ncu_c2isc_ctl of ncu_c2isc_ctl.v, ...
input mcu0_ncu_stall; // To mcu0_ucb_buf of ncu_c2ibuf4_ctl.v
input mcu1_ncu_stall; // To mcu1_ucb_buf of ncu_c2ibuf4_ctl.v
input mcu2_ncu_stall; // To mcu2_ucb_buf of ncu_c2ibuf4_ctl.v
input mcu3_ncu_stall; // To mcu3_ucb_buf of ncu_c2ibuf4_ctl.v
input ncu_int_ack_rd; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input ncu_man_ack_rd; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input ncu_man_int_rd; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input niu_ncu_stall; // To niu_ucb_buf of ncu_c2ibuf32_ctl.v
input rcu_ncu_stall; // To rcu_ucb_buf of ncu_c2ibuf4_ctl.v
input rd_nack_rd; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
//input rng_ncu_stall; // To rng_ucb_buf of ncu_c2ibuf4_ctl.v
input dbg1_ncu_stall; // To dbg1_ucb_buf of ncu_c2ibuf4_ctl.v
input rst_ncu_unpark_thread; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input rst_ncu_xir_; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input scan_in; // To ncu_c2isc_ctl of ncu_c2isc_ctl.v
input [3:0] sii_cr_id_rtn; // To dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
input sii_cr_id_rtn_vld; // To dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
input ssi_ncu_stall; // To ssi_ucb_buf of ncu_c2ibuf4_ctl.v
input tap_mondo_acc_addr_invld_d2_f;// To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input tap_mondo_acc_seq_d2_f; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input [63:0] tap_mondo_dout_d2_f; // To ncu_ctrl_ctl of ncu_ctrl_ctl.v
input [7:0] tcu_ncu_data; // To tcu_ucb_buf of ncu_ucbbusin8_ctl.v
input tcu_aclk; // To ncu_c2isc_ctl of ncu_c2isc_ctl.v, ...
input tcu_bclk; // To ncu_c2isc_ctl of ncu_c2isc_ctl.v, ...
input tcu_clk_stop; // To ncu_c2isc_ctl of ncu_c2isc_ctl.v, ...
input tcu_ncu_vld; // To tcu_ucb_buf of ncu_ucbbusin8_ctl.v
input tcu_pce_ov; // To ncu_c2isc_ctl of ncu_c2isc_ctl.v, ...
input tcu_scan_en; // To ncu_c2isc_ctl of ncu_c2isc_ctl.v, ...
//input mb0_cpubuf_wr_en;
//mb1 connection from tcu//
input tcu_mbist_user_mode;
output ncu_rst_fatal_error;
output ncu_tcu_soc_error;
output ncu_dmu_siicr_pei;
output ncu_dmu_ncucr_pei;
input sii_ncu_dmuctag_ce;
output ncu_sii_dmuctag_cei;
input sii_ncu_dmuctag_ue;
output ncu_sii_dmuctag_uei;
input sii_ncu_niuctag_ce;
output ncu_sii_niuctag_cei;
input sii_ncu_niuctag_ue;
output ncu_sii_niuctag_uei;
output [127:0] bounce_ack_packet; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output bounce_ack_vld; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
//output [7:0] core_enable_status; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output ncu_spc7_core_enable_status;
output ncu_spc6_core_enable_status;
output ncu_spc5_core_enable_status;
output ncu_spc4_core_enable_status;
output ncu_spc3_core_enable_status;
output ncu_spc2_core_enable_status;
output ncu_spc1_core_enable_status;
output ncu_spc0_core_enable_status;
output [63:0] core_running; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [7:0] coreavail; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [4:0] cpubuf_head_ptr; // From ncu_c2isc_ctl of ncu_c2isc_ctl.v
output [5:0] cpubuf_head_s; // From ncu_c2isc_ctl of ncu_c2isc_ctl.v
output cpubuf_rden; // From ncu_c2isc_ctl of ncu_c2isc_ctl.v
output [6:0] intman_tbl_raddr; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [6:0] intman_tbl_waddr; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [15:0] intman_tbl_din; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output intman_tbl_rden; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output intman_tbl_wr; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [143:0] dmubuf_din;
output [4:0] dmubuf_raddr;
output [4:0] dmubuf_waddr;
output [4:0] l2pm; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output l2idxhs_en_status;
output lhs_intman_acc; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [5:0] mondoinvec; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [3:0] ncu_ccu_data; // From ccu_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_ccu_vld; // From ccu_ucb_buf of ncu_c2ibuf4_ctl.v
output [31:0] ncu_dmu_data; // From dmucsr_ucb_buf of ncu_c2ibuf32_ctl.v
output ncu_dmu_mmu_addr_vld; // From dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
output [1:0] ncu_dmu_dpar; // From dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
output [63:0] ncu_dmu_pio_data; // From dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
output ncu_dmu_pio_hdr_vld; // From dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
output ncu_dmu_vld; // From dmucsr_ucb_buf of ncu_c2ibuf32_ctl.v
output [127:0] ncu_int_ack_packet; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output ncu_int_ack_vld; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [127:0] ncu_man_ack_packet; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output ncu_man_ack_vld; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [24:0] ncu_man_int_packet; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output ncu_man_int_vld; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [3:0] ncu_mcu0_data; // From mcu0_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_mcu0_vld; // From mcu0_ucb_buf of ncu_c2ibuf4_ctl.v
output [3:0] ncu_mcu1_data; // From mcu1_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_mcu1_vld; // From mcu1_ucb_buf of ncu_c2ibuf4_ctl.v
output [3:0] ncu_mcu2_data; // From mcu2_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_mcu2_vld; // From mcu2_ucb_buf of ncu_c2ibuf4_ctl.v
output [3:0] ncu_mcu3_data; // From mcu3_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_mcu3_vld; // From mcu3_ucb_buf of ncu_c2ibuf4_ctl.v
output [31:0] ncu_niu_data; // From niu_ucb_buf of ncu_c2ibuf32_ctl.v
output ncu_niu_vld; // From niu_ucb_buf of ncu_c2ibuf32_ctl.v
output [3:0] ncu_rcu_data; // From rcu_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_rcu_vld; // From rcu_ucb_buf of ncu_c2ibuf4_ctl.v
//output [3:0] ncu_rng_data; // From rng_ucb_buf of ncu_c2ibuf4_ctl.v
//output ncu_rng_vld; // From rng_ucb_buf of ncu_c2ibuf4_ctl.v
output [3:0] ncu_dbg1_data; // From dbg1_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_dbg1_vld; // From dbg1_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_rst_xir_done; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [3:0] ncu_ssi_data; // From ssi_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_ssi_vld; // From ssi_ucb_buf of ncu_c2ibuf4_ctl.v
output ncu_tcu_stall; // From tcu_ucb_buf of ncu_ucbbusin8_ctl.v
output [7:0] ncu_tcu_bank_avail; // from ncu_ctrl_ctl
//output [3:0] ncu_tcu_bank_en_status; // from ncu_ctrl_ctl
output [63:0] rd_nack_packet; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output rd_nack_vld; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output scan_out; // From tcu_ucb_buf of ncu_ucbbusin8_ctl.v
output srvc_wr_ack; // From ncu_c2isc_ctl of ncu_c2isc_ctl.v
output [21:0] tap_mondo_acc_addr_s; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output tap_mondo_acc_seq_s; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [63:0] tap_mondo_din_s; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output tap_mondo_wr_s; // From ncu_ctrl_ctl of ncu_ctrl_ctl.v
output [152:0] wr_ack_iopkt; // From ncu_c2isd_ctl of ncu_c2isd_ctl.v
output [7:0] cpubuf_mb0_data;
output [152:0] dmupio_wack_iopkt; // From dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
output dmupio_srvc_wack; // From dmupio_ucb_buf of ncu_c2ibufpio_ctl.v
output ncu_dbg1_error_event; // from ncu_ctrl_ctl.sv
// Beginning of automatic wires (for undeclared instantiated-module outputs)
/*****************************************************************
*****************************************************************/
///* ncu_c2isc_ctl auto_template (
// .scan_in (ncu_c2isc_ctl_scanin),
// .scan_out(ncu_c2isc_ctl_scanout) ); */
ncu_c2isc_ctl ncu_c2isc_ctl ( /*AUTOINST*/
.cpu_packet_type(cpu_packet_type[3:0]),
.cpu_packet_size(cpu_packet_size[2:0]),
.cpubuf_head_s(cpubuf_head_s[5:0]),
.cpubuf_head_ptr(cpubuf_head_ptr[4:0]),
.cpubuf_rden(cpubuf_rden),
.c2i_packet_vld(c2i_packet_vld),
.c2i_packet_is_rd_req(c2i_packet_is_rd_req),
.c2i_packet_is_wr_req(c2i_packet_is_wr_req),
.dmupio_ucb_sel(dmupio_ucb_sel),
.dmupio_addr35to24(dmupio_addr35to24[11:0]),
.dmucsr_ucb_sel(dmucsr_ucb_sel),
.ssi_ucb_sel(ssi_ucb_sel),
.mcu0_ucb_sel(mcu0_ucb_sel),
.mcu1_ucb_sel(mcu1_ucb_sel),
.mcu2_ucb_sel(mcu2_ucb_sel),
.mcu3_ucb_sel(mcu3_ucb_sel),
.ccu_ucb_sel(ccu_ucb_sel),
.rcu_ucb_sel(rcu_ucb_sel),
.dbg1_ucb_sel(dbg1_ucb_sel),
.niu_ucb_sel(niu_ucb_sel),
.ncu_man_ucb_sel(ncu_man_ucb_sel),
.ncu_int_ucb_sel(ncu_int_ucb_sel),
.bounce_ucb_sel(bounce_ucb_sel),
.rd_nack_ucb_sel(rd_nack_ucb_sel),
.srvc_wr_ack(srvc_wr_ack),
.iob_tap_busy(iob_tap_busy),
.scan_in(ncu_c2isc_ctl_scanin),
.scan_out(ncu_c2isc_ctl_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.pcx_packet(pcx_packet[128:0]),
.pcx_packet_ue(pcx_packet_ue),
.pcx_packet_pe(pcx_packet_pe),
.c2i_packet_addr(c2i_packet_addr[39:0]),
.cpubuf_tail_f(cpubuf_tail_f[5:0]),
.mem32_base(mem32_base[11:0]),
.mem32_mask(mem32_mask[11:0]),
.mem64_base(mem64_base[11:0]),
.mem64_mask(mem64_mask[11:0]),
.iocon_base(iocon_base[11:0]),
.iocon_mask(iocon_mask[11:0]),
.mb0_raddr (mb0_addr[5:0]),
//.mb0_cpubuf_sel(mb0_cpubuf_sel),
.dmupio_ucb_buf_acpt(dmupio_ucb_buf_acpt),
.dmucsr_ucb_buf_acpt(dmucsr_ucb_buf_acpt),
.ssi_ucb_buf_acpt(ssi_ucb_buf_acpt),
.mcu0_ucb_buf_acpt(mcu0_ucb_buf_acpt),
.mcu1_ucb_buf_acpt(mcu1_ucb_buf_acpt),
.mcu2_ucb_buf_acpt(mcu2_ucb_buf_acpt),
.mcu3_ucb_buf_acpt(mcu3_ucb_buf_acpt),
.ccu_ucb_buf_acpt(ccu_ucb_buf_acpt),
.rcu_ucb_buf_acpt(rcu_ucb_buf_acpt),
.dbg1_ucb_buf_acpt(dbg1_ucb_buf_acpt),
.niu_ucb_buf_acpt(niu_ucb_buf_acpt),
.ncu_man_ucb_buf_acpt(ncu_man_ucb_buf_acpt),
.ncu_int_ucb_buf_acpt(ncu_int_ucb_buf_acpt),
.bounce_ucb_buf_acpt(bounce_ucb_buf_acpt),
.rd_nack_ucb_buf_acpt(rd_nack_ucb_buf_acpt),
.iobuf_avail(iobuf_avail),
.tap_iob_packet_vld(tap_iob_packet_vld),
.tap_iob_packet(tap_iob_packet[127:0]),
.mb1_addr(mb1_addr[5:0]),
.mb1_cpubuf_rd_en(mb1_cpubuf_rd_en));
///* ncu_ctrl_ctl auto_template ( .scan_in (ncu_ctrl_ctl_scanin),
// .scan_out (ncu_ctrl_ctl_scanout) ); */
ncu_ctrl_ctl ncu_ctrl_ctl ( /*AUTOINST*/
.ncu_man_ucb_buf_acpt(ncu_man_ucb_buf_acpt),
.ncu_int_ucb_buf_acpt(ncu_int_ucb_buf_acpt),
.bounce_ucb_buf_acpt(bounce_ucb_buf_acpt),
.rd_nack_ucb_buf_acpt(rd_nack_ucb_buf_acpt),
.tap_mondo_acc_addr_s(tap_mondo_acc_addr_s[21:0]),
.tap_mondo_acc_seq_s(tap_mondo_acc_seq_s),
.tap_mondo_wr_s(tap_mondo_wr_s),
.tap_mondo_din_s(tap_mondo_din_s[63:0]),
.mmufsh_data (mmufsh_data[63:0]),
.mmufsh_vld (mmufsh_vld),
.mem32_mask (mem32_mask[11:0]),
.mem32_base (mem32_base[11:0]),
.mem64_mask (mem64_mask[11:0]),
.mem64_base (mem64_base[11:0]),
.iocon_mask (iocon_mask[11:0]),
.iocon_base (iocon_base[11:0]),
.ncu_man_int_vld(ncu_man_int_vld),
.ncu_man_int_packet(ncu_man_int_packet[24:0]),
.ncu_man_ack_vld(ncu_man_ack_vld),
.ncu_man_ack_packet(ncu_man_ack_packet[127:0]),
.ncu_int_ack_vld(ncu_int_ack_vld),
.ncu_int_ack_packet(ncu_int_ack_packet[127:0]),
.bounce_ack_vld(bounce_ack_vld),
.bounce_ack_packet(bounce_ack_packet[127:0]),
.rd_nack_vld (rd_nack_vld),
.rd_nack_packet(rd_nack_packet[63:0]),
.mondoinvec (mondoinvec[5:0]),
.lhs_intman_acc(lhs_intman_acc),
.ncu_rst_xir_done(ncu_rst_xir_done),
.ncu_spc7_core_enable_status(ncu_spc7_core_enable_status),
.ncu_spc6_core_enable_status(ncu_spc6_core_enable_status),
.ncu_spc5_core_enable_status(ncu_spc5_core_enable_status),
.ncu_spc4_core_enable_status(ncu_spc4_core_enable_status),
.ncu_spc3_core_enable_status(ncu_spc3_core_enable_status),
.ncu_spc2_core_enable_status(ncu_spc2_core_enable_status),
.ncu_spc1_core_enable_status(ncu_spc1_core_enable_status),
.ncu_spc0_core_enable_status(ncu_spc0_core_enable_status),
//.core_enable_status(core_enable_status[7:0]),
.core_running(core_running[63:0]),
.coreavail (coreavail[7:0]),
.ncu_spc_ba01(ncu_spc_ba01),
.l2idxhs_en_status(l2idxhs_en_status),
.intman_tbl_raddr(intman_tbl_raddr[6:0]),
.intman_tbl_waddr(intman_tbl_waddr[6:0]),
.intman_tbl_wr(intman_tbl_wr),
.intman_tbl_rden(intman_tbl_rden),
.intman_tbl_din(intman_tbl_din[15:0]),
.intman_pchkf2i2c(intman_pchkf2i2c),
.ncu_rst_fatal_error(ncu_rst_fatal_error),
.ncu_tcu_soc_error(ncu_tcu_soc_error),
.ncu_tcu_bank_avail(ncu_tcu_bank_avail[7:0]),
//.ncu_tcu_bank_en_status(ncu_tcu_bank_en_status[3:0]),
.dmu_cr_id_rtn_erri(dmu_cr_id_rtn_erri),
.ncu_niu_d_pei(ncu_niu_d_pei),
.ncu_niu_ctag_uei(ncu_niu_ctag_uei),
.ncu_niu_ctag_cei(ncu_niu_ctag_cei),
.ncu_sio_ctag_cei(ncu_sio_ctag_cei),
.ncu_sio_ctag_uei(ncu_sio_ctag_uei),
.ncu_sio_d_pei(ncu_sio_d_pei),
.ncu_dmu_d_pei(ncu_dmu_d_pei),
.ncu_dmu_siicr_pei(ncu_dmu_siicr_pei),
.ncu_dmu_ctag_uei(ncu_dmu_ctag_uei),
.ncu_dmu_ctag_cei(ncu_dmu_ctag_cei),
.ncu_dmu_ncucr_pei(ncu_dmu_ncucr_pei),
.ncu_dmu_iei (ncu_dmu_iei),
.ncu_sii_dmua_pei(ncu_sii_dmua_pei),
.ncu_sii_niud_pei(ncu_sii_niud_pei),
.ncu_sii_dmud_pei(ncu_sii_dmud_pei),
.ncu_sii_niua_pei(ncu_sii_niua_pei),
.ncu_sii_dmuctag_cei(ncu_sii_dmuctag_cei),
.ncu_sii_niuctag_cei(ncu_sii_niuctag_cei),
.ncu_sii_dmuctag_uei(ncu_sii_dmuctag_uei),
.ncu_sii_niuctag_uei(ncu_sii_niuctag_uei),
.ncu_mcu0_ecci(ncu_mcu0_ecci),
.ncu_mcu0_fbri(ncu_mcu0_fbri),
.ncu_mcu0_fbui(ncu_mcu0_fbui),
.ncu_mcu1_ecci(ncu_mcu1_ecci),
.ncu_mcu1_fbri(ncu_mcu1_fbri),
.ncu_mcu1_fbui(ncu_mcu1_fbui),
.ncu_mcu2_ecci(ncu_mcu2_ecci),
.ncu_mcu2_fbri(ncu_mcu2_fbri),
.ncu_mcu2_fbui(ncu_mcu2_fbui),
.ncu_mcu3_ecci(ncu_mcu3_ecci),
.ncu_mcu3_fbri(ncu_mcu3_fbri),
.ncu_mcu3_fbui(ncu_mcu3_fbui),
.ncuctag_cei (ncuctag_cei),
.ncuctag_uei (ncuctag_uei),
.ncusiid_pei (ncusiid_pei),
.dmubuf_pei (dmubuf_pei),
.cpubuf_uei (cpubuf_uei),
.cpubuf_pei (cpubuf_pei),
.intbuf_uei (intbuf_uei),
.mondotbl_pei(mondotbl_pei),
.ncu_scksel_sh(ncu_scksel[1:0]),
.tcu_dbr_gateoff(tcu_dbr_gateoff),
.wmr_protect(wmr_protect),
.scan_in(ncu_ctrl_ctl_scanin),
.scan_out(ncu_ctrl_ctl_scanout),
.tcu_pce_ov (tcu_pce_ov),
.tcu_clk_stop(tcu_clk_stop),
.tcu_scan_en (tcu_scan_en),
.ncu_man_ucb_sel(ncu_man_ucb_sel),
.ncu_int_ucb_sel(ncu_int_ucb_sel),
.bounce_ucb_sel(bounce_ucb_sel),
.c2i_packet_vld(c2i_packet_vld),
.c2i_packet_is_rd_req(c2i_packet_is_rd_req),
.c2i_packet_is_wr_req(c2i_packet_is_wr_req),
.c2i_packet (c2i_packet[127:0]),
.rd_nack_ucb_sel(rd_nack_ucb_sel),
.c2i_rd_nack_packet(c2i_rd_nack_packet[63:0]),
.tap_mondo_acc_seq_d2_f(tap_mondo_acc_seq_d2_f),
.tap_mondo_acc_addr_invld_d2_f(tap_mondo_acc_addr_invld_d2_f),
.tap_mondo_dout_d2_f(tap_mondo_dout_d2_f[63:0]),
.ncu_man_int_rd(ncu_man_int_rd),
.ncu_man_ack_rd(ncu_man_ack_rd),
.ncu_int_ack_rd(ncu_int_ack_rd),
.bounce_ack_rd(bounce_ack_rd),
.rd_nack_rd (rd_nack_rd),
.io_intman_addr(io_intman_addr[6:0]),
//.efu_ncu_fuse_clk1(efu_ncu_fuse_clk1),
.efu_ncu_fuse_data(efu_ncu_fuse_data),
.efu_ncu_coreavail_dshift(efu_ncu_coreavail_dshift),
.efu_ncu_bankavail_dshift(efu_ncu_bankavail_dshift),
.efu_ncu_fusestat_dshift(efu_ncu_fusestat_dshift),
.efu_ncu_sernum0_dshift(efu_ncu_sernum0_dshift),
.efu_ncu_sernum1_dshift(efu_ncu_sernum1_dshift),
.efu_ncu_sernum2_dshift(efu_ncu_sernum2_dshift),
.rst_ncu_unpark_thread(rst_ncu_unpark_thread),
.rst_ncu_xir_inv(rst_ncu_xir_),
.core_running_status(core_running_status[63:0]),
.intman_tbl_dout(intman_tbl_dout[15:0]),
.mb1_raddr (mb1_addr[6:0]),
.mb1_waddr (mb1_addr[6:0]),
.mb1_wdata (mb1_wdata[7:0]),
.mb1_intman_wr_en(mb1_intman_wr_en),
.mb1_intman_rd_en(mb1_intman_rd_en),
.niu_ncu_d_pe(niu_ncu_d_pe),
.niu_ncu_ctag_ue(niu_ncu_ctag_ue),
.niu_ncu_ctag_ce(niu_ncu_ctag_ce),
.sio_ncu_ctag_ce(sio_ncu_ctag_ce),
.sio_ncu_ctag_ue(sio_ncu_ctag_ue),
//.sio_ncu_d_pe(sio_ncu_d_pe),
.dmu_cr_id_rtn_err(dmu_cr_id_rtn_err),
.dmu_ncu_d_pe(dmu_ncu_d_pe),
.dmu_ncu_siicr_pe(dmu_ncu_siicr_pe),
.dmu_ncu_ctag_ue(dmu_ncu_ctag_ue),
.dmu_ncu_ctag_ce(dmu_ncu_ctag_ce),
.dmu_ncu_ncucr_pe(dmu_ncu_ncucr_pe),
.dmu_ncu_ie (dmu_ncu_ie),
.sii_ncu_dmua_pe(sii_ncu_dmua_pe),
.sii_ncu_niud_pe(sii_ncu_niud_pe),
.sii_ncu_dmud_pe(sii_ncu_dmud_pe),
.sii_ncu_niua_pe(sii_ncu_niua_pe),
.sii_ncu_dmuctag_ce(sii_ncu_dmuctag_ce),
.sii_ncu_niuctag_ce(sii_ncu_niuctag_ce),
.sii_ncu_dmuctag_ue(sii_ncu_dmuctag_ue),
.sii_ncu_niuctag_ue(sii_ncu_niuctag_ue),
.mcu0_ncu_ecc (mcu0_ncu_ecc),
.mcu0_ncu_fbr (mcu0_ncu_fbr),
.mcu0_ncu_fbu (mcu0_ncu_fbu),
.mcu1_ncu_ecc (mcu1_ncu_ecc),
.mcu1_ncu_fbr (mcu1_ncu_fbr),
.mcu1_ncu_fbu (mcu1_ncu_fbu),
.mcu2_ncu_ecc (mcu2_ncu_ecc),
.mcu2_ncu_fbr (mcu2_ncu_fbr),
.mcu2_ncu_fbu (mcu2_ncu_fbu),
.mcu3_ncu_ecc (mcu3_ncu_ecc),
.mcu3_ncu_fbr (mcu3_ncu_fbr),
.mcu3_ncu_fbu (mcu3_ncu_fbu),
.siierrsyn (siierrsyn[63:0]),
.siierrsyn_done(siierrsyn_done),
.ncuctag_ce (ncuctag_ce),
.ncuctag_ue (ncuctag_ue),
.ncusiid_pe (ncusiid_pe),
.ncudpsyn (ncudpsyn[15:0]),
.dmubuf_pue (dmubuf_pue),
.iobuf_ue_f (iobuf_ue_f),
.intbuf_ue_f (intbuf_ue_f),
.mondotbl_pe_f(mondotbl_pe_f),
.io_rd_intman_d2(io_rd_intman_d2),
.dmubufsyn (dmubufsyn[46:0]),
.cpubufsyn (cpubufsyn[50:0]),
.tcu_wmr_vec_mask(tcu_wmr_vec_mask),
.cmp_tick_enable(cmp_tick_enable),
.ncu_dbg1_error_event (ncu_dbg1_error_event));
///*ncu_mb1_ctl auto_template (
// .scan_out(mb1_scanout),
// .mbist_start (mb1_start),
// .mbist_done (mb1_done),
// .mbist_icache_fail(mb1_fail),
// .mbist_userdata_mode(1'b0),
// .mbist_bisi_mode(1'b0),
// .mbist_loop_mode(1'b0),
// .mbist_loop_on_address(1'b0),
// .mbist_stop_on_fail(1'b0),
// .mbist_stop_on_next_fail(1'b0),
// .mbist_dcache_fail_in(1'b0),
// .mbist_icache_fail_in(1'b0),
// .mbist_icache_way({mb1_intman_sel,mb1_dmubuf_sel}),
// .mbist_dcache_index(mb1_raddr[6:0]),
// .mbist_icache_index(mb1_waddr[7:0]),
// .mbist_write_data(mb1_wdata[7:0])); */
//ncu_mb1_ctl ncu_mb1_ctl ( /*AUTOINST*/
//.mbist_dcache_read(mbist_dcache_read),
//.mbist_dcache_write(mbist_dcache_write),
//.mbist_dcache_index(mb1_raddr[6:0]), // Templated
//.mbist_dcache_way(mbist_dcache_way[1:0]),
//.mbist_icache_read(mbist_icache_read),
//.mbist_icache_write(mbist_icache_write),
//.mbist_icache_index(mb1_waddr[7:0]), // Templated
//.mbist_icache_word(mbist_icache_word),
//.mbist_icache_way({mb1_intman_sel,mb1_dmubuf_sel}), // Templated
//.mbist_write_data(mb1_wdata[7:0]), // Templated
//.mbist_dcache_fail(mbist_dcache_fail),
//.mbist_done (mb1_done),
//.mbist_icache_fail(mb1_fail),
//.scan_out(mb1_scanout),
//.mbist_start (mb1_start), // Templated
//.l2clk (iol2clk), // Templated
//.tcu_pce_ov (tcu_pce_ov),
//.tcu_clk_stop (tcu_clk_stop),
//.tcu_scan_en (tcu_scan_en),
//.mbist_userdata_mode(1'b0), // Templated
//.mbist_bisi_mode(1'b0), // Templated
//.mbist_loop_mode(1'b0), // Templated
//.mbist_loop_on_address(1'b0), // Templated
//.mbist_stop_on_fail(1'b0), // Templated
//.mbist_stop_on_next_fail(1'b0), // Templated
//.mbist_dcache_fail_in(1'b0), // Templated
//.mbist_icache_fail_in(1'b0), // Templated
//.dmubuf0_dout (dmubuf0_dout[143:0]),
//.dmubuf1_dout (dmubuf1_dout[143:0]),
//.intman_tbl_dout(intman_tbl_dout[11:0]));
ncu_mb1_ctl ncu_mb1_ctl (
.mb1_addr(mb1_addr[6:0]),
.mb1_wdata(mb1_wdata[7:0]),
.mb1_intman_wr_en(mb1_intman_wr_en),
.mb1_intman_rd_en(mb1_intman_rd_en),
.mb1_dmubuf0_wr_en(mb1_dmubuf0_wr_en),
.mb1_dmubuf0_rd_en(mb1_dmubuf0_rd_en),
.mb1_dmubuf1_wr_en(mb1_dmubuf1_wr_en),
.mb1_dmubuf1_rd_en(mb1_dmubuf1_rd_en),
.mb1_cpubuf_wr_en(mb1_cpubuf_wr_en),
.mb1_cpubuf_rd_en(mb1_cpubuf_rd_en),
.tcu_pce_ov(tcu_pce_ov), // scan signals
.tcu_clk_stop(tcu_clk_stop),
.tcu_scan_en(tcu_scan_en),
//.mb1_userdata_mode(1'b0),
.mb1_bisi_mode(tcu_mbist_bisi_en),
//.mb1_loop_on_address(1'b0),
//.mb1_stop_on_fail(1'b0),
//.mb1_stop_on_next_fail(1'b0),
.mb1_user_mode(tcu_mbist_user_mode),
.intman_dout(intman_tbl_dout[15:0]),
.cpubuf_dout(cpubuf_dout[143:0]),
.dmubuf0_dout(dmubuf0_dout[143:0]),
.dmubuf1_dout(dmubuf1_dout[143:0]));
//assign intman_dout[15:0] = 16'b0;
/**********************************************************
* cpu-to-io slow datapath
*****************************************************************/
///* ncu_c2isd_ctl auto_template ( .scan_in (ncu_c2isd_ctl_scanin),
// .scan_out(ncu_c2isd_ctl_scanout) ); */
ncu_c2isd_ctl ncu_c2isd_ctl ( /*AUTOINST*/
.pcx_packet(pcx_packet[128:0]),
.pcx_packet_ue(pcx_packet_ue),
.pcx_packet_pe(pcx_packet_pe),
.c2i_packet_addr(c2i_packet_addr[39:0]),
.c2i_packet(c2i_packet[127:0]),
.c2i_rd_nack_packet(c2i_rd_nack_packet[63:0]),
.wr_ack_iopkt(wr_ack_iopkt[152:0]),
.cpubuf_mb0_data(cpubuf_mb0_data[7:0]),
.cpubufsyn (cpubufsyn[50:0]),
.scan_in(ncu_c2isd_ctl_scanin),
.scan_out(ncu_c2isd_ctl_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.tap_iob_packet(tap_iob_packet[127:0]),
.cpubuf_dout(cpubuf_dout[143:0]),
.cpu_packet_type(cpu_packet_type[3:0]),
.cpu_packet_size(cpu_packet_size[2:0]),
.mb0_cpubuf_bus_sel(5'b0000));
/************************
///* ncu_c2ibufpio_ctl auto_template (
// .scan_in (dmupio_ucb_buf_scanin),
// .scan_out (dmupio_ucb_buf_scanout),
// .ucb_sel (dmupio_ucb_sel),
// .ucb_buf_acpt (dmupio_ucb_buf_acpt) ); */
ncu_c2ibufpio_ctl dmupio_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(dmupio_ucb_buf_acpt), // Templated
.dmubuf_din(dmubuf_din[143:0]),
.dmubuf_waddr(dmubuf_waddr[4:0]),
.dmubuf_raddr(dmubuf_raddr[4:0]),
.dmubuf_rden(dmubuf_rden),
.dmupio_wack_iopkt(dmupio_wack_iopkt[152:0]),
.dmupio_srvc_wack(dmupio_srvc_wack),
.ncu_dmu_pio_data(ncu_dmu_pio_data[63:0]),
.ncu_dmu_pio_hdr_vld(ncu_dmu_pio_hdr_vld),
.ncu_dmu_mmu_addr_vld(ncu_dmu_mmu_addr_vld),
.ncu_dmu_dpar(ncu_dmu_dpar[1:0]),
.dmubufsyn(dmubufsyn[46:0]),
.dmu_cr_id_rtn_err(dmu_cr_id_rtn_err),
.tcu_dbr_gateoff(tcu_dbr_gateoff),
.mb1_dmubuf0_wr_en(mb1_dmubuf0_wr_en),
.mb1_dmubuf1_wr_en(mb1_dmubuf1_wr_en),
.mb1_dmubuf0_rd_en(mb1_dmubuf0_rd_en),
.mb1_dmubuf1_rd_en(mb1_dmubuf1_rd_en),
.mb1_addr(mb1_addr[4:0]),
.mb1_wdata(mb1_wdata[7:0]),
.scan_in(dmupio_ucb_buf_scanin),
.scan_out(dmupio_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.dmupio_addr35to24(dmupio_addr35to24[11:0]),
.c2i_packet(c2i_packet[127:0]),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel(dmupio_ucb_sel), // Templated
.mmufsh_data(mmufsh_data[63:0]),
.dmu_ncu_wrack_vld(dmu_ncu_wrack_vld),
.dmu_ncu_wrack_tag(dmu_ncu_wrack_tag[3:0]),
.dmu_ncu_wrack_par(dmu_ncu_wrack_par),
.dmu_cr_id_rtn_erri(dmu_cr_id_rtn_erri),
.sii_cr_id_rtn_vld(sii_cr_id_rtn_vld),
.sii_cr_id_rtn(sii_cr_id_rtn[3:0]),
.dmubuf0_dout(dmubuf0_dout[143:0]),
.dmubuf1_dout(dmubuf1_dout[143:0]),
.iobuf_avail(iobuf_avail),
.dmubuf_pei(dmubuf_pei));
/************************
///* ncu_c2ibuf32_ctl auto_template (
// .scan_in (dmucsr_ucb_buf_scanin),
// .scan_out (dmucsr_ucb_buf_scanout),
// .iob_ucb_vld (ncu_dmu_vld),
// .iob_ucb_data (ncu_dmu_data[31:0]),
// .ucb_iob_stall (dmu_ncu_stall),
// .ucb_buf_acpt (dmucsr_ucb_buf_acpt),
// .ucb_sel (dmucsr_ucb_sel) ); */
ncu_c2ibuf32_ctl dmucsr_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(dmucsr_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_dmu_vld), // Templated
.iob_ucb_data(ncu_dmu_data[31:0]), // Templated
.tcu_dbr_gateoff(tcu_dbr_gateoff),
.scan_in(dmucsr_ucb_buf_scanin),
.scan_out(dmucsr_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel(dmucsr_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(dmu_ncu_stall)); // Templated
/************************
///* ncu_c2ibuf4_ctl auto_template (
// .scan_in (ssi_ucb_buf_scanin),
// .scan_out (ssi_ucb_buf_scanout),
// .iob_ucb_vld (ncu_ssi_vld),
// .iob_ucb_data (ncu_ssi_data[3:0]),
// .ucb_iob_stall (ssi_ncu_stall),
// .ucb_buf_acpt (ssi_ucb_buf_acpt),
// .ucb_sel (ssi_ucb_sel) ); */
ncu_c2ibuf4_ctl ssi_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(ssi_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_ssi_vld), // Templated
.iob_ucb_data(ncu_ssi_data[3:0]), // Templated
.scan_in(ssi_ucb_buf_scanin),
.scan_out(ssi_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel (ssi_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(ssi_ncu_stall)); // Templated
/************************
///* ncu_c2ibuf4_ctl auto_template (
// .scan_in (mcu0_ucb_buf_scanin),
// .scan_out (mcu0_ucb_buf_scanout),
// .iob_ucb_vld (ncu_mcu0_vld),
// .iob_ucb_data (ncu_mcu0_data[3:0]),
// .ucb_iob_stall (mcu0_ncu_stall),
// .ucb_buf_acpt (mcu0_ucb_buf_acpt),
// .ucb_sel (mcu0_ucb_sel) ); */
ncu_c2ibuf4_ctl mcu0_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(mcu0_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_mcu0_vld), // Templated
.iob_ucb_data(ncu_mcu0_data[3:0]), // Templated
.scan_in(mcu0_ucb_buf_scanin),
.scan_out(mcu0_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel (mcu0_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(mcu0_ncu_stall)); // Templated
/************************
///* ncu_c2ibuf4_ctl auto_template (
// .scan_in (mcu1_ucb_buf_scanin),
// .scan_out (mcu1_ucb_buf_scanout),
// .iob_ucb_vld (ncu_mcu1_vld),
// .iob_ucb_data (ncu_mcu1_data[3:0]),
// .ucb_iob_stall (mcu1_ncu_stall),
// .ucb_buf_acpt (mcu1_ucb_buf_acpt),
// .ucb_sel (mcu1_ucb_sel) ); */
ncu_c2ibuf4_ctl mcu1_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(mcu1_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_mcu1_vld), // Templated
.iob_ucb_data(ncu_mcu1_data[3:0]), // Templated
.scan_in(mcu1_ucb_buf_scanin),
.scan_out(mcu1_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel (mcu1_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(mcu1_ncu_stall)); // Templated
/************************
///* ncu_c2ibuf4_ctl auto_template (
// .scan_in (mcu2_ucb_buf_scanin),
// .scan_out (mcu2_ucb_buf_scanout),
// .iob_ucb_vld (ncu_mcu2_vld),
// .iob_ucb_data (ncu_mcu2_data[3:0]),
// .ucb_iob_stall (mcu2_ncu_stall),
// .ucb_buf_acpt (mcu2_ucb_buf_acpt),
// .ucb_sel (mcu2_ucb_sel) ); */
ncu_c2ibuf4_ctl mcu2_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(mcu2_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_mcu2_vld), // Templated
.iob_ucb_data(ncu_mcu2_data[3:0]), // Templated
.scan_in(mcu2_ucb_buf_scanin),
.scan_out(mcu2_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel (mcu2_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(mcu2_ncu_stall)); // Templated
/************************
///* ncu_c2ibuf4_ctl auto_template (
// .scan_in (mcu3_ucb_buf_scanin),
// .scan_out (mcu3_ucb_buf_scanout),
// .iob_ucb_vld (ncu_mcu3_vld),
// .iob_ucb_data (ncu_mcu3_data[3:0]),
// .ucb_iob_stall (mcu3_ncu_stall),
// .ucb_buf_acpt (mcu3_ucb_buf_acpt),
// .ucb_sel (mcu3_ucb_sel) ); */
ncu_c2ibuf4_ctl mcu3_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(mcu3_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_mcu3_vld), // Templated
.iob_ucb_data(ncu_mcu3_data[3:0]), // Templated
.scan_in(mcu3_ucb_buf_scanin),
.scan_out(mcu3_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel (mcu3_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(mcu3_ncu_stall)); // Templated
/************************
///* ncu_c2ibuf4_ctl auto_template (
// .scan_in (ccu_ucb_buf_scanin),
// .scan_out (ccu_ucb_buf_scanout),
// .iob_ucb_vld (ncu_ccu_vld),
// .iob_ucb_data (ncu_ccu_data[3:0]),
// .ucb_iob_stall (ccu_ncu_stall),
// .ucb_buf_acpt (ccu_ucb_buf_acpt),
// .ucb_sel (ccu_ucb_sel) ); */
ncu_c2ibuf4_ctl ccu_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(ccu_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_ccu_vld), // Templated
.iob_ucb_data(ncu_ccu_data[3:0]), // Templated
.scan_in(ccu_ucb_buf_scanin),
.scan_out(ccu_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel (ccu_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(ccu_ncu_stall)); // Templated
/************************
///* ncu_c2ibuf4_ctl auto_template (
// .scan_in (rcu_ucb_buf_scanin),
// .scan_out (rcu_ucb_buf_scanout),
// .iob_ucb_vld (ncu_rcu_vld),
// .iob_ucb_data (ncu_rcu_data[3:0]),
// .ucb_iob_stall (rcu_ncu_stall),
// .ucb_buf_acpt (rcu_ucb_buf_acpt),
// .ucb_sel (rcu_ucb_sel) ); */
ncu_c2ibuf4_ctl rcu_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(rcu_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_rcu_vld), // Templated
.iob_ucb_data(ncu_rcu_data[3:0]), // Templated
.scan_in(rcu_ucb_buf_scanin),
.scan_out(rcu_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel (rcu_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(rcu_ncu_stall)); // Templated
/************************
///* ncu_c2ibuf4_ctl auto_template (
// .scan_in (rng_ucb_buf_scanin),
// .scan_out (rng_ucb_buf_scanout),
// .iob_ucb_vld (ncu_rng_vld),
// .iob_ucb_data (ncu_rng_data[3:0]),
// .ucb_iob_stall (rng_ncu_stall),
// .ucb_buf_acpt (rng_ucb_buf_acpt),
// .ucb_sel (rng_ucb_sel) ); */
ncu_c2ibuf4_ctl dbg1_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(dbg1_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_dbg1_vld), // Templated
.iob_ucb_data(ncu_dbg1_data[3:0]), // Templated
.scan_in(dbg1_ucb_buf_scanin),
.scan_out(dbg1_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel (dbg1_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(dbg1_ncu_stall)); // Templated
/************************
///* ncu_c2ibuf32_ctl auto_template (
// .scan_in (niu_ucb_buf_scanin),
// .scan_out (niu_ucb_buf_scanout),
// .iob_ucb_vld (ncu_niu_vld),
// .iob_ucb_data (ncu_niu_data[31:0]),
// .ucb_iob_stall (niu_ncu_stall),
// .ucb_buf_acpt (niu_ucb_buf_acpt),
// .ucb_sel (niu_ucb_sel) ); */
ncu_c2ibuf32_ctl niu_ucb_buf (/*AUTOINST*/
.ucb_buf_acpt(niu_ucb_buf_acpt), // Templated
.iob_ucb_vld(ncu_niu_vld), // Templated
.iob_ucb_data(ncu_niu_data[31:0]), // Templated
.tcu_dbr_gateoff(tcu_dbr_gateoff),
.scan_in(niu_ucb_buf_scanin),
.scan_out(niu_ucb_buf_scanout),
.tcu_scan_en(tcu_scan_en),
.tcu_clk_stop(tcu_clk_stop),
.c2i_packet_vld(c2i_packet_vld),
.ucb_sel (niu_ucb_sel), // Templated
.c2i_packet(c2i_packet[127:0]),
.ucb_iob_stall(niu_ncu_stall)); // Templated
///* ncu_ucbbusin8_ctl auto_template (
// .scan_in (tcu_ucb_buf_scanin),
// .scan_out (tcu_ucb_buf_scanout),
// .data (tcu_ncu_data[7:0]),
// .stall (ncu_tcu_stall),
// .indata_buf (tap_iob_packet[127:0]),
// .indata_buf_vld (tap_iob_packet_vld),
// .stall_a1 (iob_tap_busy)); */
ncu_ucbbusin8_ctl tcu_ucb_buf (/*AUTOINST*/
.stall (ncu_tcu_stall), // Templated
.indata_buf_vld(tap_iob_packet_vld), // Templated
.indata_buf(tap_iob_packet[127:0]), // Templated
.scan_in(tcu_ucb_buf_scanin),
.scan_out(tcu_ucb_buf_scanout),
.tcu_clk_stop(tcu_clk_stop),
.tcu_scan_en(tcu_scan_en),
.vld (tcu_ncu_vld), // Templated
.data (tcu_ncu_data[7:0]), // Templated
.stall_a1(iob_tap_busy)); // Templated
assign ncu_c2isc_ctl_scanin = scan_in ;
assign ncu_ctrl_ctl_scanin = ncu_c2isc_ctl_scanout ;
assign ncu_c2isd_ctl_scanin = ncu_ctrl_ctl_scanout ;
assign dmupio_ucb_buf_scanin = ncu_c2isd_ctl_scanout ;
assign dmucsr_ucb_buf_scanin = dmupio_ucb_buf_scanout ;
assign ssi_ucb_buf_scanin = dmucsr_ucb_buf_scanout ;
assign mcu0_ucb_buf_scanin = ssi_ucb_buf_scanout ;
assign mcu1_ucb_buf_scanin = mcu0_ucb_buf_scanout ;
assign mcu2_ucb_buf_scanin = mcu1_ucb_buf_scanout ;
assign mcu3_ucb_buf_scanin = mcu2_ucb_buf_scanout ;
assign ccu_ucb_buf_scanin = mcu3_ucb_buf_scanout ;
assign rcu_ucb_buf_scanin = ccu_ucb_buf_scanout ;
assign dbg1_ucb_buf_scanin = rcu_ucb_buf_scanout ;
assign niu_ucb_buf_scanin = dbg1_ucb_buf_scanout ;
assign tcu_ucb_buf_scanin = niu_ucb_buf_scanout ;
assign scan_out = tcu_ucb_buf_scanout ;
// verilog-library-directories:("." "../common")
// verilog-auto-sense-defines-constant:t
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_6 (
assign fdin[5:0] = din[5:0];
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_1 (
assign fdin[0:0] = din[0:0];
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_1 (
assign fdin[0:0] = (din[0:0] & {1{en}}) | (dout[0:0] & ~{1{en}});
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_l1clkhdr_ctl_macro (
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_64 (
assign fdin[63:0] = (din[63:0] & {64{en}}) | (dout[63:0] & ~{64{en}});
.so({so[62:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_40 (
assign fdin[39:0] = (din[39:0] & {40{en}}) | (dout[39:0] & ~{40{en}});
.so({so[38:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_2 (
assign fdin[1:0] = (din[1:0] & {2{en}}) | (dout[1:0] & ~{2{en}});
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_6 (
assign fdin[5:0] = (din[5:0] & {6{en}}) | (dout[5:0] & ~{6{en}});
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_25 (
assign fdin[24:0] = (din[24:0] & {25{en}}) | (dout[24:0] & ~{25{en}});
.so({so[23:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_128 (
assign fdin[127:0] = (din[127:0] & {128{en}}) | (dout[127:0] & ~{128{en}});
.si({scan_in,so[126:0]}),
.so({so[126:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_55 (
assign fdin[54:0] = (din[54:0] & {55{en}}) | (dout[54:0] & ~{55{en}});
.so({so[53:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_22 (
assign fdin[21:0] = (din[21:0] & {22{en}}) | (dout[21:0] & ~{22{en}});
.so({so[20:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_20 (
assign fdin[19:0] = (din[19:0] & {20{en}}) | (dout[19:0] & ~{20{en}});
.so({so[18:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_8 (
assign fdin[7:0] = (din[7:0] & {8{en}}) | (dout[7:0] & ~{8{en}});
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_12 (
assign fdin[11:0] = (din[11:0] & {12{en}}) | (dout[11:0] & ~{12{en}});
.so({so[10:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_24 (
assign fdin[23:0] = (din[23:0] & {24{en}}) | (dout[23:0] & ~{24{en}});
.so({so[22:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_64 (
assign fdin[63:0] = din[63:0];
.so({so[62:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_8 (
assign fdin[7:0] = din[7:0];
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msffi_ctl_macro__width_1 (
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_56 (
assign fdin[55:0] = din[55:0];
.so({so[54:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_3 (
assign fdin[2:0] = (din[2:0] & {3{en}}) | (dout[2:0] & ~{3{en}});
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_63 (
assign fdin[62:0] = din[62:0];
.so({so[61:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_5 (
assign fdin[4:0] = din[4:0];
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_5 (
assign fdin[4:0] = (din[4:0] & {5{en}}) | (dout[4:0] & ~{5{en}});
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_43 (
assign fdin[42:0] = din[42:0];
.so({so[41:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_43 (
assign fdin[42:0] = (din[42:0] & {43{en}}) | (dout[42:0] & ~{43{en}});
.so({so[41:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_59 (
assign fdin[58:0] = (din[58:0] & {59{en}}) | (dout[58:0] & ~{59{en}});
.so({so[57:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_61 (
assign fdin[60:0] = (din[60:0] & {61{en}}) | (dout[60:0] & ~{61{en}});
.so({so[59:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_2 (
assign fdin[1:0] = din[1:0];
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_9 (
assign fdin[8:0] = din[8:0];
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_7 (
assign fdin[6:0] = din[6:0];
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_4 (
assign fdin[3:0] = din[3:0];
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_40 (
assign fdin[39:0] = din[39:0];
.so({so[38:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_23 (
assign fdin[22:0] = din[22:0];
.so({so[21:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_3 (
assign fdin[2:0] = din[2:0];
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_144 (
assign fdin[143:0] = (din[143:0] & {144{en}}) | (dout[143:0] & ~{144{en}});
.si({scan_in,so[142:0]}),
.so({so[142:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_129 (
assign fdin[128:0] = (din[128:0] & {129{en}}) | (dout[128:0] & ~{129{en}});
.si({scan_in,so[127:0]}),
.so({so[127:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_51 (
assign fdin[50:0] = (din[50:0] & {51{en}}) | (dout[50:0] & ~{51{en}});
.so({so[49:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_127 (
assign fdin[126:0] = (din[126:0] & {127{en}}) | (dout[126:0] & ~{127{en}});
.si({scan_in,so[125:0]}),
.so({so[125:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_47 (
assign fdin[46:0] = (din[46:0] & {47{en}}) | (dout[46:0] & ~{47{en}});
.so({so[45:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_16 (
assign fdin[15:0] = din[15:0];
.so({so[14:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_128 (
assign fdin[127:0] = din[127:0];
.si({scan_in,so[126:0]}),
.so({so[126:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__width_32 (
assign fdin[31:0] = din[31:0];
.so({so[30:0],scan_out}),
// any PARAMS parms go into naming of macro
module ncu_c2iscd_ctl_msff_ctl_macro__en_1__width_16 (
assign fdin[15:0] = (din[15:0] & {16{en}}) | (dout[15:0] & ~{16{en}});
.so({so[14:0],scan_out}),