-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathctu_clsp_cmpgif.v
304 lines (272 loc) · 10.4 KB
/
ctu_clsp_cmpgif.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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
// ========== Copyright Header Begin ==========================================
//
// OpenSPARC T1 Processor File: ctu_clsp_cmpgif.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
// Unit Name: ctu_clsp_dramif
//
//-----------------------------------------------------------------------------
`include "sys.h"
module ctu_clsp_cmpgif(/*AUTOARG*/
// Outputs
cmp_grst_out_l, cmp_arst_l, cmp_gdbginit_out_l, cmp_adbginit_l,
ctu_dram_tx_sync_out, ctu_dram_rx_sync_out, ctu_jbus_tx_sync_out,
ctu_jbus_rx_sync_out, ctu_ccx_cmp_cken, ctu_dram02_cmp_cken,
ctu_dram13_cmp_cken, ctu_fpu_cmp_cken, ctu_iob_cmp_cken,
ctu_jbi_cmp_cken, ctu_scdata0_cmp_cken, ctu_scdata1_cmp_cken,
ctu_scdata2_cmp_cken, ctu_scdata3_cmp_cken, ctu_sctag0_cmp_cken,
ctu_sctag1_cmp_cken, ctu_sctag2_cmp_cken, ctu_sctag3_cmp_cken,
ctu_sparc0_cmp_cken, ctu_sparc1_cmp_cken, ctu_sparc2_cmp_cken,
ctu_sparc3_cmp_cken, ctu_sparc4_cmp_cken, ctu_sparc5_cmp_cken,
ctu_sparc6_cmp_cken, ctu_sparc7_cmp_cken,
// Inputs
io_pwron_rst_l, cmp_gclk, start_clk_cl, cmp_grst_cl_l,
cmp_dbginit_cl_l, ctu_dram_tx_sync_cl, ctu_dram_rx_sync_cl,
ctu_jbus_tx_sync_cl, ctu_jbus_rx_sync_cl, ctu_ccx_cmp_cken_cg,
ctu_dram02_cmp_cken_cg, ctu_dram13_cmp_cken_cg, ctu_fpu_cmp_cken_cg,
ctu_iob_cmp_cken_cg, ctu_jbi_cmp_cken_cg, ctu_scdata0_cmp_cken_cg,
ctu_scdata1_cmp_cken_cg, ctu_scdata2_cmp_cken_cg,
ctu_scdata3_cmp_cken_cg, ctu_sctag0_cmp_cken_cg,
ctu_sctag1_cmp_cken_cg, ctu_sctag2_cmp_cken_cg,
ctu_sctag3_cmp_cken_cg, ctu_sparc0_cmp_cken_cg,
ctu_sparc1_cmp_cken_cg, ctu_sparc2_cmp_cken_cg,
ctu_sparc3_cmp_cken_cg, ctu_sparc4_cmp_cken_cg,
ctu_sparc5_cmp_cken_cg, ctu_sparc6_cmp_cken_cg,
ctu_sparc7_cmp_cken_cg
);
input io_pwron_rst_l;
input cmp_gclk;
input start_clk_cl;
input cmp_grst_cl_l;
input cmp_dbginit_cl_l;
input ctu_dram_tx_sync_cl;
input ctu_dram_rx_sync_cl;
input ctu_jbus_tx_sync_cl;
input ctu_jbus_rx_sync_cl;
input ctu_ccx_cmp_cken_cg;
input ctu_dram02_cmp_cken_cg;
input ctu_dram13_cmp_cken_cg;
input ctu_fpu_cmp_cken_cg;
input ctu_iob_cmp_cken_cg;
input ctu_jbi_cmp_cken_cg;
input ctu_scdata0_cmp_cken_cg;
input ctu_scdata1_cmp_cken_cg;
input ctu_scdata2_cmp_cken_cg;
input ctu_scdata3_cmp_cken_cg;
input ctu_sctag0_cmp_cken_cg;
input ctu_sctag1_cmp_cken_cg;
input ctu_sctag2_cmp_cken_cg;
input ctu_sctag3_cmp_cken_cg;
input ctu_sparc0_cmp_cken_cg;
input ctu_sparc1_cmp_cken_cg;
input ctu_sparc2_cmp_cken_cg;
input ctu_sparc3_cmp_cken_cg;
input ctu_sparc4_cmp_cken_cg;
input ctu_sparc5_cmp_cken_cg;
input ctu_sparc6_cmp_cken_cg;
input ctu_sparc7_cmp_cken_cg;
output cmp_grst_out_l;
output cmp_arst_l;
output cmp_gdbginit_out_l;
output cmp_adbginit_l;
output ctu_dram_tx_sync_out;
output ctu_dram_rx_sync_out;
output ctu_jbus_tx_sync_out;
output ctu_jbus_rx_sync_out;
output ctu_ccx_cmp_cken;
output ctu_dram02_cmp_cken;
output ctu_dram13_cmp_cken;
output ctu_fpu_cmp_cken;
output ctu_iob_cmp_cken;
output ctu_jbi_cmp_cken;
output ctu_scdata0_cmp_cken;
output ctu_scdata1_cmp_cken;
output ctu_scdata2_cmp_cken;
output ctu_scdata3_cmp_cken;
output ctu_sctag0_cmp_cken;
output ctu_sctag1_cmp_cken;
output ctu_sctag2_cmp_cken;
output ctu_sctag3_cmp_cken;
output ctu_sparc0_cmp_cken;
output ctu_sparc1_cmp_cken;
output ctu_sparc2_cmp_cken;
output ctu_sparc3_cmp_cken;
output ctu_sparc4_cmp_cken;
output ctu_sparc5_cmp_cken;
output ctu_sparc6_cmp_cken;
output ctu_sparc7_cmp_cken;
wire start_clk_cg;
// -----------------------------------------
//
// Global signals
//
// -----------------------------------------
assign cmp_arst_l = io_pwron_rst_l ;
assign cmp_adbginit_l = io_pwron_rst_l ;
dffrl_async_ns u_start_clk_cg(
.din (start_clk_cl),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (start_clk_cg));
dffrl_async_ns u_cmp_grst_l(
.din (cmp_grst_cl_l & start_clk_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (cmp_grst_out_l));
dffrl_async_ns u_cmp_dbginit_l(
.din (cmp_dbginit_cl_l & start_clk_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (cmp_gdbginit_out_l));
dffrl_async_ns u_ctu_dram_rx_sync_cl(
.din (ctu_dram_rx_sync_cl),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_dram_rx_sync_out));
dffrl_async_ns u_ctu_dram_tx_sync_cl(
.din (ctu_dram_tx_sync_cl),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_dram_tx_sync_out));
dffrl_async_ns u_ctu_jbus_rx_sync_cl(
.din (ctu_jbus_rx_sync_cl),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_jbus_rx_sync_out));
dffrl_async_ns u_ctu_jbus_tx_sync_cl(
.din (ctu_jbus_tx_sync_cl),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_jbus_tx_sync_out));
dffrl_async_ns u_ctu_sparc0_cmp_cken_nsr(
.din (ctu_sparc0_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sparc0_cmp_cken));
dffrl_async_ns u_ctu_sparc1_cmp_cken_nsr(
.din (ctu_sparc1_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sparc1_cmp_cken));
dffrl_async_ns u_ctu_sparc2_cmp_cken_nsr(
.din (ctu_sparc2_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sparc2_cmp_cken));
dffrl_async_ns u_ctu_sparc3_cmp_cken_nsr(
.din (ctu_sparc3_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sparc3_cmp_cken));
dffrl_async_ns u_ctu_sparc4_cmp_cken_nsr(
.din (ctu_sparc4_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sparc4_cmp_cken));
dffrl_async_ns u_ctu_sparc5_cmp_cken_nsr(
.din (ctu_sparc5_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sparc5_cmp_cken));
dffrl_async_ns u_ctu_sparc6_cmp_cken_nsr(
.din (ctu_sparc6_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sparc6_cmp_cken));
dffrl_async_ns u_ctu_sparc7_cmp_cken_nsr(
.din (ctu_sparc7_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sparc7_cmp_cken));
dffrl_async_ns u_ctu_scdata0_cmp_cken_nsr(
.din (ctu_scdata0_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_scdata0_cmp_cken));
dffrl_async_ns u_ctu_scdata1_cmp_cken_nsr(
.din (ctu_scdata1_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_scdata1_cmp_cken));
dffrl_async_ns u_ctu_scdata2_cmp_cken_nsr(
.din (ctu_scdata2_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_scdata2_cmp_cken));
dffrl_async_ns u_ctu_scdata3_cmp_cken_nsr(
.din (ctu_scdata3_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_scdata3_cmp_cken));
dffrl_async_ns u_ctu_sctag0_cmp_cken_nsr(
.din (ctu_sctag0_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sctag0_cmp_cken));
dffrl_async_ns u_ctu_sctag1_cmp_cken_nsr(
.din (ctu_sctag1_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sctag1_cmp_cken));
dffrl_async_ns u_ctu_sctag2_cmp_cken_nsr(
.din (ctu_sctag2_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sctag2_cmp_cken));
dffrl_async_ns u_ctu_sctag3_cmp_cken_nsr(
.din (ctu_sctag3_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_sctag3_cmp_cken));
dffrl_async_ns u_ctu_ccx_cmp_cken_nsr(
.din (ctu_ccx_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_ccx_cmp_cken));
dffrl_async_ns u_ctu_fpu_cmp_cken_nsr(
.din (ctu_fpu_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_fpu_cmp_cken));
dffrl_async_ns u_ctu_iob_cmp_cken_nsr(
.din (ctu_iob_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_iob_cmp_cken));
dffrl_async_ns u_ctu_jbi_cmp_cken_nsr(
.din (ctu_jbi_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_jbi_cmp_cken));
dffrl_async_ns u_ctu_dram02_cmp_cken_nsr(
.din (ctu_dram02_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_dram02_cmp_cken));
dffrl_async_ns u_ctu_dram13_cmp_cken_nsr(
.din (ctu_dram13_cmp_cken_cg),
.clk (cmp_gclk),
.rst_l (io_pwron_rst_l),
.q (ctu_dram13_cmp_cken));
endmodule // cmpif
// Local Variables:
// verilog-library-directories:("." "../common/rtl")
// verilog-auto-sense-defines-constant:t
// End: