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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [actel/] [ordb1a3pe1500/] [rtl/] [verilog/] [include/] [orpsoc-defines.v] - Blame information for rev 544

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 408 julius
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
//// orpsoc-defines                                               ////
4
////                                                              ////
5
//// Top level ORPSoC defines file                                ////
6
////                                                              ////
7
//// Included in toplevel and testbench                           ////
8
////                                                              ////
9
//////////////////////////////////////////////////////////////////////
10
////                                                              ////
11
//// Copyright (C) 2009, 2010 Authors and OPENCORES.ORG           ////
12
////                                                              ////
13
//// This source file may be used and distributed without         ////
14
//// restriction provided that this copyright statement is not    ////
15
//// removed from the file and that any derivative work contains  ////
16
//// the original copyright notice and the associated disclaimer. ////
17
////                                                              ////
18
//// This source file is free software; you can redistribute it   ////
19
//// and/or modify it under the terms of the GNU Lesser General   ////
20
//// Public License as published by the Free Software Foundation; ////
21
//// either version 2.1 of the License, or (at your option) any   ////
22
//// later version.                                               ////
23
////                                                              ////
24
//// This source is distributed in the hope that it will be       ////
25
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
26
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
27
//// PURPOSE.  See the GNU Lesser General Public License for more ////
28
//// details.                                                     ////
29
////                                                              ////
30
//// You should have received a copy of the GNU Lesser General    ////
31
//// Public License along with this source; if not, download it   ////
32
//// from http://www.opencores.org/lgpl.shtml                     ////
33
////                                                              ////
34
//////////////////////////////////////////////////////////////////////
35
//////////////////////////////////////////////////////////////////////
36
//
37
// Uncomment a `define BOARD_XYZ to configure design RTL for it.
38
//
39
// Mainly presets are for internal frequency settings, and what
40
// external oscillator is expected (ordb1's were made with various
41
// XTALs.)
42
//
43
//////////////////////////////////////////////////////////////////////
44
 
45
// ORSoC Dev board: XTAL: 64MHz, WB: 24MHz
46
//`define BOARD_ORSOC_DEV_XTAL64_WB24
47
 
48
// ORSoC Dev board: XTAL: 64MHz, WB: 20MHz
49
`define BOARD_ORSOC_DEV_XTAL64_WB20
50
 
51
// ORSoC Dev board: XTAL: 64MHz, WB: 18MHz
52
//`define BOARD_ORSOC_DEV_XTAL64_WB18
53
 
54
// ORSoC Dev board: XTAL: 64MHz, WB: 16MHz
55
//`define BOARD_ORSOC_DEV_XTAL64_WB16
56
 
57
// ORSoC Dev board: XTAL: 25MHz, WB: 24MHz
58
//`define BOARD_ORSOC_DEV_XTAL25_WB24
59
 
60
// ORSoC Dev board: XTAL: 25MHz, WB: 20MHz
61
//`define BOARD_ORSOC_DEV_XTAL25_WB20
62
 
63
// Actel simulation:
64
// Clock periods are used in  simulation only! 
65
// We generate our own because Actel's PLL model is buggy.
66
// CLKA is SDRAM clock
67
// CLKB is Wishbone clock
68
// CLKC is USB clock
69
 
70
`ifdef BOARD_ORSOC_DEV_XTAL64_WB24
71
 `define ACTEL
72
 `define ACTEL_PLL
73
 `define PLL_XTAL64_WB24
74
 `define FPGA_BOARD_ORSOC_DEV
75
 `define IOCONFIG_ORSOC_IO_BOARD
76
 `define ETH_CLK
77
 `define ETH_CLK_PLL
78
 `define ACTEL_PLL_CLKA_PERIOD 15.625     // 64 MHz
79
 `define ACTEL_PLL_CLKB_PERIOD 41.666667  // 24 MHz
80
 `define ACTEL_PLL_CLKC_PERIOD 20.83334   // 48 MHz
81
 `define BOARD_CLOCK_PERIOD 15.625     // 64 MHz
82
// Modules in system (or `define CUSTOM_CONFIG and define below)
83
 `define CUSTOM_MODULES_CONFIG
84
`endif //  `ifdef BOARD_ORSOC_DEV_XTAL64_WB24
85
 
