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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [xilinx/] [ml501/] [rtl/] [verilog/] [include/] [orpsoc-defines.v] - Blame information for rev 655

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 412 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
 `define XILINX
46
 `define XILINX_PLL
47
 `define FPGA_BOARD_XILINX_ML501
48
 `define IOCONFIG_XILINX_ML501
49
 `define BOARD_CLOCK_PERIOD 5000 // 200MHz (pS accuracy for Xilinx sims.) 
50
 
51
 `define JTAG_DEBUG
52
// `define RAM_WB
53
// `define XILINX_SSRAM
54 655 julius
 `define CFI_FLASH
55 412 julius
 `define XILINX_DDR2
56
 `define UART0
57
 `define GPIO0
58 655 julius
// `define SPI0
59 412 julius
 `define I2C0
60
 `define I2C1
61
 `define ETH0
62
 `define ETH0_PHY_RST
63
 
64
// end of included module defines - keep this comment line here, scripts depend on it!!
65
 
66
 
67
//
68
// Arbiter defines
69
//
70
 
71
// Uncomment to register things through arbiter (hopefully quicker design)
72
// Instruction bus arbiter
73
//`define ARBITER_IBUS_REGISTERING
74
`define ARBITER_IBUS_WATCHDOG
75
// Watchdog timeout: 2^(ARBITER_IBUS_WATCHDOG_TIMER_WIDTH+1) cycles
76 415 julius
// This has to be kind of long, as DDR2 initialisation can take a little while
77
// and after reset, and if this is too short we'll always get bus error.
78 530 julius
`ifdef XILINX_DDR2
79
 `define ARBITER_IBUS_WATCHDOG_TIMER_WIDTH 20
80
`else
81
 `define ARBITER_IBUS_WATCHDOG_TIMER_WIDTH 6
82
`endif
83 412 julius
 
84
// Data bus arbiter
85
 
86
//`define ARBITER_DBUS_REGISTERING
87
`define ARBITER_DBUS_WATCHDOG
88
// Watchdog timeout: 2^(ARBITER_DBUS_WATCHDOG_TIMER_WIDTH+1) cycles
89 530 julius
`ifdef XILINX_DDR2
90
 `define ARBITER_DBUS_WATCHDOG_TIMER_WIDTH 20
91
`else
92
 `define ARBITER_DBUS_WATCHDOG_TIMER_WIDTH 6
93
`endif
94 412 julius
 
95
// Byte bus (peripheral bus) arbiter
96
// Don't really need the watchdog here - the databus will pick it up
97
//`define ARBITER_BYTEBUS_WATCHDOG
98
// Watchdog timeout: 2^(ARBITER_BYTEBUS_WATCHDOG_TIMER_WIDTH+1) cycles
99
`define ARBITER_BYTEBUS_WATCHDOG_TIMER_WIDTH 9
100
 

powered by: WebSVN 2.1.0

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