OpenCores
URL https://opencores.org/ocsvn/s1_core/s1_core/trunk

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [hdl/] [rtl/] [sparc_core/] [sparc_ifu_sscan.v] - Diff between revs 105 and 113

Show entire file | Details | Blame | View Log

Rev 105 Rev 113
Line 16... Line 16...
// You should have received a copy of the GNU General Public
// You should have received a copy of the GNU General Public
// License along with this work; if not, write to the Free Software
// License along with this work; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
// 
// 
// ========== Copyright Header End ============================================
// ========== Copyright Header End ============================================
 
`ifdef SIMPLY_RISC_TWEAKS
 
`define SIMPLY_RISC_SCANIN .si(0)
 
`else
 
`define SIMPLY_RISC_SCANIN .si()
 
`endif
module sparc_ifu_sscan( ctu_sscan_snap, ctu_sscan_se, ctu_tck, lsu_sscan_test_data,
module sparc_ifu_sscan( ctu_sscan_snap, ctu_sscan_se, ctu_tck, lsu_sscan_test_data,
tlu_sscan_test_data, swl_sscan_thrstate, ifq_sscan_test_data, sparc_sscan_so, rclk, si, so, se);
tlu_sscan_test_data, swl_sscan_thrstate, ifq_sscan_test_data, sparc_sscan_so, rclk, si, so, se);
 
 
input ctu_sscan_snap;
input ctu_sscan_snap;
input ctu_sscan_se;
input ctu_sscan_se;
Line 38... Line 43...
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
 
 
wire snap_f;
wire snap_f;
wire [93:0] snap_data, snap_data_f, snap_data_ff;
wire [93:0] snap_data, snap_data_f, snap_data_ff;
 
 
 
`ifdef CONNECT_SHADOW_SCAN
 
wire [92:0] sscan_shift_data;
 
`endif
 
 
////////
////////
 
 
dff #(1) snap_inst0(.q(snap_f), .din(ctu_sscan_snap), .clk(rclk), .se(se), .si(), .so());
dff_s #(1) snap_inst0(.q(snap_f), .din(ctu_sscan_snap), .clk(rclk), .se(se), `SIMPLY_RISC_SCANIN, .so());
 
 
assign snap_data = {ifq_sscan_test_data, tlu_sscan_test_data, lsu_sscan_test_data, swl_sscan_thrstate};
assign snap_data = {ifq_sscan_test_data, tlu_sscan_test_data, lsu_sscan_test_data, swl_sscan_thrstate};
 
 
dffe #(94) snap_inst1(.q(snap_data_f), .din(snap_data), .clk(rclk), .en(snap_f), .se(se), .si(), .so());
dffe_s #(94) snap_inst1(.q(snap_data_f), .din(snap_data), .clk(rclk), .en(snap_f), .se(se), `SIMPLY_RISC_SCANIN, .so());
 
 
 
 
 
 
 
`ifdef CONNECT_SHADOW_SCAN
 
dff_sscan #(94) snap_inst2(.q(snap_data_ff), .din(snap_data_f), .clk(ctu_tck), .se(ctu_sscan_se),
 
                     .si({sscan_shift_data, 1'b0}),
dff #(94) snap_inst2(.q(snap_data_ff), .din(snap_data_f), .clk(ctu_tck), .se(ctu_sscan_se),
                     .so({sparc_sscan_so, sscan_shift_data}));
                     .si(), .so());
`else
 
dff_s #(94) snap_inst2(.q(snap_data_ff), .din(snap_data_f), .clk(ctu_tck), .se(ctu_sscan_se),
 
                     `SIMPLY_RISC_SCANIN, .so());
 
 
assign sparc_sscan_so = 1'b0;
assign sparc_sscan_so = 1'b0;
 
`endif
 
 
sink #(94) s0(.in (snap_data_ff));
sink #(94) s0(.in (snap_data_ff));
 
 
 
 
endmodule
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.