data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v
1: b'%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:23: Cannot find include file: sys.h\n`include "sys.h" \n         ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/458737381/src/verilog-parser/tests,data/full_repos/permissive/458737381/sys.h\n             data/full_repos/permissive/458737381/src/verilog-parser/tests,data/full_repos/permissive/458737381/sys.h.v\n             data/full_repos/permissive/458737381/src/verilog-parser/tests,data/full_repos/permissive/458737381/sys.h.sv\n             sys.h\n             sys.h.v\n             sys.h.sv\n             obj_dir/sys.h\n             obj_dir/sys.h.v\n             obj_dir/sys.h.sv\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:24: Cannot find include file: iop.h\n`include "iop.h" \n         ^~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:25: Cannot find include file: ctu.h\n`include "ctu.h" \n         ^~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:114: Define or directive not defined: \'`IOB_CPU_WIDTH\'\ninput [`IOB_CPU_WIDTH-1:0]iob_ctu_coreavail;  \n       ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:304: Define or directive not defined: \'`CTU_BIST_CNT\'\nwire [(`CTU_BIST_CNT*2)-1:0]bist_jtag_result;  \n       ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:304: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\nwire [(`CTU_BIST_CNT*2)-1:0]bist_jtag_result;  \n                    ^\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:309: Define or directive not defined: \'`CTU_BIST_CNT\'\nwire [`CTU_BIST_CNT-1:0]jtag_bist_active;  \n      ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:334: Define or directive not defined: \'`CTU_BIST_CNT\'\n       .jtag_bist_active (jtag_bist_active[`CTU_BIST_CNT-1:0]),\n                                           ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:465: Define or directive not defined: \'`CTU_BIST_CNT\'\n       .bist_jtag_result (bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]),\n                                            ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:465: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n       .bist_jtag_result (bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]),\n                                                         ^\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:485: Define or directive not defined: \'`CTU_BIST_CNT\'\n       .bist_jtag_result (bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]),\n                                            ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:485: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n       .bist_jtag_result (bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]),\n                                                         ^\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:507: Define or directive not defined: \'`IOB_CPU_WIDTH\'\n       .iob_ctu_coreavail (iob_ctu_coreavail[`IOB_CPU_WIDTH-1:0]),\n                                             ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:513: Define or directive not defined: \'`CTU_BIST_CNT\'\n       .jtag_bist_active (jtag_bist_active[`CTU_BIST_CNT-1:0]),\n                                           ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:573: Define or directive not defined: \'`CTU_BIST_CNT\'\n       .bist_jtag_result (bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]));\n                                            ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_dft.v:573: syntax error, unexpected \'*\', expecting TYPE-IDENTIFIER\n       .bist_jtag_result (bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]));\n                                                         ^\n%Error: Exiting due to 16 error(s)\n'
module ctu_dft (

testmode_l, tap_iob_vld, tap_iob_stall, tap_iob_data, rt_data_out, 
rt_ack, pscan_select, pll_bypass, jtag_nstep_vld, jtag_nstep_domain, 
jtag_nstep_count, jtag_clsp_stop_id_vld, jtag_clsp_stop_id, 
jtag_clsp_sel_tck2, jtag_clsp_ignore_wrm_rst, 
jtag_clsp_force_cken_jbus, jtag_clsp_force_cken_dram, 
jtag_clsp_force_cken_cmp, jtag_clock_dr, io_tdo_en, 
global_shift_enable, global_scan_bypass_en, dft_wake_thr, 
dft_tsr_tsel, dft_tsr_reset_l, dft_tsr_div, dft_tdo, dft_rng_vctrl, 
dft_rng_rst_l, dft_pll_testmode, dft_pll_div2, dft_pll_clamp_fltr, 
dft_pll_arst_l, dft_pin_pscan_l, dft_ctu_scan_disable, 
dft_clsp_nstep_capture_l, ctu_tst_short_chain, ctu_tst_scanmode, 
ctu_tst_scan_disable, ctu_tst_macrotest, ctu_spc_sscan_tid, 
ctu_spc7_tck, ctu_spc7_sscan_se, ctu_spc7_mbisten, ctu_spc6_tck, 
ctu_spc6_sscan_se, ctu_spc6_mbisten, ctu_spc5_tck, ctu_spc5_sscan_se, 
ctu_spc5_mbisten, ctu_spc4_tck, ctu_spc4_sscan_se, ctu_spc4_mbisten, 
ctu_spc3_tck, ctu_spc3_sscan_se, ctu_spc3_mbisten, ctu_spc2_tck, 
ctu_spc2_sscan_se, ctu_spc2_mbisten, ctu_spc1_tck, ctu_spc1_sscan_se, 
ctu_spc1_mbisten, ctu_spc0_tck, ctu_spc0_sscan_se, ctu_spc0_mbisten, 
ctu_sel_jbus, ctu_sel_dram, ctu_sel_cpu, ctu_sctag3_mbisten, 
ctu_sctag2_mbisten, ctu_sctag1_mbisten, ctu_sctag0_mbisten, 
ctu_pads_sscan_update, ctu_pads_so, ctu_pads_bso, ctu_misc_update_dr, 
ctu_misc_shift_dr, ctu_misc_mode_ctl, ctu_misc_hiz_l, 
ctu_misc_clock_dr, ctu_jbusr_update_dr, ctu_jbusr_shift_dr, 
ctu_jbusr_mode_ctl, ctu_jbusr_hiz_l, ctu_jbusr_clock_dr, 
ctu_jbusl_update_dr, ctu_jbusl_shift_dr, ctu_jbusl_mode_ctl, 
ctu_jbusl_hiz_l, ctu_jbusl_clock_dr, ctu_global_snap, ctu_fpu_so, 
ctu_efc_updatedr, ctu_efc_tck, ctu_efc_shiftdr, ctu_efc_rowaddr, 
ctu_efc_read_mode, ctu_efc_read_en, ctu_efc_fuse_bypass, 
ctu_efc_dest_sample, ctu_efc_data_in, ctu_efc_coladdr, 
ctu_efc_capturedr, ctu_debug_update_dr, ctu_debug_shift_dr, 
ctu_debug_mode_ctl, ctu_debug_hiz_l, ctu_debug_clock_dr, 
ctu_ddr_testmode_l, ctu_ddr3_update_dr, ctu_ddr3_shift_dr, 
ctu_ddr3_mode_ctl, ctu_ddr3_hiz_l, ctu_ddr3_clock_dr, 
ctu_ddr2_update_dr, ctu_ddr2_shift_dr, ctu_ddr2_mode_ctl, 
ctu_ddr2_hiz_l, ctu_ddr2_clock_dr, ctu_ddr1_update_dr, 
ctu_ddr1_shift_dr, ctu_ddr1_mode_ctl, ctu_ddr1_hiz_l, 
ctu_ddr1_clock_dr, ctu_ddr0_update_dr, ctu_ddr0_shift_dr, 
ctu_ddr0_mode_ctl, ctu_ddr0_hiz_l, ctu_ddr0_clock_dr, 

test_mode_pin, tck_l, start_clk_jl, spc7_ctu_sscan_out, 
spc7_ctu_mbisterr, spc7_ctu_mbistdone, spc6_ctu_sscan_out, 
spc6_ctu_mbisterr, spc6_ctu_mbistdone, spc5_ctu_sscan_out, 
spc5_ctu_mbisterr, spc5_ctu_mbistdone, spc4_ctu_sscan_out, 
spc4_ctu_mbisterr, spc4_ctu_mbistdone, spc3_ctu_sscan_out, 
spc3_ctu_mbisterr, spc3_ctu_mbistdone, spc2_ctu_sscan_out, 
spc2_ctu_mbisterr, spc2_ctu_mbistdone, spc1_ctu_sscan_out, 
spc1_ctu_mbisterr, spc1_ctu_mbistdone, spc0_ctu_sscan_out, 
spc0_ctu_mbisterr, spc0_ctu_mbistdone, sctag3_ctu_mbisterr, 
sctag3_ctu_mbistdone, sctag2_ctu_serial_scan_in, sctag2_ctu_mbisterr, 
sctag2_ctu_mbistdone, sctag1_ctu_mbisterr, sctag1_ctu_mbistdone, 
sctag0_ctu_mbisterr, sctag0_ctu_mbistdone, rt_valid, rt_read_write, 
rt_high_low, rt_data_in, rt_addr_data, pll_reset_ref_l, 
pll_bypass_pin, pads_ctu_si, pads_ctu_bsi, jtag_id, jbus_rst_l, 
jbus_clk, iob_tap_vld, iob_tap_stall, iob_tap_data, 
iob_ctu_coreavail, io_trst_l, io_tms, io_tdi, io_tck, io_pwron_rst_l, 
efc_ctu_data_out, cmp_tx_en, cmp_rx_en, cmp_rst_l, cmp_clk, 
clsp_bist_type, clsp_bist_dobist, clsp_bist_ctrl, bist_mode_pin, 
afi_tsr_tsel, afi_tsr_mode, afi_tsr_div, afi_rng_ctl, afi_pll_trst_l, 
afi_pll_div2, afi_pll_clamp_fltr, afi_pll_char_mode
);



