-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathctu_test_stub_scan.v
55 lines (47 loc) · 1.87 KB
/
ctu_test_stub_scan.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// ========== Copyright Header Begin ==========================================
//
// OpenSPARC T1 Processor File: ctu_test_stub_scan.v
// Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
//
// The above named program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public
// License version 2 as published by the Free Software Foundation.
//
// The above named 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 work; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
//
// ========== Copyright Header End ============================================
//
// Cluster Name: CTU
//-----------------------------------------------------------------------------
`include "sys.h"
module ctu_test_stub_scan (/*AUTOARG*/
// Outputs
se, so_0,
// Inputs
global_shift_enable, ctu_tst_scan_disable,
//ctu_tst_scanmode,
ctu_tst_short_chain, long_chain_so_0, short_chain_so_0
);
input global_shift_enable;
input ctu_tst_scan_disable;
//input ctu_tst_scanmode;
input ctu_tst_short_chain;
input long_chain_so_0;
input short_chain_so_0;
output se;
output so_0;
//wire testmode_l;
wire short_chain_select;
assign se = ~ctu_tst_scan_disable & global_shift_enable;
//assign testmode_l = ~ctu_tst_scanmode;
assign short_chain_select = ctu_tst_short_chain;
assign so_0 = short_chain_select ? short_chain_so_0 : long_chain_so_0;
endmodule