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 577

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

powered by: WebSVN 2.1.0

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