input			afi_pll_char_mode;
input			afi_pll_clamp_fltr;
input [5:0]		afi_pll_div2;
input			afi_pll_trst_l;
input [2:0]		afi_rng_ctl;
input [9:1]		afi_tsr_div;
input			afi_tsr_mode;
input [7:0]		afi_tsr_tsel;
input			bist_mode_pin;
input [5:0]		clsp_bist_ctrl;
input			clsp_bist_dobist;
input			clsp_bist_type;
input			cmp_clk;
input			cmp_rst_l;
input			cmp_rx_en;
input			cmp_tx_en;
input			efc_ctu_data_out;
input			io_pwron_rst_l;
input			io_tck;
input			io_tdi;
input			io_tms;
input			io_trst_l;
input [`IOB_CPU_WIDTH-1:0]iob_ctu_coreavail;
input [7:0]		iob_tap_data;
input			iob_tap_stall;
input			iob_tap_vld;
input			jbus_clk;
input			jbus_rst_l;
input [3:0]		jtag_id;
input			pads_ctu_bsi;
input			pads_ctu_si;
input			pll_bypass_pin;
input			pll_reset_ref_l;
input			rt_addr_data;
input [31:0]		rt_data_in;
input			rt_high_low;
input			rt_read_write;
input			rt_valid;
input			sctag0_ctu_mbistdone;
input			sctag0_ctu_mbisterr;
input			sctag1_ctu_mbistdone;
input			sctag1_ctu_mbisterr;
input			sctag2_ctu_mbistdone;
input			sctag2_ctu_mbisterr;
input			sctag2_ctu_serial_scan_in;
input			sctag3_ctu_mbistdone;
input			sctag3_ctu_mbisterr;
input			spc0_ctu_mbistdone;
input			spc0_ctu_mbisterr;
input			spc0_ctu_sscan_out;
input			spc1_ctu_mbistdone;
input			spc1_ctu_mbisterr;
input			spc1_ctu_sscan_out;
input			spc2_ctu_mbistdone;
input			spc2_ctu_mbisterr;
input			spc2_ctu_sscan_out;
input			spc3_ctu_mbistdone;
input			spc3_ctu_mbisterr;
input			spc3_ctu_sscan_out;
input			spc4_ctu_mbistdone;
input			spc4_ctu_mbisterr;
input			spc4_ctu_sscan_out;
input			spc5_ctu_mbistdone;
input			spc5_ctu_mbisterr;
input			spc5_ctu_sscan_out;
input			spc6_ctu_mbistdone;
input			spc6_ctu_mbisterr;
input			spc6_ctu_sscan_out;
input			spc7_ctu_mbistdone;
input			spc7_ctu_mbisterr;
input			spc7_ctu_sscan_out;
input			start_clk_jl;
input			tck_l;
input			test_mode_pin;




output			ctu_ddr0_clock_dr;
output			ctu_ddr0_hiz_l;
output			ctu_ddr0_mode_ctl;
output			ctu_ddr0_shift_dr;
output			ctu_ddr0_update_dr;
output			ctu_ddr1_clock_dr;
output			ctu_ddr1_hiz_l;
output			ctu_ddr1_mode_ctl;
output			ctu_ddr1_shift_dr;
output			ctu_ddr1_update_dr;
output			ctu_ddr2_clock_dr;
output			ctu_ddr2_hiz_l;
output			ctu_ddr2_mode_ctl;
output			ctu_ddr2_shift_dr;
output			ctu_ddr2_update_dr;
output			ctu_ddr3_clock_dr;
output			ctu_ddr3_hiz_l;
output			ctu_ddr3_mode_ctl;
output			ctu_ddr3_shift_dr;
output			ctu_ddr3_update_dr;
output			ctu_ddr_testmode_l;
output			ctu_debug_clock_dr;
output			ctu_debug_hiz_l;
output			ctu_debug_mode_ctl;
output			ctu_debug_shift_dr;
output			ctu_debug_update_dr;
output			ctu_efc_capturedr;
output [4:0]		ctu_efc_coladdr;
output			ctu_efc_data_in;
output			ctu_efc_dest_sample;
output			ctu_efc_fuse_bypass;
output			ctu_efc_read_en;
output [2:0]		ctu_efc_read_mode;
output [6:0]		ctu_efc_rowaddr;
output			ctu_efc_shiftdr;
output			ctu_efc_tck;
output			ctu_efc_updatedr;
output			ctu_fpu_so;
output			ctu_global_snap;
output			ctu_jbusl_clock_dr;
output			ctu_jbusl_hiz_l;
output			ctu_jbusl_mode_ctl;
output			ctu_jbusl_shift_dr;
output			ctu_jbusl_update_dr;
output			ctu_jbusr_clock_dr;
output			ctu_jbusr_hiz_l;
output			ctu_jbusr_mode_ctl;
output			ctu_jbusr_shift_dr;
output			ctu_jbusr_update_dr;
output			ctu_misc_clock_dr;
output			ctu_misc_hiz_l;
output			ctu_misc_mode_ctl;
output			ctu_misc_shift_dr;
output			ctu_misc_update_dr;
output			ctu_pads_bso;
output			ctu_pads_so;
output			ctu_pads_sscan_update;
output			ctu_sctag0_mbisten;
output			ctu_sctag1_mbisten;
output			ctu_sctag2_mbisten;
output			ctu_sctag3_mbisten;
output [2:0]		ctu_sel_cpu;
output [2:0]		ctu_sel_dram;
output [2:0]		ctu_sel_jbus;
output			ctu_spc0_mbisten;
output			ctu_spc0_sscan_se;
output			ctu_spc0_tck;
output			ctu_spc1_mbisten;
output			ctu_spc1_sscan_se;
output			ctu_spc1_tck;
output			ctu_spc2_mbisten;
output			ctu_spc2_sscan_se;
output			ctu_spc2_tck;
output			ctu_spc3_mbisten;
output			ctu_spc3_sscan_se;
output			ctu_spc3_tck;
output			ctu_spc4_mbisten;
output			ctu_spc4_sscan_se;
output			ctu_spc4_tck;
output			ctu_spc5_mbisten;
output			ctu_spc5_sscan_se;
output			ctu_spc5_tck;
output			ctu_spc6_mbisten;
output			ctu_spc6_sscan_se;
output			ctu_spc6_tck;
output			ctu_spc7_mbisten;
output			ctu_spc7_sscan_se;
output			ctu_spc7_tck;
output [3:0]		ctu_spc_sscan_tid;
output			ctu_tst_macrotest;
output			ctu_tst_scan_disable;
output			ctu_tst_scanmode;
output			ctu_tst_short_chain;
output			dft_clsp_nstep_capture_l;
output			dft_ctu_scan_disable;
output			dft_pin_pscan_l;
output			dft_pll_arst_l;
output			dft_pll_clamp_fltr;
output [5:0]		dft_pll_div2;
output			dft_pll_testmode;
output			dft_rng_rst_l;
output [2:0]		dft_rng_vctrl;
output			dft_tdo;
output [9:1]		dft_tsr_div;
output			dft_tsr_reset_l;
output [7:0]		dft_tsr_tsel;
output			dft_wake_thr;
output			global_scan_bypass_en;
output			global_shift_enable;
output			io_tdo_en;
output			jtag_clock_dr;
output			jtag_clsp_force_cken_cmp;
output			jtag_clsp_force_cken_dram;
output			jtag_clsp_force_cken_jbus;
output			jtag_clsp_ignore_wrm_rst;
output			jtag_clsp_sel_tck2;
output [5:0]		jtag_clsp_stop_id;
output			jtag_clsp_stop_id_vld;
output [3:0]		jtag_nstep_count;
output [2:0]		jtag_nstep_domain;
output			jtag_nstep_vld;
output			pll_bypass;
output			pscan_select;
output			rt_ack;
output [31:0]		rt_data_out;
output [7:0]		tap_iob_data;
output			tap_iob_stall;
output			tap_iob_vld;
output			testmode_l;




wire			bist_jtag_abort_done;
wire [(`CTU_BIST_CNT*2)-1:0]bist_jtag_result;
wire [63:0]		creg_jtag_rdrtrn_data;
wire			creg_jtag_rdrtrn_vld;
wire [63:0]		creg_jtag_scratch_data;
wire			jtag_bist_abort;
wire [`CTU_BIST_CNT-1:0]jtag_bist_active;
wire			jtag_bist_parallel;
wire			jtag_bist_serial;
wire [39:0]		jtag_creg_addr;
wire			jtag_creg_addr_en;
wire [63:0]		jtag_creg_data;
wire			jtag_creg_data_en;
wire			jtag_creg_rd_en;
wire			jtag_creg_rdrtrn_complete;
wire			jtag_creg_wr_en;


ctu_dft_jtag u_jtag (

		     .dft_tdo		(dft_tdo),
		     .io_tdo_en		(io_tdo_en),
		     .jtag_creg_addr	(jtag_creg_addr[39:0]),
		     .jtag_creg_data	(jtag_creg_data[63:0]),
		     .jtag_creg_rd_en	(jtag_creg_rd_en),
		     .jtag_creg_wr_en	(jtag_creg_wr_en),
		     .jtag_creg_addr_en	(jtag_creg_addr_en),
		     .jtag_creg_data_en	(jtag_creg_data_en),
		     .jtag_creg_rdrtrn_complete(jtag_creg_rdrtrn_complete),
		     .jtag_bist_serial	(jtag_bist_serial),
		     .jtag_bist_parallel(jtag_bist_parallel),
		     .jtag_bist_active	(jtag_bist_active[`CTU_BIST_CNT-1:0]),
		     .jtag_bist_abort	(jtag_bist_abort),
		     .dft_pll_div2	(dft_pll_div2[5:0]),
		     .dft_pll_arst_l	(dft_pll_arst_l),
		     .dft_pll_testmode	(dft_pll_testmode),
		     .dft_pll_clamp_fltr(dft_pll_clamp_fltr),
		     .jtag_clsp_stop_id_vld(jtag_clsp_stop_id_vld),
		     .jtag_clsp_stop_id	(jtag_clsp_stop_id[5:0]),
		     .jtag_nstep_vld	(jtag_nstep_vld),
		     .jtag_nstep_domain	(jtag_nstep_domain[2:0]),
		     .jtag_nstep_count	(jtag_nstep_count[3:0]),
		     .dft_clsp_nstep_capture_l(dft_clsp_nstep_capture_l),
		     .jtag_clock_dr	(jtag_clock_dr),
		     .jtag_clsp_ignore_wrm_rst(jtag_clsp_ignore_wrm_rst),
		     .jtag_clsp_sel_tck2(jtag_clsp_sel_tck2),
		     .jtag_clsp_force_cken_cmp(jtag_clsp_force_cken_cmp),
		     .jtag_clsp_force_cken_dram(jtag_clsp_force_cken_dram),
		     .jtag_clsp_force_cken_jbus(jtag_clsp_force_cken_jbus),
		     .pll_bypass	(pll_bypass),
		     .ctu_sel_cpu	(ctu_sel_cpu[2:0]),
		     .ctu_sel_dram	(ctu_sel_dram[2:0]),
		     .ctu_sel_jbus	(ctu_sel_jbus[2:0]),
		     .ctu_spc0_sscan_se	(ctu_spc0_sscan_se),
		     .ctu_spc1_sscan_se	(ctu_spc1_sscan_se),
		     .ctu_spc2_sscan_se	(ctu_spc2_sscan_se),
		     .ctu_spc3_sscan_se	(ctu_spc3_sscan_se),
		     .ctu_spc4_sscan_se	(ctu_spc4_sscan_se),
		     .ctu_spc5_sscan_se	(ctu_spc5_sscan_se),
		     .ctu_spc6_sscan_se	(ctu_spc6_sscan_se),
		     .ctu_spc7_sscan_se	(ctu_spc7_sscan_se),
		     .ctu_spc0_tck	(ctu_spc0_tck),
		     .ctu_spc1_tck	(ctu_spc1_tck),
		     .ctu_spc2_tck	(ctu_spc2_tck),
		     .ctu_spc3_tck	(ctu_spc3_tck),
		     .ctu_spc4_tck	(ctu_spc4_tck),
		     .ctu_spc5_tck	(ctu_spc5_tck),
		     .ctu_spc6_tck	(ctu_spc6_tck),
		     .ctu_spc7_tck	(ctu_spc7_tck),
		     .ctu_spc_sscan_tid	(ctu_spc_sscan_tid[3:0]),
		     .ctu_pads_sscan_update(ctu_pads_sscan_update),
		     .ctu_global_snap	(ctu_global_snap),
		     .ctu_ddr0_mode_ctl	(ctu_ddr0_mode_ctl),
		     .ctu_ddr0_hiz_l	(ctu_ddr0_hiz_l),
		     .ctu_ddr0_update_dr(ctu_ddr0_update_dr),
		     .ctu_ddr0_clock_dr	(ctu_ddr0_clock_dr),
		     .ctu_ddr0_shift_dr	(ctu_ddr0_shift_dr),
		     .ctu_ddr1_mode_ctl	(ctu_ddr1_mode_ctl),
		     .ctu_ddr1_hiz_l	(ctu_ddr1_hiz_l),
		     .ctu_ddr1_update_dr(ctu_ddr1_update_dr),
		     .ctu_ddr1_clock_dr	(ctu_ddr1_clock_dr),
		     .ctu_ddr1_shift_dr	(ctu_ddr1_shift_dr),
		     .ctu_ddr2_mode_ctl	(ctu_ddr2_mode_ctl),
		     .ctu_ddr2_hiz_l	(ctu_ddr2_hiz_l),
		     .ctu_ddr2_update_dr(ctu_ddr2_update_dr),
		     .ctu_ddr2_clock_dr	(ctu_ddr2_clock_dr),
		     .ctu_ddr2_shift_dr	(ctu_ddr2_shift_dr),
		     .ctu_ddr3_mode_ctl	(ctu_ddr3_mode_ctl),
		     .ctu_ddr3_hiz_l	(ctu_ddr3_hiz_l),
		     .ctu_ddr3_update_dr(ctu_ddr3_update_dr),
		     .ctu_ddr3_clock_dr	(ctu_ddr3_clock_dr),
		     .ctu_ddr3_shift_dr	(ctu_ddr3_shift_dr),
		     .ctu_jbusl_mode_ctl(ctu_jbusl_mode_ctl),
		     .ctu_jbusl_hiz_l	(ctu_jbusl_hiz_l),
		     .ctu_jbusl_update_dr(ctu_jbusl_update_dr),
		     .ctu_jbusl_clock_dr(ctu_jbusl_clock_dr),
		     .ctu_jbusl_shift_dr(ctu_jbusl_shift_dr),
		     .ctu_jbusr_mode_ctl(ctu_jbusr_mode_ctl),
		     .ctu_jbusr_hiz_l	(ctu_jbusr_hiz_l),
		     .ctu_jbusr_update_dr(ctu_jbusr_update_dr),
		     .ctu_jbusr_clock_dr(ctu_jbusr_clock_dr),
		     .ctu_jbusr_shift_dr(ctu_jbusr_shift_dr),
		     .ctu_debug_mode_ctl(ctu_debug_mode_ctl),
		     .ctu_debug_hiz_l	(ctu_debug_hiz_l),
		     .ctu_debug_update_dr(ctu_debug_update_dr),
		     .ctu_debug_clock_dr(ctu_debug_clock_dr),
		     .ctu_debug_shift_dr(ctu_debug_shift_dr),
		     .ctu_misc_mode_ctl	(ctu_misc_mode_ctl),
		     .ctu_misc_hiz_l	(ctu_misc_hiz_l),
		     .ctu_misc_update_dr(ctu_misc_update_dr),
		     .ctu_misc_clock_dr	(ctu_misc_clock_dr),
		     .ctu_misc_shift_dr	(ctu_misc_shift_dr),
		     .ctu_pads_bso	(ctu_pads_bso),
		     .global_shift_enable(global_shift_enable),
		     .global_scan_bypass_en(global_scan_bypass_en),
		     .dft_ctu_scan_disable(dft_ctu_scan_disable),
		     .dft_pin_pscan_l	(dft_pin_pscan_l),
		     .ctu_pads_so	(ctu_pads_so),
		     .ctu_fpu_so	(ctu_fpu_so),
		     .pscan_select	(pscan_select),
		     .ctu_ddr_testmode_l(ctu_ddr_testmode_l),
		     .ctu_tst_scanmode	(ctu_tst_scanmode),
		     .ctu_tst_macrotest	(ctu_tst_macrotest),
		     .ctu_tst_short_chain(ctu_tst_short_chain),
		     .ctu_tst_scan_disable(ctu_tst_scan_disable),
		     .ctu_efc_data_in	(ctu_efc_data_in),
		     .ctu_efc_updatedr	(ctu_efc_updatedr),
		     .ctu_efc_shiftdr	(ctu_efc_shiftdr),
		     .ctu_efc_capturedr	(ctu_efc_capturedr),
		     .ctu_efc_tck	(ctu_efc_tck),
		     .ctu_efc_rowaddr	(ctu_efc_rowaddr[6:0]),
		     .ctu_efc_coladdr	(ctu_efc_coladdr[4:0]),
		     .ctu_efc_read_en	(ctu_efc_read_en),
		     .ctu_efc_read_mode	(ctu_efc_read_mode[2:0]),
		     .ctu_efc_fuse_bypass(ctu_efc_fuse_bypass),
		     .ctu_efc_dest_sample(ctu_efc_dest_sample),
		     .dft_rng_vctrl	(dft_rng_vctrl[2:0]),
		     .dft_rng_rst_l	(dft_rng_rst_l),
		     .dft_tsr_div	(dft_tsr_div[9:1]),
		     .dft_tsr_tsel	(dft_tsr_tsel[7:0]),
		     .dft_tsr_reset_l	(dft_tsr_reset_l),
		     .testmode_l	(testmode_l),

		     .jbus_rst_l	(jbus_rst_l),
		     .io_tdi		(io_tdi),
		     .io_tms		(io_tms),
		     .io_trst_l		(io_trst_l),
		     .io_tck		(io_tck),
		     .tck_l		(tck_l),
		     .jtag_id		(jtag_id[3:0]),
		     .test_mode_pin	(test_mode_pin),
		     .afi_rng_ctl	(afi_rng_ctl[2:0]),
		     .afi_tsr_div	(afi_tsr_div[9:1]),
		     .afi_tsr_mode	(afi_tsr_mode),
		     .afi_pll_char_mode	(afi_pll_char_mode),
		     .afi_pll_div2	(afi_pll_div2[5:0]),
		     .afi_pll_trst_l	(afi_pll_trst_l),
		     .afi_tsr_tsel	(afi_tsr_tsel[7:0]),
		     .afi_pll_clamp_fltr(afi_pll_clamp_fltr),
		     .creg_jtag_scratch_data(creg_jtag_scratch_data[63:0]),
		     .creg_jtag_rdrtrn_data(creg_jtag_rdrtrn_data[63:0]),
		     .creg_jtag_rdrtrn_vld(creg_jtag_rdrtrn_vld),
		     .bist_jtag_result	(bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]),
		     .bist_jtag_abort_done(bist_jtag_abort_done),
		     .pll_bypass_pin	(pll_bypass_pin),
		     .pll_reset_ref_l	(pll_reset_ref_l),
		     .spc0_ctu_sscan_out(spc0_ctu_sscan_out),
		     .spc1_ctu_sscan_out(spc1_ctu_sscan_out),
		     .spc2_ctu_sscan_out(spc2_ctu_sscan_out),
		     .spc3_ctu_sscan_out(spc3_ctu_sscan_out),
		     .spc4_ctu_sscan_out(spc4_ctu_sscan_out),
		     .spc5_ctu_sscan_out(spc5_ctu_sscan_out),
		     .spc6_ctu_sscan_out(spc6_ctu_sscan_out),
		     .spc7_ctu_sscan_out(spc7_ctu_sscan_out),
		     .pads_ctu_bsi	(pads_ctu_bsi),
		     .pads_ctu_si	(pads_ctu_si),
		     .sctag2_ctu_serial_scan_in(sctag2_ctu_serial_scan_in),
		     .efc_ctu_data_out	(efc_ctu_data_out));

