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

Subversion Repositories ethmac

[/] [ethmac/] [tags/] [rel_7/] [rtl/] [verilog/] [eth_defines.v] - Blame information for rev 46

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

Line No. Rev Author Line
1 15 mohor
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  eth_defines.v                                               ////
4
////                                                              ////
5
////  This file is part of the Ethernet IP core project           ////
6 37 mohor
////  http://www.opencores.org/projects/ethmac/                   ////
7 15 mohor
////                                                              ////
8
////  Author(s):                                                  ////
9
////      - Igor Mohor (igorM@opencores.org)                      ////
10
////                                                              ////
11
////  All additional information is avaliable in the Readme.txt   ////
12
////  file.                                                       ////
13
////                                                              ////
14
//////////////////////////////////////////////////////////////////////
15
////                                                              ////
16
//// Copyright (C) 2001 Authors                                   ////
17
////                                                              ////
18
//// This source file may be used and distributed without         ////
19
//// restriction provided that this copyright statement is not    ////
20
//// removed from the file and that any derivative work contains  ////
21
//// the original copyright notice and the associated disclaimer. ////
22
////                                                              ////
23
//// This source file is free software; you can redistribute it   ////
24
//// and/or modify it under the terms of the GNU Lesser General   ////
25
//// Public License as published by the Free Software Foundation; ////
26
//// either version 2.1 of the License, or (at your option) any   ////
27
//// later version.                                               ////
28
////                                                              ////
29
//// This source is distributed in the hope that it will be       ////
30
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
31
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
32
//// PURPOSE.  See the GNU Lesser General Public License for more ////
33
//// details.                                                     ////
34
////                                                              ////
35
//// You should have received a copy of the GNU Lesser General    ////
36
//// Public License along with this source; if not, download it   ////
37
//// from http://www.opencores.org/lgpl.shtml                     ////
38
////                                                              ////
39
//////////////////////////////////////////////////////////////////////
40
//
41
// CVS Revision History
42
//
43
// $Log: not supported by cvs2svn $
44 46 mohor
// Revision 1.9  2002/02/08 16:21:54  mohor
45
// Rx status is written back to the BD.
46
//
47 42 mohor
// Revision 1.8  2002/02/05 16:44:38  mohor
48
// Both rx and tx part are finished. Tested with wb_clk_i between 10 and 200
49
// MHz. Statuses, overrun, control frame transmission and reception still  need
50
// to be fixed.
51
//
52 40 mohor
// Revision 1.7  2002/01/23 10:28:16  mohor
53
// Link in the header changed.
54
//
55 37 mohor
// Revision 1.6  2001/12/05 15:00:16  mohor
56
// RX_BD_NUM changed to TX_BD_NUM (holds number of TX descriptors
57
// instead of the number of RX descriptors).
58
//
59 34 mohor
// Revision 1.5  2001/12/05 10:21:37  mohor
60
// ETH_RX_BD_ADR register deleted. ETH_RX_BD_NUM is used instead.
61
//
62 32 mohor
// Revision 1.4  2001/11/13 14:23:56  mohor
63
// Generic memory model is used. Defines are changed for the same reason.
64
//
65 29 mohor
// Revision 1.3  2001/10/18 12:07:11  mohor
66
// Status signals changed, Adress decoding changed, interrupt controller
67
// added.
68
//
69 21 mohor
// Revision 1.2  2001/09/24 15:02:56  mohor
70
// Defines changed (All precede with ETH_). Small changes because some
71
// tools generate warnings when two operands are together. Synchronization
72
// between two clocks domains in eth_wishbonedma.v is changed (due to ASIC
73
// demands).
74
//
75 20 mohor
// Revision 1.1  2001/08/06 14:44:29  mohor
76
// A define FPGA added to select between Artisan RAM (for ASIC) and Block Ram (For Virtex).
77
// Include files fixed to contain no path.
78
// File names and module names changed ta have a eth_ prologue in the name.
79
// File eth_timescale.v is used to define timescale
80
// All pin names on the top module are changed to contain _I, _O or _OE at the end.
81
// Bidirectional signal MDIO is changed to three signals (Mdc_O, Mdi_I, Mdo_O
82
// and Mdo_OE. The bidirectional signal must be created on the top level. This
83
// is done due to the ASIC tools.
84
//
85 15 mohor
// Revision 1.1  2001/07/30 21:23:42  mohor
86
// Directory structure changed. Files checked and joind together.
87
//
88
//
89
//
90
//
91
//
92
 
93 32 mohor
 
94
//`define WISHBONE_DMA                  // Using DMA
95
 
96
 
97 29 mohor
// Selection of the used memory
98
//`define XILINX_RAMB4                // Core is going to be implemented in Virtex FPGA and contains Virtex 
99
                                      // specific elements. 
100 15 mohor
 
101 29 mohor
//`define ARTISAN_SDP                 // Core is going to be implemented in ASIC (using Artisan RAM)
102 15 mohor
 
103
 
104 46 mohor
`define ETH_MODER_ADR         8'h0    // 0x0 
105
`define ETH_INT_SOURCE_ADR    8'h1    // 0x4 
106
`define ETH_INT_MASK_ADR      8'h2    // 0x8 
107
`define ETH_IPGT_ADR          8'h3    // 0xC 
108
`define ETH_IPGR1_ADR         8'h4    // 0x10
109
`define ETH_IPGR2_ADR         8'h5    // 0x14
110
`define ETH_PACKETLEN_ADR     8'h6    // 0x18
111
`define ETH_COLLCONF_ADR      8'h7    // 0x1C
112
`define ETH_TX_BD_NUM_ADR     8'h8    // 0x20
113
`define ETH_CTRLMODER_ADR     8'h9    // 0x24
114
`define ETH_MIIMODER_ADR      8'hA    // 0x28
115
`define ETH_MIICOMMAND_ADR    8'hB    // 0x2C
116
`define ETH_MIIADDRESS_ADR    8'hC    // 0x30
117
`define ETH_MIITX_DATA_ADR    8'hD    // 0x34
118
`define ETH_MIIRX_DATA_ADR    8'hE    // 0x38
119
`define ETH_MIISTATUS_ADR     8'hF    // 0x3C
120
`define ETH_MAC_ADDR0_ADR     8'h10   // 0x40
121
`define ETH_MAC_ADDR1_ADR     8'h11   // 0x44
122
`define ETH_HASH0_ADR         8'h12   // 0x48
123
`define ETH_HASH1_ADR         8'h13   // 0x4C
124 15 mohor
 
125
 
126
 
127 40 mohor
`define ETH_MODER_DEF         32'h0000A800
128 20 mohor
`define ETH_INT_SOURCE_DEF    32'h00000000
129
`define ETH_INT_MASK_DEF      32'h00000000
130
`define ETH_IPGT_DEF          32'h00000012
131
`define ETH_IPGR1_DEF         32'h0000000C
132
`define ETH_IPGR2_DEF         32'h00000012
133
`define ETH_PACKETLEN_DEF     32'h003C0600
134 42 mohor
`define ETH_COLLCONF_DEF      32'h000F003f
135 20 mohor
`define ETH_CTRLMODER_DEF     32'h00000000
136
`define ETH_MIIMODER_DEF      32'h00000064
137
`define ETH_MIICOMMAND_DEF    32'h00000000
138
`define ETH_MIIADDRESS_DEF    32'h00000000
139
`define ETH_MIITX_DATA_DEF    32'h00000000
140
`define ETH_MIIRX_DATA_DEF    32'h00000000
141
`define ETH_MIISTATUS_DEF     32'h00000000
142
`define ETH_MAC_ADDR0_DEF     32'h00000000
143
`define ETH_MAC_ADDR1_DEF     32'h00000000
144 46 mohor
`define ETH_HASH0_DEF         32'h00000000
145
`define ETH_HASH1_DEF         32'h00000000
146 15 mohor
 
147 46 mohor
 
148
 
149 34 mohor
`define ETH_TX_BD_NUM_DEF     8'h80
150 40 mohor
 
151
 
152
// Outputs are registered (uncomment when needed)
153
// `define ETH_REGISTERED_OUTPUTS
154
 
155
`define TX_FIFO_CNT_WIDTH      4
156
`define TX_FIFO_DEPTH          8
157
`define TX_FIFO_DATA_WIDTH    32
158
 
159
`define RX_FIFO_CNT_WIDTH      4
160
`define RX_FIFO_DEPTH          8
161
`define RX_FIFO_DATA_WIDTH    32
162
 

powered by: WebSVN 2.1.0

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