1 |
2 |
dmitryr |
// ========== Copyright Header Begin ==========================================
|
2 |
|
|
//
|
3 |
|
|
// OpenSPARC T1 Processor File: sparc_ifu_sscan.v
|
4 |
|
|
// Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
|
5 |
|
|
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
|
6 |
|
|
//
|
7 |
|
|
// The above named program is free software; you can redistribute it and/or
|
8 |
|
|
// modify it under the terms of the GNU General Public
|
9 |
|
|
// License version 2 as published by the Free Software Foundation.
|
10 |
|
|
//
|
11 |
|
|
// The above named program is distributed in the hope that it will be
|
12 |
|
|
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 |
|
|
// General Public License for more details.
|
15 |
|
|
//
|
16 |
|
|
// You should have received a copy of the GNU General Public
|
17 |
|
|
// License along with this work; if not, write to the Free Software
|
18 |
|
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
19 |
|
|
//
|
20 |
|
|
// ========== Copyright Header End ============================================
|
21 |
|
|
module sparc_ifu_sscan( ctu_sscan_snap, ctu_sscan_se, ctu_tck, lsu_sscan_test_data,
|
22 |
|
|
tlu_sscan_test_data, swl_sscan_thrstate, ifq_sscan_test_data, sparc_sscan_so, rclk, si, so, se);
|
23 |
|
|
|
24 |
|
|
input ctu_sscan_snap;
|
25 |
|
|
input ctu_sscan_se;
|
26 |
|
|
input ctu_tck;
|
27 |
|
|
input si;
|
28 |
|
|
input se;
|
29 |
|
|
input [10:0] swl_sscan_thrstate;
|
30 |
|
|
input [3:0] ifq_sscan_test_data;
|
31 |
|
|
input [15:0] lsu_sscan_test_data;
|
32 |
|
|
input [62:0] tlu_sscan_test_data;
|
33 |
|
|
input rclk;
|
34 |
|
|
|
35 |
|
|
output sparc_sscan_so;
|
36 |
|
|
output so;
|
37 |
|
|
|
38 |
|
|
//////////////////////////////////////////////////////////////////
|
39 |
|
|
|
40 |
|
|
wire snap_f;
|
41 |
|
|
wire [93:0] snap_data, snap_data_f, snap_data_ff;
|
42 |
|
|
|
43 |
|
|
`ifdef CONNECT_SHADOW_SCAN
|
44 |
|
|
wire [92:0] sscan_shift_data;
|
45 |
|
|
`endif
|
46 |
|
|
|
47 |
|
|
////////
|
48 |
|
|
|
49 |
|
|
dff_s #(1) snap_inst0(.q(snap_f), .din(ctu_sscan_snap), .clk(rclk), .se(se), .si(), .so());
|
50 |
|
|
|
51 |
|
|
assign snap_data = {ifq_sscan_test_data, tlu_sscan_test_data, lsu_sscan_test_data, swl_sscan_thrstate};
|
52 |
|
|
|
53 |
|
|
dffe_s #(94) snap_inst1(.q(snap_data_f), .din(snap_data), .clk(rclk), .en(snap_f), .se(se), .si(), .so());
|
54 |
|
|
|
55 |
|
|
`ifdef CONNECT_SHADOW_SCAN
|
56 |
|
|
dff_sscan #(94) snap_inst2(.q(snap_data_ff), .din(snap_data_f), .clk(ctu_tck), .se(ctu_sscan_se),
|
57 |
|
|
.si({sscan_shift_data, 1'b0}),
|
58 |
|
|
.so({sparc_sscan_so, sscan_shift_data}));
|
59 |
|
|
`else
|
60 |
|
|
dff_s #(94) snap_inst2(.q(snap_data_ff), .din(snap_data_f), .clk(ctu_tck), .se(ctu_sscan_se),
|
61 |
|
|
.si(), .so());
|
62 |
|
|
|
63 |
|
|
assign sparc_sscan_so = 1'b0;
|
64 |
|
|
`endif
|
65 |
|
|
|
66 |
|
|
sink #(94) s0(.in (snap_data_ff));
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
endmodule
|