ctu_dft_bist u_bist (

		     .dft_wake_thr	(dft_wake_thr),
		     .bist_jtag_result	(bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]),
		     .bist_jtag_abort_done(bist_jtag_abort_done),
		     .ctu_sctag0_mbisten(ctu_sctag0_mbisten),
		     .ctu_sctag1_mbisten(ctu_sctag1_mbisten),
		     .ctu_sctag2_mbisten(ctu_sctag2_mbisten),
		     .ctu_sctag3_mbisten(ctu_sctag3_mbisten),
		     .ctu_spc7_mbisten	(ctu_spc7_mbisten),
		     .ctu_spc6_mbisten	(ctu_spc6_mbisten),
		     .ctu_spc5_mbisten	(ctu_spc5_mbisten),
		     .ctu_spc4_mbisten	(ctu_spc4_mbisten),
		     .ctu_spc3_mbisten	(ctu_spc3_mbisten),
		     .ctu_spc2_mbisten	(ctu_spc2_mbisten),
		     .ctu_spc1_mbisten	(ctu_spc1_mbisten),
		     .ctu_spc0_mbisten	(ctu_spc0_mbisten),

		     .cmp_clk		(cmp_clk),
		     .cmp_rst_l		(cmp_rst_l),
		     .cmp_tx_en		(cmp_tx_en),
		     .cmp_rx_en		(cmp_rx_en),
		     .jbus_clk		(jbus_clk),
		     .jbus_rst_l	(jbus_rst_l),
		     .io_tck		(io_tck),
		     .iob_ctu_coreavail	(iob_ctu_coreavail[`IOB_CPU_WIDTH-1:0]),
		     .clsp_bist_dobist	(clsp_bist_dobist),
		     .clsp_bist_type	(clsp_bist_type),
		     .clsp_bist_ctrl	(clsp_bist_ctrl[5:0]),
		     .jtag_bist_serial	(jtag_bist_serial),
		     .jtag_bist_parallel(jtag_bist_parallel),
		     .jtag_bist_active	(jtag_bist_active[`CTU_BIST_CNT-1:0]),
		     .jtag_bist_abort	(jtag_bist_abort),
		     .sctag0_ctu_mbistdone(sctag0_ctu_mbistdone),
		     .sctag1_ctu_mbistdone(sctag1_ctu_mbistdone),
		     .sctag2_ctu_mbistdone(sctag2_ctu_mbistdone),
		     .sctag3_ctu_mbistdone(sctag3_ctu_mbistdone),
		     .spc7_ctu_mbistdone(spc7_ctu_mbistdone),
		     .spc6_ctu_mbistdone(spc6_ctu_mbistdone),
		     .spc5_ctu_mbistdone(spc5_ctu_mbistdone),
		     .spc4_ctu_mbistdone(spc4_ctu_mbistdone),
		     .spc3_ctu_mbistdone(spc3_ctu_mbistdone),
		     .spc2_ctu_mbistdone(spc2_ctu_mbistdone),
		     .spc1_ctu_mbistdone(spc1_ctu_mbistdone),
		     .spc0_ctu_mbistdone(spc0_ctu_mbistdone),
		     .sctag0_ctu_mbisterr(sctag0_ctu_mbisterr),
		     .sctag1_ctu_mbisterr(sctag1_ctu_mbisterr),
		     .sctag2_ctu_mbisterr(sctag2_ctu_mbisterr),
		     .sctag3_ctu_mbisterr(sctag3_ctu_mbisterr),
		     .spc7_ctu_mbisterr	(spc7_ctu_mbisterr),
		     .spc6_ctu_mbisterr	(spc6_ctu_mbisterr),
		     .spc5_ctu_mbisterr	(spc5_ctu_mbisterr),
		     .spc4_ctu_mbisterr	(spc4_ctu_mbisterr),
		     .spc3_ctu_mbisterr	(spc3_ctu_mbisterr),
		     .spc2_ctu_mbisterr	(spc2_ctu_mbisterr),
		     .spc1_ctu_mbisterr	(spc1_ctu_mbisterr),
		     .spc0_ctu_mbisterr	(spc0_ctu_mbisterr));

ctu_dft_creg u_creg (

		     .creg_jtag_scratch_data(creg_jtag_scratch_data[63:0]),
		     .creg_jtag_rdrtrn_data(creg_jtag_rdrtrn_data[63:0]),
		     .creg_jtag_rdrtrn_vld(creg_jtag_rdrtrn_vld),
		     .tap_iob_stall	(tap_iob_stall),
		     .tap_iob_vld	(tap_iob_vld),
		     .tap_iob_data	(tap_iob_data[7:0]),
		     .rt_ack		(rt_ack),
		     .rt_data_out	(rt_data_out[31:0]),

		     .io_tck		(io_tck),
		     .jbus_clk		(jbus_clk),
		     .jbus_rst_l	(jbus_rst_l),
		     .io_pwron_rst_l	(io_pwron_rst_l),
		     .test_mode_pin	(test_mode_pin),
		     .bist_mode_pin	(bist_mode_pin),
		     .start_clk_jl	(start_clk_jl),
		     .jtag_creg_addr	(jtag_creg_addr[39:0]),
		     .jtag_creg_data	(jtag_creg_data[63:0]),
		     .jtag_creg_rd_en	(jtag_creg_rd_en),
		     .jtag_creg_wr_en	(jtag_creg_wr_en),
		     .jtag_creg_addr_en	(jtag_creg_addr_en),
		     .jtag_creg_data_en	(jtag_creg_data_en),
		     .jtag_creg_rdrtrn_complete(jtag_creg_rdrtrn_complete),
		     .iob_tap_vld	(iob_tap_vld),
		     .iob_tap_data	(iob_tap_data[7:0]),
		     .iob_tap_stall	(iob_tap_stall),
		     .rt_valid		(rt_valid),
		     .rt_addr_data	(rt_addr_data),
		     .rt_read_write	(rt_read_write),
		     .rt_high_low	(rt_high_low),
		     .rt_data_in	(rt_data_in[31:0]),
		     .bist_jtag_result	(bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]));

