OpenCores
URL https://opencores.org/ocsvn/s1_core/s1_core/trunk

Subversion Repositories s1_core

[/] [s1_core/] [trunk/] [hdl/] [rtl/] [sparc_core/] [cluster_header.v] - Blame information for rev 105

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 95 fafa1971
// ========== Copyright Header Begin ==========================================
2
// 
3
// OpenSPARC T1 Processor File: cluster_header.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
// The cluster header is instatiated as a hard macro.
22
// This model is for simulation only.
23
/*
24
/* ========== Copyright Header Begin ==========================================
25
*
26
* OpenSPARC T1 Processor File: sys.h
27
* Copyright (c) 2006 Sun Microsystems, Inc.  All Rights Reserved.
28
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
29
*
30
* The above named program is free software; you can redistribute it and/or
31
* modify it under the terms of the GNU General Public
32
* License version 2 as published by the Free Software Foundation.
33
*
34
* The above named program is distributed in the hope that it will be
35
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
36
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
37
* General Public License for more details.
38
*
39
* You should have received a copy of the GNU General Public
40
* License along with this work; if not, write to the Free Software
41
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
42
*
43
* ========== Copyright Header End ============================================
44
*/
45
// -*- verilog -*-
46
////////////////////////////////////////////////////////////////////////
47
/*
48
//
49
// Description:         Global header file that contain definitions that
50
//                      are common/shared at the systme level
51
*/
52
////////////////////////////////////////////////////////////////////////
53
//
54
// Setting the time scale
55
// If the timescale changes, JP_TIMESCALE may also have to change.
56
`timescale      1ps/1ps
57
 
58
//
59
// JBUS clock
60
// =========
61
//
62
 
63
 
64
 
65
// Afara Link Defines
66
// ==================
67
 
68
// Reliable Link
69
 
70
 
71
 
72
 
73
// Afara Link Objects
74
 
75
 
76
// Afara Link Object Format - Reliable Link
77
 
78
 
79
 
80
 
81
 
82
 
83
 
84
 
85
 
86
 
87
// Afara Link Object Format - Congestion
88
 
89
 
90
 
91
 
92
 
93
 
94
 
95
 
96
 
97
 
98
 
99
// Afara Link Object Format - Acknowledge
100
 
101
 
102
 
103
 
104
 
105
 
106
 
107
 
108
 
109
 
110
 
111
// Afara Link Object Format - Request
112
 
113
 
114
 
115
 
116
 
117
 
118
 
119
 
120
 
121
 
122
 
123
 
124
 
125
 
126
 
127
 
128
 
129
// Afara Link Object Format - Message
130
 
131
 
132
 
133
// Acknowledge Types
134
 
135
 
136
 
137
 
138
// Request Types
139
 
140
 
141
 
142
 
143
 
144
// Afara Link Frame
145
 
146
 
147
 
148
//
149
// UCB Packet Type
150
// ===============
151
//
152
 
153
 
154
 
155
 
156
 
157
 
158
 
159
 
160
 
161
 
162
 
163
 
164
 
165
 
166
 
167
 
168
 
169
//
170
// UCB Data Packet Format
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
// Size encoding for the UCB_SIZE_HI/LO field
204
// 000 - byte
205
// 001 - half-word
206
// 010 - word
207
// 011 - double-word
208
// 111 - quad-word
209
 
210
 
211
 
212
 
213
 
214
 
215
 
216
//
217
// UCB Interrupt Packet Format
218
// ===========================
219
//
220
 
221
 
222
 
223
 
224
 
225
 
226
 
227
 
228
 
229
 
230
//`define UCB_THR_HI             9      // (6) cpu/thread ID shared with
231
//`define UCB_THR_LO             4             data packet format
232
//`define UCB_PKT_HI             3      // (4) packet type shared with
233
//`define UCB_PKT_LO             0      //     data packet format
234
 
235
 
236
 
237
 
238
 
239
 
240
 
241
//
242
// FCRAM Bus Widths
243
// ================
244
//
245
 
246
 
247
 
248
 
249
 
250
 
251
//
252
// ENET clock periods
253
// ==================
254
//
255
 
256
 
257
 
258
 
259
//
260
// JBus Bridge defines
261
// =================
262
//
263
 
264
 
265
 
266
 
267
 
268
 
269
 
270
 
271
 
272
 
273
 
274
//
275
// PCI Device Address Configuration
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
module cluster_header (/*AUTOARG*/
303
   // Outputs
304
   dbginit_l, cluster_grst_l, rclk, so,
305
   // Inputs
306
   gclk, cluster_cken, arst_l, grst_l, adbginit_l, gdbginit_l, si,
307
   se
308
   );
309
 
310
   input       gclk;
311
   input       cluster_cken;
312
   input       arst_l;
313
   input       grst_l;
314
   input       adbginit_l;
315
   input       gdbginit_l;
316
   output      dbginit_l;
317
   output      cluster_grst_l;
318
   output      rclk;
319
 
320
   input       si; // scan ports for reset flop repeaters
321
   input       se;
322
   output      so;
323
 
324
 
325
//  assign #10 rclk = gclk;
326
//  assign #10 dbginit_l = gdbginit_l;
327
//  assign #10 cluster_grst_l = grst_l; 
328
//  assign so = 1'b0;
329
 
330
reg      dbginit_l;
331
reg      cluster_grst_l;
332
 
333
assign #10 rclk = gclk;
334
 
335
always @(negedge rclk) begin
336
  dbginit_l <= gdbginit_l;
337
  cluster_grst_l <= grst_l;
338
end
339
 
340
 
341
 
342
 
343
 
344
 
345
 
346
 
347
 
348
 
349
 
350
 
351
 
352
 
353
 
354
 
355
 
356
 
357
 
358
 
359
 
360
 
361
 
362
 
363
 
364
 
365
 
366
 
367
 
368
 
369
 
370
 
371
 
372
 
373
 
374
 
375
 
376
 
377
 
378
 
379
 
380
 
381
 
382
 
383
 
384
 
385
 
386
 
387
 
388
 
389
 
390
 
391
 
392
 
393
 
394
endmodule // cluster_header

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.