source: XOpenSparcT1/trunk/T1-CPU/ifu/sparc_ifu_sscan.v @ 6

Revision 6, 2.3 KB checked in by pntsvt00, 14 years ago (diff)

versione iniziale opensparc

RevLine 
[6]1// ========== 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 ============================================
21module sparc_ifu_sscan( ctu_sscan_snap, ctu_sscan_se, ctu_tck, lsu_sscan_test_data, 
22tlu_sscan_test_data, swl_sscan_thrstate, ifq_sscan_test_data, sparc_sscan_so, rclk, si, so, se);
23
24input ctu_sscan_snap;
25input ctu_sscan_se;
26input ctu_tck;
27input si;
28input se;
29input [10:0] swl_sscan_thrstate;
30input [3:0] ifq_sscan_test_data;
31input [15:0] lsu_sscan_test_data;
32input [62:0] tlu_sscan_test_data;
33input rclk;
34
35output sparc_sscan_so;
36output so;
37
38//////////////////////////////////////////////////////////////////
39
40wire snap_f;
41wire [93:0] snap_data, snap_data_f, snap_data_ff;
42
43`ifdef CONNECT_SHADOW_SCAN
44wire [92:0] sscan_shift_data;
45`endif
46
47////////
48
49dff_s #(1) snap_inst0(.q(snap_f), .din(ctu_sscan_snap), .clk(rclk), .se(se), .si(), .so());
50
51assign snap_data = {ifq_sscan_test_data, tlu_sscan_test_data, lsu_sscan_test_data, swl_sscan_thrstate};
52
53dffe_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
56dff_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
60dff_s #(94) snap_inst2(.q(snap_data_ff), .din(snap_data_f), .clk(ctu_tck), .se(ctu_sscan_se), 
61                     .si(), .so());
62
63assign sparc_sscan_so = 1'b0;
64`endif
65
66sink #(94) s0(.in (snap_data_ff));
67   
68
69endmodule     
Note: See TracBrowser for help on using the repository browser.