endmodule
module ctu_dft (

testmode_l, tap_iob_vld, tap_iob_stall, tap_iob_data, rt_data_out, 
rt_ack, pscan_select, pll_bypass, jtag_nstep_vld, jtag_nstep_domain, 
jtag_nstep_count, jtag_clsp_stop_id_vld, jtag_clsp_stop_id, 
jtag_clsp_sel_tck2, jtag_clsp_ignore_wrm_rst, 
jtag_clsp_force_cken_jbus, jtag_clsp_force_cken_dram, 
jtag_clsp_force_cken_cmp, jtag_clock_dr, io_tdo_en, 
global_shift_enable, global_scan_bypass_en, dft_wake_thr, 
dft_tsr_tsel, dft_tsr_reset_l, dft_tsr_div, dft_tdo, dft_rng_vctrl, 
dft_rng_rst_l, dft_pll_testmode, dft_pll_div2, dft_pll_clamp_fltr, 
dft_pll_arst_l, dft_pin_pscan_l, dft_ctu_scan_disable, 
dft_clsp_nstep_capture_l, ctu_tst_short_chain, ctu_tst_scanmode, 
ctu_tst_scan_disable, ctu_tst_macrotest, ctu_spc_sscan_tid, 
ctu_spc7_tck, ctu_spc7_sscan_se, ctu_spc7_mbisten, ctu_spc6_tck, 
ctu_spc6_sscan_se, ctu_spc6_mbisten, ctu_spc5_tck, ctu_spc5_sscan_se, 
ctu_spc5_mbisten, ctu_spc4_tck, ctu_spc4_sscan_se, ctu_spc4_mbisten, 
ctu_spc3_tck, ctu_spc3_sscan_se, ctu_spc3_mbisten, ctu_spc2_tck, 
ctu_spc2_sscan_se, ctu_spc2_mbisten, ctu_spc1_tck, ctu_spc1_sscan_se, 
ctu_spc1_mbisten, ctu_spc0_tck, ctu_spc0_sscan_se, ctu_spc0_mbisten, 
ctu_sel_jbus, ctu_sel_dram, ctu_sel_cpu, ctu_sctag3_mbisten, 
ctu_sctag2_mbisten, ctu_sctag1_mbisten, ctu_sctag0_mbisten, 
ctu_pads_sscan_update, ctu_pads_so, ctu_pads_bso, ctu_misc_update_dr, 
ctu_misc_shift_dr, ctu_misc_mode_ctl, ctu_misc_hiz_l, 
ctu_misc_clock_dr, ctu_jbusr_update_dr, ctu_jbusr_shift_dr, 
ctu_jbusr_mode_ctl, ctu_jbusr_hiz_l, ctu_jbusr_clock_dr, 
ctu_jbusl_update_dr, ctu_jbusl_shift_dr, ctu_jbusl_mode_ctl, 
ctu_jbusl_hiz_l, ctu_jbusl_clock_dr, ctu_global_snap, ctu_fpu_so, 
ctu_efc_updatedr, ctu_efc_tck, ctu_efc_shiftdr, ctu_efc_rowaddr, 
ctu_efc_read_mode, ctu_efc_read_en, ctu_efc_fuse_bypass, 
ctu_efc_dest_sample, ctu_efc_data_in, ctu_efc_coladdr, 
ctu_efc_capturedr, ctu_debug_update_dr, ctu_debug_shift_dr, 
ctu_debug_mode_ctl, ctu_debug_hiz_l, ctu_debug_clock_dr, 
ctu_ddr_testmode_l, ctu_ddr3_update_dr, ctu_ddr3_shift_dr, 
ctu_ddr3_mode_ctl, ctu_ddr3_hiz_l, ctu_ddr3_clock_dr, 
ctu_ddr2_update_dr, ctu_ddr2_shift_dr, ctu_ddr2_mode_ctl, 
ctu_ddr2_hiz_l, ctu_ddr2_clock_dr, ctu_ddr1_update_dr, 
ctu_ddr1_shift_dr, ctu_ddr1_mode_ctl, ctu_ddr1_hiz_l, 
ctu_ddr1_clock_dr, ctu_ddr0_update_dr, ctu_ddr0_shift_dr, 
ctu_ddr0_mode_ctl, ctu_ddr0_hiz_l, ctu_ddr0_clock_dr, 

test_mode_pin, tck_l, start_clk_jl, spc7_ctu_sscan_out, 
spc7_ctu_mbisterr, spc7_ctu_mbistdone, spc6_ctu_sscan_out, 
spc6_ctu_mbisterr, spc6_ctu_mbistdone, spc5_ctu_sscan_out, 
spc5_ctu_mbisterr, spc5_ctu_mbistdone, spc4_ctu_sscan_out, 
spc4_ctu_mbisterr, spc4_ctu_mbistdone, spc3_ctu_sscan_out, 
spc3_ctu_mbisterr, spc3_ctu_mbistdone, spc2_ctu_sscan_out, 
spc2_ctu_mbisterr, spc2_ctu_mbistdone, spc1_ctu_sscan_out, 
spc1_ctu_mbisterr, spc1_ctu_mbistdone, spc0_ctu_sscan_out, 
spc0_ctu_mbisterr, spc0_ctu_mbistdone, sctag3_ctu_mbisterr, 
sctag3_ctu_mbistdone, sctag2_ctu_serial_scan_in, sctag2_ctu_mbisterr, 
sctag2_ctu_mbistdone, sctag1_ctu_mbisterr, sctag1_ctu_mbistdone, 
sctag0_ctu_mbisterr, sctag0_ctu_mbistdone, rt_valid, rt_read_write, 
rt_high_low, rt_data_in, rt_addr_data, pll_reset_ref_l, 
pll_bypass_pin, pads_ctu_si, pads_ctu_bsi, jtag_id, jbus_rst_l, 
jbus_clk, iob_tap_vld, iob_tap_stall, iob_tap_data, 
iob_ctu_coreavail, io_trst_l, io_tms, io_tdi, io_tck, io_pwron_rst_l, 
efc_ctu_data_out, cmp_tx_en, cmp_rx_en, cmp_rst_l, cmp_clk, 
clsp_bist_type, clsp_bist_dobist, clsp_bist_ctrl, bist_mode_pin, 
afi_tsr_tsel, afi_tsr_mode, afi_tsr_div, afi_rng_ctl, afi_pll_trst_l, 
afi_pll_div2, afi_pll_clamp_fltr, afi_pll_char_mode
);




input			afi_pll_char_mode;
input			afi_pll_clamp_fltr;
input [5:0]		afi_pll_div2;
input			afi_pll_trst_l;
input [2:0]		afi_rng_ctl;
input [9:1]		afi_tsr_div;
input			afi_tsr_mode;
input [7:0]		afi_tsr_tsel;
input			bist_mode_pin;
input [5:0]		clsp_bist_ctrl;
input			clsp_bist_dobist;
input			clsp_bist_type;
input			cmp_clk;
input			cmp_rst_l;
input			cmp_rx_en;
input			cmp_tx_en;
input			efc_ctu_data_out;
input			io_pwron_rst_l;
input			io_tck;
input			io_tdi;
input			io_tms;
input			io_trst_l;
input [`IOB_CPU_WIDTH-1:0]iob_ctu_coreavail;
input [7:0]		iob_tap_data;
input			iob_tap_stall;
input			iob_tap_vld;
input			jbus_clk;
input			jbus_rst_l;
input [3:0]		jtag_id;
input			pads_ctu_bsi;
input			pads_ctu_si;
input			pll_bypass_pin;
input			pll_reset_ref_l;
input			rt_addr_data;
input [31:0]		rt_data_in;
input			rt_high_low;
input			rt_read_write;
input			rt_valid;
input			sctag0_ctu_mbistdone;
input			sctag0_ctu_mbisterr;
input			sctag1_ctu_mbistdone;
input			sctag1_ctu_mbisterr;
input			sctag2_ctu_mbistdone;
input			sctag2_ctu_mbisterr;
input			sctag2_ctu_serial_scan_in;
input			sctag3_ctu_mbistdone;
input			sctag3_ctu_mbisterr;
input			spc0_ctu_mbistdone;
input			spc0_ctu_mbisterr;
input			spc0_ctu_sscan_out;
input			spc1_ctu_mbistdone;
input			spc1_ctu_mbisterr;
input			spc1_ctu_sscan_out;
input			spc2_ctu_mbistdone;
input			spc2_ctu_mbisterr;
input			spc2_ctu_sscan_out;
input			spc3_ctu_mbistdone;
input			spc3_ctu_mbisterr;
input			spc3_ctu_sscan_out;
input			spc4_ctu_mbistdone;
input			spc4_ctu_mbisterr;
input			spc4_ctu_sscan_out;
input			spc5_ctu_mbistdone;
input			spc5_ctu_mbisterr;
input			spc5_ctu_sscan_out;
input			spc6_ctu_mbistdone;
input			spc6_ctu_mbisterr;
input			spc6_ctu_sscan_out;
input			spc7_ctu_mbistdone;
input			spc7_ctu_mbisterr;
input			spc7_ctu_sscan_out;
input			start_clk_jl;
input			tck_l;
input			test_mode_pin;




output			ctu_ddr0_clock_dr;
output			ctu_ddr0_hiz_l;
output			ctu_ddr0_mode_ctl;
output			ctu_ddr0_shift_dr;
output			ctu_ddr0_update_dr;
output			ctu_ddr1_clock_dr;
output			ctu_ddr1_hiz_l;
output			ctu_ddr1_mode_ctl;
output			ctu_ddr1_shift_dr;
output			ctu_ddr1_update_dr;
output			ctu_ddr2_clock_dr;
output			ctu_ddr2_hiz_l;
output			ctu_ddr2_mode_ctl;
output			ctu_ddr2_shift_dr;
output			ctu_ddr2_update_dr;
output			ctu_ddr3_clock_dr;
output			ctu_ddr3_hiz_l;
output			ctu_ddr3_mode_ctl;
output			ctu_ddr3_shift_dr;
output			ctu_ddr3_update_dr;
output			ctu_ddr_testmode_l;
output			ctu_debug_clock_dr;
output			ctu_debug_hiz_l;
output			ctu_debug_mode_ctl;
output			ctu_debug_shift_dr;
output			ctu_debug_update_dr;
output			ctu_efc_capturedr;
output [4:0]		ctu_efc_coladdr;
output			ctu_efc_data_in;
output			ctu_efc_dest_sample;
output			ctu_efc_fuse_bypass;
output			ctu_efc_read_en;
output [2:0]		ctu_efc_read_mode;
output [6:0]		ctu_efc_rowaddr;
output			ctu_efc_shiftdr;
output			ctu_efc_tck;
output			ctu_efc_updatedr;
output			ctu_fpu_so;
output			ctu_global_snap;
output			ctu_jbusl_clock_dr;
output			ctu_jbusl_hiz_l;
output			ctu_jbusl_mode_ctl;
output			ctu_jbusl_shift_dr;
output			ctu_jbusl_update_dr;
output			ctu_jbusr_clock_dr;
output			ctu_jbusr_hiz_l;
output			ctu_jbusr_mode_ctl;
output			ctu_jbusr_shift_dr;
output			ctu_jbusr_update_dr;
output			ctu_misc_clock_dr;
output			ctu_misc_hiz_l;
output			ctu_misc_mode_ctl;
output			ctu_misc_shift_dr;
output			ctu_misc_update_dr;
output			ctu_pads_bso;
output			ctu_pads_so;
output			ctu_pads_sscan_update;
output			ctu_sctag0_mbisten;
output			ctu_sctag1_mbisten;
output			ctu_sctag2_mbisten;
output			ctu_sctag3_mbisten;
output [2:0]		ctu_sel_cpu;
output [2:0]		ctu_sel_dram;
output [2:0]		ctu_sel_jbus;
output			ctu_spc0_mbisten;
output			ctu_spc0_sscan_se;
output			ctu_spc0_tck;
output			ctu_spc1_mbisten;
output			ctu_spc1_sscan_se;
output			ctu_spc1_tck;
output			ctu_spc2_mbisten;
output			ctu_spc2_sscan_se;
output			ctu_spc2_tck;
output			ctu_spc3_mbisten;
output			ctu_spc3_sscan_se;
output			ctu_spc3_tck;
output			ctu_spc4_mbisten;
output			ctu_spc4_sscan_se;
output			ctu_spc4_tck;
output			ctu_spc5_mbisten;
output			ctu_spc5_sscan_se;
output			ctu_spc5_tck;
output			ctu_spc6_mbisten;
output			ctu_spc6_sscan_se;
output			ctu_spc6_tck;
output			ctu_spc7_mbisten;
output			ctu_spc7_sscan_se;
output			ctu_spc7_tck;
output [3:0]		ctu_spc_sscan_tid;
output			ctu_tst_macrotest;
output			ctu_tst_scan_disable;
output			ctu_tst_scanmode;
output			ctu_tst_short_chain;
output			dft_clsp_nstep_capture_l;
output			dft_ctu_scan_disable;
output			dft_pin_pscan_l;
output			dft_pll_arst_l;
output			dft_pll_clamp_fltr;
output [5:0]		dft_pll_div2;
output			dft_pll_testmode;
output			dft_rng_rst_l;
output [2:0]		dft_rng_vctrl;
output			dft_tdo;
output [9:1]		dft_tsr_div;
output			dft_tsr_reset_l;
output [7:0]		dft_tsr_tsel;
output			dft_wake_thr;
output			global_scan_bypass_en;
output			global_shift_enable;
output			io_tdo_en;
output			jtag_clock_dr;
output			jtag_clsp_force_cken_cmp;
output			jtag_clsp_force_cken_dram;
output			jtag_clsp_force_cken_jbus;
output			jtag_clsp_ignore_wrm_rst;
output			jtag_clsp_sel_tck2;
output [5:0]		jtag_clsp_stop_id;
output			jtag_clsp_stop_id_vld;
output [3:0]		jtag_nstep_count;
output [2:0]		jtag_nstep_domain;
output			jtag_nstep_vld;
output			pll_bypass;
output			pscan_select;
output			rt_ack;
output [31:0]		rt_data_out;
output [7:0]		tap_iob_data;
output			tap_iob_stall;
output			tap_iob_vld;
output			testmode_l;




wire			bist_jtag_abort_done;
wire [(`CTU_BIST_CNT*2)-1:0]bist_jtag_result;
wire [63:0]		creg_jtag_rdrtrn_data;
wire			creg_jtag_rdrtrn_vld;
wire [63:0]		creg_jtag_scratch_data;
wire			jtag_bist_abort;
wire [`CTU_BIST_CNT-1:0]jtag_bist_active;
wire			jtag_bist_parallel;
wire			jtag_bist_serial;
wire [39:0]		jtag_creg_addr;
wire			jtag_creg_addr_en;
wire [63:0]		jtag_creg_data;
wire			jtag_creg_data_en;
wire			jtag_creg_rd_en;
wire			jtag_creg_rdrtrn_complete;
wire			jtag_creg_wr_en;


ctu_dft_jtag u_jtag (

		     .dft_tdo		(dft_tdo),
		     .io_tdo_en		(io_tdo_en),
		     .jtag_creg_addr	(jtag_creg_addr[39:0]),
		     .jtag_creg_data	(jtag_creg_data[63:0]),
		     .jtag_creg_rd_en	(jtag_creg_rd_en),
		     .jtag_creg_wr_en	(jtag_creg_wr_en),
		     .jtag_creg_addr_en	(jtag_creg_addr_en),
		     .jtag_creg_data_en	(jtag_creg_data_en),
		     .jtag_creg_rdrtrn_complete(jtag_creg_rdrtrn_complete),
		     .jtag_bist_serial	(jtag_bist_serial),
		     .jtag_bist_parallel(jtag_bist_parallel),
		     .jtag_bist_active	(jtag_bist_active[`CTU_BIST_CNT-1:0]),
		     .jtag_bist_abort	(jtag_bist_abort),
		     .dft_pll_div2	(dft_pll_div2[5:0]),
		     .dft_pll_arst_l	(dft_pll_arst_l),
		     .dft_pll_testmode	(dft_pll_testmode),
		     .dft_pll_clamp_fltr(dft_pll_clamp_fltr),
		     .jtag_clsp_stop_id_vld(jtag_clsp_stop_id_vld),
		     .jtag_clsp_stop_id	(jtag_clsp_stop_id[5:0]),
		     .jtag_nstep_vld	(jtag_nstep_vld),
		     .jtag_nstep_domain	(jtag_nstep_domain[2:0]),
		     .jtag_nstep_count	(jtag_nstep_count[3:0]),
		     .dft_clsp_nstep_capture_l(dft_clsp_nstep_capture_l),
		     .jtag_clock_dr	(jtag_clock_dr),
		     .jtag_clsp_ignore_wrm_rst(jtag_clsp_ignore_wrm_rst),
		     .jtag_clsp_sel_tck2(jtag_clsp_sel_tck2),
		     .jtag_clsp_force_cken_cmp(jtag_clsp_force_cken_cmp),
		     .jtag_clsp_force_cken_dram(jtag_clsp_force_cken_dram),
		     .jtag_clsp_force_cken_jbus(jtag_clsp_force_cken_jbus),
		     .pll_bypass	(pll_bypass),
		     .ctu_sel_cpu	(ctu_sel_cpu[2:0]),
		     .ctu_sel_dram	(ctu_sel_dram[2:0]),
		     .ctu_sel_jbus	(ctu_sel_jbus[2:0]),
		     .ctu_spc0_sscan_se	(ctu_spc0_sscan_se),
		     .ctu_spc1_sscan_se	(ctu_spc1_sscan_se),
		     .ctu_spc2_sscan_se	(ctu_spc2_sscan_se),
		     .ctu_spc3_sscan_se	(ctu_spc3_sscan_se),
		     .ctu_spc4_sscan_se	(ctu_spc4_sscan_se),
		     .ctu_spc5_sscan_se	(ctu_spc5_sscan_se),
		     .ctu_spc6_sscan_se	(ctu_spc6_sscan_se),
		     .ctu_spc7_sscan_se	(ctu_spc7_sscan_se),
		     .ctu_spc0_tck	(ctu_spc0_tck),
		     .ctu_spc1_tck	(ctu_spc1_tck),
		     .ctu_spc2_tck	(ctu_spc2_tck),
		     .ctu_spc3_tck	(ctu_spc3_tck),
		     .ctu_spc4_tck	(ctu_spc4_tck),
		     .ctu_spc5_tck	(ctu_spc5_tck),
		     .ctu_spc6_tck	(ctu_spc6_tck),
		     .ctu_spc7_tck	(ctu_spc7_tck),
		     .ctu_spc_sscan_tid	(ctu_spc_sscan_tid[3:0]),
		     .ctu_pads_sscan_update(ctu_pads_sscan_update),
		     .ctu_global_snap	(ctu_global_snap),
		     .ctu_ddr0_mode_ctl	(ctu_ddr0_mode_ctl),
		     .ctu_ddr0_hiz_l	(ctu_ddr0_hiz_l),
		     .ctu_ddr0_update_dr(ctu_ddr0_update_dr),
		     .ctu_ddr0_clock_dr	(ctu_ddr0_clock_dr),
		     .ctu_ddr0_shift_dr	(ctu_ddr0_shift_dr),
		     .ctu_ddr1_mode_ctl	(ctu_ddr1_mode_ctl),
		     .ctu_ddr1_hiz_l	(ctu_ddr1_hiz_l),
		     .ctu_ddr1_update_dr(ctu_ddr1_update_dr),
		     .ctu_ddr1_clock_dr	(ctu_ddr1_clock_dr),
		     .ctu_ddr1_shift_dr	(ctu_ddr1_shift_dr),
		     .ctu_ddr2_mode_ctl	(ctu_ddr2_mode_ctl),
		     .ctu_ddr2_hiz_l	(ctu_ddr2_hiz_l),
		     .ctu_ddr2_update_dr(ctu_ddr2_update_dr),
		     .ctu_ddr2_clock_dr	(ctu_ddr2_clock_dr),
		     .ctu_ddr2_shift_dr	(ctu_ddr2_shift_dr),
		     .ctu_ddr3_mode_ctl	(ctu_ddr3_mode_ctl),
		     .ctu_ddr3_hiz_l	(ctu_ddr3_hiz_l),
		     .ctu_ddr3_update_dr(ctu_ddr3_update_dr),
		     .ctu_ddr3_clock_dr	(ctu_ddr3_clock_dr),
		     .ctu_ddr3_shift_dr	(ctu_ddr3_shift_dr),
		     .ctu_jbusl_mode_ctl(ctu_jbusl_mode_ctl),
		     .ctu_jbusl_hiz_l	(ctu_jbusl_hiz_l),
		     .ctu_jbusl_update_dr(ctu_jbusl_update_dr),
		     .ctu_jbusl_clock_dr(ctu_jbusl_clock_dr),
		     .ctu_jbusl_shift_dr(ctu_jbusl_shift_dr),
		     .ctu_jbusr_mode_ctl(ctu_jbusr_mode_ctl),
		     .ctu_jbusr_hiz_l	(ctu_jbusr_hiz_l),
		     .ctu_jbusr_update_dr(ctu_jbusr_update_dr),
		     .ctu_jbusr_clock_dr(ctu_jbusr_clock_dr),
		     .ctu_jbusr_shift_dr(ctu_jbusr_shift_dr),
		     .ctu_debug_mode_ctl(ctu_debug_mode_ctl),
		     .ctu_debug_hiz_l	(ctu_debug_hiz_l),
		     .ctu_debug_update_dr(ctu_debug_update_dr),
		     .ctu_debug_clock_dr(ctu_debug_clock_dr),
		     .ctu_debug_shift_dr(ctu_debug_shift_dr),
		     .ctu_misc_mode_ctl	(ctu_misc_mode_ctl),
		     .ctu_misc_hiz_l	(ctu_misc_hiz_l),
		     .ctu_misc_update_dr(ctu_misc_update_dr),
		     .ctu_misc_clock_dr	(ctu_misc_clock_dr),
		     .ctu_misc_shift_dr	(ctu_misc_shift_dr),
		     .ctu_pads_bso	(ctu_pads_bso),
		     .global_shift_enable(global_shift_enable),
		     .global_scan_bypass_en(global_scan_bypass_en),
		     .dft_ctu_scan_disable(dft_ctu_scan_disable),
		     .dft_pin_pscan_l	(dft_pin_pscan_l),
		     .ctu_pads_so	(ctu_pads_so),
		     .ctu_fpu_so	(ctu_fpu_so),
		     .pscan_select	(pscan_select),
		     .ctu_ddr_testmode_l(ctu_ddr_testmode_l),
		     .ctu_tst_scanmode	(ctu_tst_scanmode),
		     .ctu_tst_macrotest	(ctu_tst_macrotest),
		     .ctu_tst_short_chain(ctu_tst_short_chain),
		     .ctu_tst_scan_disable(ctu_tst_scan_disable),
		     .ctu_efc_data_in	(ctu_efc_data_in),
		     .ctu_efc_updatedr	(ctu_efc_updatedr),
		     .ctu_efc_shiftdr	(ctu_efc_shiftdr),
		     .ctu_efc_capturedr	(ctu_efc_capturedr),
		     .ctu_efc_tck	(ctu_efc_tck),
		     .ctu_efc_rowaddr	(ctu_efc_rowaddr[6:0]),
		     .ctu_efc_coladdr	(ctu_efc_coladdr[4:0]),
		     .ctu_efc_read_en	(ctu_efc_read_en),
		     .ctu_efc_read_mode	(ctu_efc_read_mode[2:0]),
		     .ctu_efc_fuse_bypass(ctu_efc_fuse_bypass),
		     .ctu_efc_dest_sample(ctu_efc_dest_sample),
		     .dft_rng_vctrl	(dft_rng_vctrl[2:0]),
		     .dft_rng_rst_l	(dft_rng_rst_l),
		     .dft_tsr_div	(dft_tsr_div[9:1]),
		     .dft_tsr_tsel	(dft_tsr_tsel[7:0]),
		     .dft_tsr_reset_l	(dft_tsr_reset_l),
		     .testmode_l	(testmode_l),

		     .jbus_rst_l	(jbus_rst_l),
		     .io_tdi		(io_tdi),
		     .io_tms		(io_tms),
		     .io_trst_l		(io_trst_l),
		     .io_tck		(io_tck),
		     .tck_l		(tck_l),
		     .jtag_id		(jtag_id[3:0]),
		     .test_mode_pin	(test_mode_pin),
		     .afi_rng_ctl	(afi_rng_ctl[2:0]),
		     .afi_tsr_div	(afi_tsr_div[9:1]),
		     .afi_tsr_mode	(afi_tsr_mode),
		     .afi_pll_char_mode	(afi_pll_char_mode),
		     .afi_pll_div2	(afi_pll_div2[5:0]),
		     .afi_pll_trst_l	(afi_pll_trst_l),
		     .afi_tsr_tsel	(afi_tsr_tsel[7:0]),
		     .afi_pll_clamp_fltr(afi_pll_clamp_fltr),
		     .creg_jtag_scratch_data(creg_jtag_scratch_data[63:0]),
		     .creg_jtag_rdrtrn_data(creg_jtag_rdrtrn_data[63:0]),
		     .creg_jtag_rdrtrn_vld(creg_jtag_rdrtrn_vld),
		     .bist_jtag_result	(bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]),
		     .bist_jtag_abort_done(bist_jtag_abort_done),
		     .pll_bypass_pin	(pll_bypass_pin),
		     .pll_reset_ref_l	(pll_reset_ref_l),
		     .spc0_ctu_sscan_out(spc0_ctu_sscan_out),
		     .spc1_ctu_sscan_out(spc1_ctu_sscan_out),
		     .spc2_ctu_sscan_out(spc2_ctu_sscan_out),
		     .spc3_ctu_sscan_out(spc3_ctu_sscan_out),
		     .spc4_ctu_sscan_out(spc4_ctu_sscan_out),
		     .spc5_ctu_sscan_out(spc5_ctu_sscan_out),
		     .spc6_ctu_sscan_out(spc6_ctu_sscan_out),
		     .spc7_ctu_sscan_out(spc7_ctu_sscan_out),
		     .pads_ctu_bsi	(pads_ctu_bsi),
		     .pads_ctu_si	(pads_ctu_si),
		     .sctag2_ctu_serial_scan_in(sctag2_ctu_serial_scan_in),
		     .efc_ctu_data_out	(efc_ctu_data_out));

ctu_dft_bist u_bist (

		     .dft_wake_thr	(dft_wake_thr),
		     .bist_jtag_result	(bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]),
		     .bist_jtag_abort_done(bist_jtag_abort_done),
		     .ctu_sctag0_mbisten(ctu_sctag0_mbisten),
		     .ctu_sctag1_mbisten(ctu_sctag1_mbisten),
		     .ctu_sctag2_mbisten(ctu_sctag2_mbisten),
		     .ctu_sctag3_mbisten(ctu_sctag3_mbisten),
		     .ctu_spc7_mbisten	(ctu_spc7_mbisten),
		     .ctu_spc6_mbisten	(ctu_spc6_mbisten),
		     .ctu_spc5_mbisten	(ctu_spc5_mbisten),
		     .ctu_spc4_mbisten	(ctu_spc4_mbisten),
		     .ctu_spc3_mbisten	(ctu_spc3_mbisten),
		     .ctu_spc2_mbisten	(ctu_spc2_mbisten),
		     .ctu_spc1_mbisten	(ctu_spc1_mbisten),
		     .ctu_spc0_mbisten	(ctu_spc0_mbisten),

		     .cmp_clk		(cmp_clk),
		     .cmp_rst_l		(cmp_rst_l),
		     .cmp_tx_en		(cmp_tx_en),
		     .cmp_rx_en		(cmp_rx_en),
		     .jbus_clk		(jbus_clk),
		     .jbus_rst_l	(jbus_rst_l),
		     .io_tck		(io_tck),
		     .iob_ctu_coreavail	(iob_ctu_coreavail[`IOB_CPU_WIDTH-1:0]),
		     .clsp_bist_dobist	(clsp_bist_dobist),
		     .clsp_bist_type	(clsp_bist_type),
		     .clsp_bist_ctrl	(clsp_bist_ctrl[5:0]),
		     .jtag_bist_serial	(jtag_bist_serial),
		     .jtag_bist_parallel(jtag_bist_parallel),
		     .jtag_bist_active	(jtag_bist_active[`CTU_BIST_CNT-1:0]),
		     .jtag_bist_abort	(jtag_bist_abort),
		     .sctag0_ctu_mbistdone(sctag0_ctu_mbistdone),
		     .sctag1_ctu_mbistdone(sctag1_ctu_mbistdone),
		     .sctag2_ctu_mbistdone(sctag2_ctu_mbistdone),
		     .sctag3_ctu_mbistdone(sctag3_ctu_mbistdone),
		     .spc7_ctu_mbistdone(spc7_ctu_mbistdone),
		     .spc6_ctu_mbistdone(spc6_ctu_mbistdone),
		     .spc5_ctu_mbistdone(spc5_ctu_mbistdone),
		     .spc4_ctu_mbistdone(spc4_ctu_mbistdone),
		     .spc3_ctu_mbistdone(spc3_ctu_mbistdone),
		     .spc2_ctu_mbistdone(spc2_ctu_mbistdone),
		     .spc1_ctu_mbistdone(spc1_ctu_mbistdone),
		     .spc0_ctu_mbistdone(spc0_ctu_mbistdone),
		     .sctag0_ctu_mbisterr(sctag0_ctu_mbisterr),
		     .sctag1_ctu_mbisterr(sctag1_ctu_mbisterr),
		     .sctag2_ctu_mbisterr(sctag2_ctu_mbisterr),
		     .sctag3_ctu_mbisterr(sctag3_ctu_mbisterr),
		     .spc7_ctu_mbisterr	(spc7_ctu_mbisterr),
		     .spc6_ctu_mbisterr	(spc6_ctu_mbisterr),
		     .spc5_ctu_mbisterr	(spc5_ctu_mbisterr),
		     .spc4_ctu_mbisterr	(spc4_ctu_mbisterr),
		     .spc3_ctu_mbisterr	(spc3_ctu_mbisterr),
		     .spc2_ctu_mbisterr	(spc2_ctu_mbisterr),
		     .spc1_ctu_mbisterr	(spc1_ctu_mbisterr),
		     .spc0_ctu_mbisterr	(spc0_ctu_mbisterr));

