-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcpx_dp_halfarray.v
212 lines (191 loc) · 8.86 KB
/
cpx_dp_halfarray.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
// ========== Copyright Header Begin ==========================================
//
// OpenSPARC T1 Processor File: cpx_dp_halfarray.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 ============================================
////////////////////////////////////////////////////////////////////////
/*
// Description: datapath portion of CPX
*/
////////////////////////////////////////////////////////////////////////
// Global header file includes
////////////////////////////////////////////////////////////////////////
`include "sys.h" // system level definition file which contains the
// time scale definition
`include "iop.h"
////////////////////////////////////////////////////////////////////////
// Local header file includes / local defines
////////////////////////////////////////////////////////////////////////
module cpx_dp_halfarray(/*AUTOARG*/
// Outputs
cpx_spc6_data_cx_l, cpx_spc4_data_cx_l, cpx_spc2_data_cx_l,
cpx_spc0_data_cx_l, scan_out,
// Inputs
shiftenable, scache3_cpx_data_ca, scache2_cpx_data_ca,
scache1_cpx_data_ca, scache0_cpx_data_ca, rclk, io_cpx_data_ca,
fp_cpx_data_ca, arbcp6_cpxdp_shift_cx, arbcp6_cpxdp_qsel1_ca,
arbcp6_cpxdp_qsel0_ca, arbcp6_cpxdp_q0_hold_ca,
arbcp6_cpxdp_grant_ca, arbcp4_cpxdp_shift_cx,
arbcp4_cpxdp_qsel1_ca, arbcp4_cpxdp_qsel0_ca,
arbcp4_cpxdp_q0_hold_ca, arbcp4_cpxdp_grant_ca,
arbcp2_cpxdp_shift_cx, arbcp2_cpxdp_qsel1_ca,
arbcp2_cpxdp_qsel0_ca, arbcp2_cpxdp_q0_hold_ca,
arbcp2_cpxdp_grant_ca, arbcp0_cpxdp_shift_cx,
arbcp0_cpxdp_qsel1_ca, arbcp0_cpxdp_qsel0_ca,
arbcp0_cpxdp_q0_hold_ca, arbcp0_cpxdp_grant_ca, scan_in
);
/*AUTOOUTPUT*/
// Beginning of automatic outputs (from unused autoinst outputs)
output [`CPX_WIDTH-1:0]cpx_spc0_data_cx_l; // From cpx_dp0 of cpx_dp0.v
output [`CPX_WIDTH-1:0]cpx_spc2_data_cx_l; // From cpx_dp2 of cpx_dp2.v
output [`CPX_WIDTH-1:0]cpx_spc4_data_cx_l; // From cpx_dp4 of cpx_dp4.v
output [`CPX_WIDTH-1:0]cpx_spc6_data_cx_l; // From cpx_dp6 of cpx_dp6.v
// End of automatics
/*AUTOINPUT*/
// Beginning of automatic inputs (from unused autoinst inputs)
input [5:0] arbcp0_cpxdp_grant_ca; // To cpx_dp0 of cpx_dp0.v
input [5:0] arbcp0_cpxdp_q0_hold_ca;// To cpx_dp0 of cpx_dp0.v
input [5:0] arbcp0_cpxdp_qsel0_ca; // To cpx_dp0 of cpx_dp0.v
input [5:0] arbcp0_cpxdp_qsel1_ca; // To cpx_dp0 of cpx_dp0.v
input [5:0] arbcp0_cpxdp_shift_cx; // To cpx_dp0 of cpx_dp0.v
input [5:0] arbcp2_cpxdp_grant_ca; // To cpx_dp2 of cpx_dp2.v
input [5:0] arbcp2_cpxdp_q0_hold_ca;// To cpx_dp2 of cpx_dp2.v
input [5:0] arbcp2_cpxdp_qsel0_ca; // To cpx_dp2 of cpx_dp2.v
input [5:0] arbcp2_cpxdp_qsel1_ca; // To cpx_dp2 of cpx_dp2.v
input [5:0] arbcp2_cpxdp_shift_cx; // To cpx_dp2 of cpx_dp2.v
input [5:0] arbcp4_cpxdp_grant_ca; // To cpx_dp4 of cpx_dp4.v
input [5:0] arbcp4_cpxdp_q0_hold_ca;// To cpx_dp4 of cpx_dp4.v
input [5:0] arbcp4_cpxdp_qsel0_ca; // To cpx_dp4 of cpx_dp4.v
input [5:0] arbcp4_cpxdp_qsel1_ca; // To cpx_dp4 of cpx_dp4.v
input [5:0] arbcp4_cpxdp_shift_cx; // To cpx_dp4 of cpx_dp4.v
input [5:0] arbcp6_cpxdp_grant_ca; // To cpx_dp6 of cpx_dp6.v
input [5:0] arbcp6_cpxdp_q0_hold_ca;// To cpx_dp6 of cpx_dp6.v
input [5:0] arbcp6_cpxdp_qsel0_ca; // To cpx_dp6 of cpx_dp6.v
input [5:0] arbcp6_cpxdp_qsel1_ca; // To cpx_dp6 of cpx_dp6.v
input [5:0] arbcp6_cpxdp_shift_cx; // To cpx_dp6 of cpx_dp6.v
input [`CPX_WIDTH-1:0]fp_cpx_data_ca; // To cpx_dp0 of cpx_dp0.v, ...
input [`CPX_WIDTH-1:0]io_cpx_data_ca; // To cpx_dp0 of cpx_dp0.v, ...
input rclk; // To cpx_dp0 of cpx_dp0.v, ...
input [`CPX_WIDTH-1:0]scache0_cpx_data_ca; // To cpx_dp0 of cpx_dp0.v, ...
input [`CPX_WIDTH-1:0]scache1_cpx_data_ca; // To cpx_dp0 of cpx_dp0.v, ...
input [`CPX_WIDTH-1:0]scache2_cpx_data_ca; // To cpx_dp0 of cpx_dp0.v, ...
input [`CPX_WIDTH-1:0]scache3_cpx_data_ca; // To cpx_dp0 of cpx_dp0.v, ...
input shiftenable; // To cpx_dp0 of cpx_dp0.v, ...
// End of automatics
/*AUTOWIRE*/
// Beginning of automatic wires (for undeclared instantiated-module outputs)
// End of automatics
input scan_in;
output scan_out;
/*
cpx_dp0 AUTO_TEMPLATE(
.scan_out (),
.scan_in ());
*/
cpx_dp0 cpx_dp0(/*AUTOINST*/
// Outputs
.scan_out (), // Templated
.cpx_spc0_data_cx_l (cpx_spc0_data_cx_l[`CPX_WIDTH-1:0]),
// Inputs
.arbcp0_cpxdp_grant_ca(arbcp0_cpxdp_grant_ca[5:0]),
.arbcp0_cpxdp_q0_hold_ca(arbcp0_cpxdp_q0_hold_ca[5:0]),
.arbcp0_cpxdp_qsel0_ca(arbcp0_cpxdp_qsel0_ca[5:0]),
.arbcp0_cpxdp_qsel1_ca(arbcp0_cpxdp_qsel1_ca[5:0]),
.arbcp0_cpxdp_shift_cx(arbcp0_cpxdp_shift_cx[5:0]),
.rclk (rclk),
.scan_in (), // Templated
.shiftenable (shiftenable),
.scache0_cpx_data_ca (scache0_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache1_cpx_data_ca (scache1_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache2_cpx_data_ca (scache2_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache3_cpx_data_ca (scache3_cpx_data_ca[`CPX_WIDTH-1:0]),
.io_cpx_data_ca (io_cpx_data_ca[`CPX_WIDTH-1:0]),
.fp_cpx_data_ca (fp_cpx_data_ca[`CPX_WIDTH-1:0]));
/*
cpx_dp2 AUTO_TEMPLATE(
.scan_out (),
.scan_in ());
*/
cpx_dp2 cpx_dp2(/*AUTOINST*/
// Outputs
.scan_out (), // Templated
.cpx_spc2_data_cx_l (cpx_spc2_data_cx_l[`CPX_WIDTH-1:0]),
// Inputs
.arbcp2_cpxdp_grant_ca(arbcp2_cpxdp_grant_ca[5:0]),
.arbcp2_cpxdp_q0_hold_ca(arbcp2_cpxdp_q0_hold_ca[5:0]),
.arbcp2_cpxdp_qsel0_ca(arbcp2_cpxdp_qsel0_ca[5:0]),
.arbcp2_cpxdp_qsel1_ca(arbcp2_cpxdp_qsel1_ca[5:0]),
.arbcp2_cpxdp_shift_cx(arbcp2_cpxdp_shift_cx[5:0]),
.rclk (rclk),
.scan_in (), // Templated
.shiftenable (shiftenable),
.scache0_cpx_data_ca (scache0_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache1_cpx_data_ca (scache1_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache2_cpx_data_ca (scache2_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache3_cpx_data_ca (scache3_cpx_data_ca[`CPX_WIDTH-1:0]),
.io_cpx_data_ca (io_cpx_data_ca[`CPX_WIDTH-1:0]),
.fp_cpx_data_ca (fp_cpx_data_ca[`CPX_WIDTH-1:0]));
/*
cpx_dp4 AUTO_TEMPLATE(
.scan_out (),
.scan_in ());
*/
cpx_dp4 cpx_dp4(/*AUTOINST*/
// Outputs
.scan_out (), // Templated
.cpx_spc4_data_cx_l (cpx_spc4_data_cx_l[`CPX_WIDTH-1:0]),
// Inputs
.arbcp4_cpxdp_grant_ca(arbcp4_cpxdp_grant_ca[5:0]),
.arbcp4_cpxdp_q0_hold_ca(arbcp4_cpxdp_q0_hold_ca[5:0]),
.arbcp4_cpxdp_qsel0_ca(arbcp4_cpxdp_qsel0_ca[5:0]),
.arbcp4_cpxdp_qsel1_ca(arbcp4_cpxdp_qsel1_ca[5:0]),
.arbcp4_cpxdp_shift_cx(arbcp4_cpxdp_shift_cx[5:0]),
.rclk (rclk),
.scan_in (), // Templated
.shiftenable (shiftenable),
.scache0_cpx_data_ca (scache0_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache1_cpx_data_ca (scache1_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache2_cpx_data_ca (scache2_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache3_cpx_data_ca (scache3_cpx_data_ca[`CPX_WIDTH-1:0]),
.io_cpx_data_ca (io_cpx_data_ca[`CPX_WIDTH-1:0]),
.fp_cpx_data_ca (fp_cpx_data_ca[`CPX_WIDTH-1:0]));
/*
cpx_dp6 AUTO_TEMPLATE(
.scan_out (),
.scan_in ());
*/
cpx_dp6 cpx_dp6(/*AUTOINST*/
// Outputs
.scan_out (), // Templated
.cpx_spc6_data_cx_l (cpx_spc6_data_cx_l[`CPX_WIDTH-1:0]),
// Inputs
.arbcp6_cpxdp_grant_ca(arbcp6_cpxdp_grant_ca[5:0]),
.arbcp6_cpxdp_q0_hold_ca(arbcp6_cpxdp_q0_hold_ca[5:0]),
.arbcp6_cpxdp_qsel0_ca(arbcp6_cpxdp_qsel0_ca[5:0]),
.arbcp6_cpxdp_qsel1_ca(arbcp6_cpxdp_qsel1_ca[5:0]),
.arbcp6_cpxdp_shift_cx(arbcp6_cpxdp_shift_cx[5:0]),
.rclk (rclk),
.scan_in (), // Templated
.shiftenable (shiftenable),
.scache0_cpx_data_ca (scache0_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache1_cpx_data_ca (scache1_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache2_cpx_data_ca (scache2_cpx_data_ca[`CPX_WIDTH-1:0]),
.scache3_cpx_data_ca (scache3_cpx_data_ca[`CPX_WIDTH-1:0]),
.io_cpx_data_ca (io_cpx_data_ca[`CPX_WIDTH-1:0]),
.fp_cpx_data_ca (fp_cpx_data_ca[`CPX_WIDTH-1:0]));
endmodule // cpx_dp_array