86
`ifdef BOARD_ORSOC_DEV_XTAL64_WB20
87
 `define ACTEL
88
 `define ACTEL_PLL
89
 `define PLL_XTAL64_WB20
90
 `define FPGA_BOARD_ORSOC_DEV
91
 `define IOCONFIG_ORSOC_IO_BOARD
92
 `define ETH_CLK
93
 `define ETH_CLK_PLL
94
 `define ACTEL_PLL_CLKA_PERIOD 15.625    // 64 MHz
95
 `define ACTEL_PLL_CLKB_PERIOD 50        // 20 MHz
96
 `define ACTEL_PLL_CLKC_PERIOD 20.83334  // 48 MHz
97
 `define BOARD_CLOCK_PERIOD 15.625    // 64 MHz
98
// Modules in system (or `define CUSTOM_CONFIG and define below)
99
 `define CUSTOM_MODULES_CONFIG
100
`endif
101
 
102
`ifdef BOARD_ORSOC_DEV_XTAL64_WB18
103
 `define ACTEL
104
 `define ACTEL_PLL
105
 `define PLL_XTAL64_WB18
106
 `define FPGA_BOARD_ORSOC_DEV
107
 `define IOCONFIG_ORSOC_IO_BOARD
108
 `define ETH_CLK
109
 `define ETH_CLK_PLL
110
 `define ACTEL_PLL_CLKA_PERIOD 15.625    // 64 MHz
111
 `define ACTEL_PLL_CLKB_PERIOD 55.55556  // 18 MHz
112
 `define ACTEL_PLL_CLKC_PERIOD 20.83334  // 48 MHz
113
 `define BOARD_CLOCK_PERIOD 15.625    // 64 MHz
114
// Modules in system (or `define CUSTOM_CONFIG and define below)
115
 `define CUSTOM_MODULES_CONFIG
116
`endif
117
 
118
`ifdef BOARD_ORSOC_DEV_XTAL64_WB16
119
 `define ACTEL
120
 `define ACTEL_PLL
121
 `define PLL_XTAL64_WB16
122
 `define FPGA_BOARD_ORSOC_DEV
123
 `define IOCONFIG_ORSOC_IO_BOARD
124
 `define ETH_CLK
125
 `define ETH_CLK_PLL
126
 `define ACTEL_PLL_CLKA_PERIOD 15.625    // 64 MHz
127
 `define ACTEL_PLL_CLKB_PERIOD 62.5      // 16 MHz
128
 `define ACTEL_PLL_CLKC_PERIOD 20.83334  // 48 MHz
129
 `define BOARD_CLOCK_PERIOD 15.625    // 64 MHz
130
// Modules in system (or `define CUSTOM_CONFIG and define below)
131
 `define CUSTOM_MODULES_CONFIG
132
`endif
133
 
134
`ifdef BOARD_ORSOC_DEV_XTAL25_WB24
135
 `define ACTEL
136
 `define ACTEL_PLL
137
 `define PLL_XTAL25_WB24
138
 `define FPGA_BOARD_ORSOC_DEV
139
 `define IOCONFIG_ORSOC_IO_BOARD
140
 `define ETH_CLK
141
 `define ACTEL_PLL_CLKA_PERIOD 40        // 25 MHz
142
 `define ACTEL_PLL_CLKB_PERIOD 41.666667 // 24 MHz
143
 `define ACTEL_PLL_CLKC_PERIOD 20.83334  // 48 MHz
144
 `define BOARD_CLOCK_PERIOD 40        // 25 MHz
145
// Modules in system (or `define CUSTOM_CONFIG and define below)
146
 `define CUSTOM_MODULES_CONFIG
147
`endif //  `ifdef BOARD_ORSOC_DEV_XTAL25_WB24
148
 
149
`ifdef BOARD_ORSOC_DEV_XTAL25_WB20
150
 `define ACTEL
151
 `define ACTEL_PLL
152
 `define PLL_XTAL25_WB20
153
 `define FPGA_BOARD_ORSOC_DEV
154
 `define IOCONFIG_ORSOC_IO_BOARD
155
 `define ETH_CLK
156
 `define ACTEL_PLL_CLKA_PERIOD 40        // 25 MHz
157
 `define ACTEL_PLL_CLKB_PERIOD 50        // 20 MHz
158
 `define ACTEL_PLL_CLKC_PERIOD 20.83334  // 48 MHz
159
 `define BOARD_CLOCK_PERIOD 40        // 25 MHz
160
// Modules in system (or `define CUSTOM_CONFIG and define below)
161
// `define CUSTOM_MODULES_CONFIG
162
// Included modules: define to include
163
 `define JTAG_DEBUG
164
 `define VERSATILE_SDRAM
165
 `define UART0
166
 `define SPI0
167
 `define I2C0
168
 `define GPIO0
169
 `define ETH0
170
 `define SMII0
171
`endif
172
 
173
`ifdef CUSTOM_MODULES_CONFIG
174
// Included modules: define to include
175
 `define JTAG_DEBUG
176
 `define VERSATILE_SDRAM
177
//`define RAM_WB
178
//`define ACTEL_UFR
179
 `define UART0
180
 `define SPI0
181
// `define SPI1
182
// `define SPI2
183
// `define I2C0
184
// `define I2C1
185
// `define I2C2
186
// `define I2C3
187 542 julius
 `define USB0
188 408 julius
// `define USB1
189
//`define GPIO0
190
`define ETH0
191
`define SMII0
192 544 julius
`define SDC_CONTROLLER
193 408 julius
 
194
`endif //  `ifdef CUSTOM_MODULES_CONFIG
195
 
196
 
197
// end of included module defines - keep this comment line here, scripts depend on it!!
198
 
199
`ifdef SPI0
200
 `define SPI0_SLAVE_SELECTS
201
`endif
202
 
203
 
204
`ifdef SPI1
205
 `define SPI1_SLAVE_SELECTS
206
`endif
207
 
208
`ifdef SPI2
209
 `define SPI2_SLAVE_SELECTS
210
`endif
211
 
212
`ifdef USB0
213
// Indicate we need clock for USB
214
`define USB_CLK
215
// uncomment this for the module to be only a host controller
216
 `define USB0_ONLY_HOST
217
`endif
218
 
219
 
220
`ifdef USB1
221
// If we haven't already, indicate we need clock for USB
222
 `ifndef USB_CLK
223
  `define USB_CLK
224
 `endif
225
 
226
// If both are commented out, USB1 is a host and slave otherwise uncomment
227
// only one of the following to instantiate the desired type:
228
// `define USB1_ONLY_HOST
229
 `define USB1_ONLY_SLAVE
230
`endif
231
 
232
 
233
`ifdef ETH0
234
// Define ETH0_PHY_RST here or where ETH0 is defined to enable an active-low
235
// reset output to the PHY if it's possible.
236
// `define ETH0_PHY_RST
237
`endif
238
 
239
`ifdef ETH_CLK
240
// Ethernet clock rate, for simulation
241
 `define ETHERNET_CLOCK_PERIOD 8.00 // 125 MHz
242
`endif
243
 
244
//
245
// Arbiter defines
246
//
247
 
248
// Uncomment to register things through arbiter (hopefully quicker design)
249
// Instruction bus arbiter
250
//`define ARBITER_IBUS_REGISTERING
251
`define ARBITER_IBUS_WATCHDOG
252
// Watchdog timeout: 2^(ARBITER_IBUS_WATCHDOG_TIMER_WIDTH+1) cycles
253
`define ARBITER_IBUS_WATCHDOG_TIMER_WIDTH 12
254
 
255
// Data bus arbiter
256
 
257
//`define ARBITER_DBUS_REGISTERING
258
`define ARBITER_DBUS_WATCHDOG
259
// Watchdog timeout: 2^(ARBITER_DBUS_WATCHDOG_TIMER_WIDTH+1) cycles
260
`define ARBITER_DBUS_WATCHDOG_TIMER_WIDTH 12
261
 
262
// Byte bus (peripheral bus) arbiter
263
// Don't really need the watchdog here - the databus will pick it up
264
//`define ARBITER_BYTEBUS_WATCHDOG
265
// Watchdog timeout: 2^(ARBITER_BYTEBUS_WATCHDOG_TIMER_WIDTH+1) cycles
266
`define ARBITER_BYTEBUS_WATCHDOG_TIMER_WIDTH 9
267
 

powered by: WebSVN 2.1.0

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