ctu_dft_creg u_creg (

		     .creg_jtag_scratch_data(creg_jtag_scratch_data[63:0]),
		     .creg_jtag_rdrtrn_data(creg_jtag_rdrtrn_data[63:0]),
		     .creg_jtag_rdrtrn_vld(creg_jtag_rdrtrn_vld),
		     .tap_iob_stall	(tap_iob_stall),
		     .tap_iob_vld	(tap_iob_vld),
		     .tap_iob_data	(tap_iob_data[7:0]),
		     .rt_ack		(rt_ack),
		     .rt_data_out	(rt_data_out[31:0]),

		     .io_tck		(io_tck),
		     .jbus_clk		(jbus_clk),
		     .jbus_rst_l	(jbus_rst_l),
		     .io_pwron_rst_l	(io_pwron_rst_l),
		     .test_mode_pin	(test_mode_pin),
		     .bist_mode_pin	(bist_mode_pin),
		     .start_clk_jl	(start_clk_jl),
		     .jtag_creg_addr	(jtag_creg_addr[39:0]),
		     .jtag_creg_data	(jtag_creg_data[63:0]),
		     .jtag_creg_rd_en	(jtag_creg_rd_en),
		     .jtag_creg_wr_en	(jtag_creg_wr_en),
		     .jtag_creg_addr_en	(jtag_creg_addr_en),
		     .jtag_creg_data_en	(jtag_creg_data_en),
		     .jtag_creg_rdrtrn_complete(jtag_creg_rdrtrn_complete),
		     .iob_tap_vld	(iob_tap_vld),
		     .iob_tap_data	(iob_tap_data[7:0]),
		     .iob_tap_stall	(iob_tap_stall),
		     .rt_valid		(rt_valid),
		     .rt_addr_data	(rt_addr_data),
		     .rt_read_write	(rt_read_write),
		     .rt_high_low	(rt_high_low),
		     .rt_data_in	(rt_data_in[31:0]),
		     .bist_jtag_result	(bist_jtag_result[(`CTU_BIST_CNT*2)-1:0]));

endmodule