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

Subversion Repositories ethmac

[/] [ethmac/] [tags/] [rel_14/] [rtl/] [verilog/] [eth_defines.v] - Blame information for rev 145

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 145 mohor
// Revision 1.21  2002/08/16 22:09:47  mohor
45
// Defines for register width added. mii_rst signal in MIIMODER register
46
// changed.
47
//
48 137 mohor
// Revision 1.20  2002/08/14 19:31:48  mohor
49
// Register TX_BD_NUM is changed so it contains value of the Tx buffer descriptors. No
50
// need to multiply or devide any more.
51
//
52 134 mohor
// Revision 1.19  2002/07/23 15:28:31  mohor
53
// Ram , used for BDs changed from generic_spram to eth_spram_256x32.
54
//
55 119 mohor
// Revision 1.18  2002/05/03 10:15:50  mohor
56
// Outputs registered. Reset changed for eth_wishbone module.
57
//
58 106 mohor
// Revision 1.17  2002/04/24 08:52:19  mohor
59
// Compiler directives added. Tx and Rx fifo size incremented. A "late collision"
60
// bug fixed.
61
//
62 105 mohor
// Revision 1.16  2002/03/19 12:53:29  mohor
63
// Some defines that are used in testbench only were moved to tb_eth_defines.v
64
// file.
65
//
66 92 mohor
// Revision 1.15  2002/02/26 16:11:32  mohor
67
// Number of interrupts changed
68
//
69 73 mohor
// Revision 1.14  2002/02/16 14:03:44  mohor
70
// Registered trimmed. Unused registers removed.
71
//
72 68 mohor
// Revision 1.13  2002/02/16 13:06:33  mohor
73
// EXTERNAL_DMA used instead of WISHBONE_DMA.
74
//
75 67 mohor
// Revision 1.12  2002/02/15 10:58:31  mohor
76
// Changed that were lost with last update put back to the file.
77
//
78 55 mohor
// Revision 1.11  2002/02/14 20:19:41  billditt
79
// Modified for Address Checking,
80
// addition of eth_addrcheck.v
81
//
82
// Revision 1.10  2002/02/12 17:01:19  mohor
83
// HASH0 and HASH1 registers added. 
84
 
85 46 mohor
// Revision 1.9  2002/02/08 16:21:54  mohor
86
// Rx status is written back to the BD.
87
//
88 42 mohor
// Revision 1.8  2002/02/05 16:44:38  mohor
89
// Both rx and tx part are finished. Tested with wb_clk_i between 10 and 200
90
// MHz. Statuses, overrun, control frame transmission and reception still  need
91
// to be fixed.
92
//
93 40 mohor
// Revision 1.7  2002/01/23 10:28:16  mohor
94
// Link in the header changed.
95
//
96 37 mohor
// Revision 1.6  2001/12/05 15:00:16  mohor
97
// RX_BD_NUM changed to TX_BD_NUM (holds number of TX descriptors
98
// instead of the number of RX descriptors).
99
//
100 34 mohor
// Revision 1.5  2001/12/05 10:21:37  mohor
101
// ETH_RX_BD_ADR register deleted. ETH_RX_BD_NUM is used instead.
102
//
103 32 mohor
// Revision 1.4  2001/11/13 14:23:56  mohor
104
// Generic memory model is used. Defines are changed for the same reason.
105
//
106 29 mohor
// Revision 1.3  2001/10/18 12:07:11  mohor
107
// Status signals changed, Adress decoding changed, interrupt controller
108
// added.
109
//
110 21 mohor
// Revision 1.2  2001/09/24 15:02:56  mohor
111
// Defines changed (All precede with ETH_). Small changes because some
112
// tools generate warnings when two operands are together. Synchronization
113
// between two clocks domains in eth_wishbonedma.v is changed (due to ASIC
114
// demands).
115
//
116 20 mohor
// Revision 1.1  2001/08/06 14:44:29  mohor
117
// A define FPGA added to select between Artisan RAM (for ASIC) and Block Ram (For Virtex).
118
// Include files fixed to contain no path.
119
// File names and module names changed ta have a eth_ prologue in the name.
120
// File eth_timescale.v is used to define timescale
121
// All pin names on the top module are changed to contain _I, _O or _OE at the end.
122
// Bidirectional signal MDIO is changed to three signals (Mdc_O, Mdi_I, Mdo_O
123
// and Mdo_OE. The bidirectional signal must be created on the top level. This
124
// is done due to the ASIC tools.
125
//
126 15 mohor
// Revision 1.1  2001/07/30 21:23:42  mohor
127
// Directory structure changed. Files checked and joind together.
128
//
129
//
130
//
131
//
132
//
133
 
134 32 mohor
 
135 105 mohor
//`define ETH_FIFO_XILINX               // Use Xilinx distributed ram for tx and rx fifo
136 32 mohor
 
137
 
138 119 mohor
// Selection of the used memory for Buffer descriptors
139
//`define ETH_XILINX_RAMB4            // Core is going to be implemented in Virtex FPGA and contains Virtex 
140 29 mohor
                                      // specific elements. 
141 15 mohor
 
142
 
143
 
144 55 mohor
`define ETH_MODER_ADR         8'h0    // 0x0 
145
`define ETH_INT_SOURCE_ADR    8'h1    // 0x4 
146
`define ETH_INT_MASK_ADR      8'h2    // 0x8 
147
`define ETH_IPGT_ADR          8'h3    // 0xC 
148
`define ETH_IPGR1_ADR         8'h4    // 0x10
149
`define ETH_IPGR2_ADR         8'h5    // 0x14
150
`define ETH_PACKETLEN_ADR     8'h6    // 0x18
151
`define ETH_COLLCONF_ADR      8'h7    // 0x1C
152
`define ETH_TX_BD_NUM_ADR     8'h8    // 0x20
153
`define ETH_CTRLMODER_ADR     8'h9    // 0x24
154
`define ETH_MIIMODER_ADR      8'hA    // 0x28
155
`define ETH_MIICOMMAND_ADR    8'hB    // 0x2C
156
`define ETH_MIIADDRESS_ADR    8'hC    // 0x30
157
`define ETH_MIITX_DATA_ADR    8'hD    // 0x34
158
`define ETH_MIIRX_DATA_ADR    8'hE    // 0x38
159
`define ETH_MIISTATUS_ADR     8'hF    // 0x3C
160
`define ETH_MAC_ADDR0_ADR     8'h10   // 0x40
161
`define ETH_MAC_ADDR1_ADR     8'h11   // 0x44
162
`define ETH_HASH0_ADR         8'h12   // 0x48
163
`define ETH_HASH1_ADR         8'h13   // 0x4C
164 145 mohor
`define ETH_TX_CTRL_ADR       8'h14   // 0x50
165
`define ETH_RX_CTRL_ADR       8'h15   // 0x54
166 15 mohor
 
167
 
168 68 mohor
`define ETH_MODER_DEF         17'h0A800
169 73 mohor
`define ETH_INT_MASK_DEF      7'h0
170 68 mohor
`define ETH_IPGT_DEF          7'h12
171
`define ETH_IPGR1_DEF         7'h0C
172
`define ETH_IPGR2_DEF         7'h12
173 105 mohor
`define ETH_PACKETLEN_DEF     32'h00400600
174 68 mohor
`define ETH_COLLCONF0_DEF     6'h3f
175
`define ETH_COLLCONF1_DEF     4'hF
176 134 mohor
`define ETH_TX_BD_NUM_DEF     8'h40
177 68 mohor
`define ETH_CTRLMODER_DEF     3'h0
178 137 mohor
`define ETH_MIIMODER_DEF      10'h064
179 68 mohor
`define ETH_MIIADDRESS0_DEF   5'h00
180
`define ETH_MIIADDRESS1_DEF   5'h00
181
`define ETH_MIITX_DATA_DEF    16'h0000
182
`define ETH_MIIRX_DATA_DEF    16'h0000
183 20 mohor
`define ETH_MIISTATUS_DEF     32'h00000000
184
`define ETH_MAC_ADDR0_DEF     32'h00000000
185 68 mohor
`define ETH_MAC_ADDR1_DEF     16'h0000
186 46 mohor
`define ETH_HASH0_DEF         32'h00000000
187
`define ETH_HASH1_DEF         32'h00000000
188 145 mohor
`define ETH_RX_CTRL_DEF       16'h0
189 15 mohor
 
190 40 mohor
 
191 137 mohor
`define ETH_MODER_WIDTH       17
192
`define ETH_INT_SOURCE_WIDTH  7
193
`define ETH_INT_MASK_WIDTH    7
194
`define ETH_IPGT_WIDTH        7
195
`define ETH_IPGR1_WIDTH       7
196
`define ETH_IPGR2_WIDTH       7
197
`define ETH_PACKETLEN_WIDTH   32
198
`define ETH_TX_BD_NUM_WIDTH   8
199
`define ETH_CTRLMODER_WIDTH   3
200
`define ETH_MIIMODER_WIDTH    10
201
`define ETH_MIITX_DATA_WIDTH  16
202
`define ETH_MIIRX_DATA_WIDTH  16
203
`define ETH_MIISTATUS_WIDTH   3
204
`define ETH_MAC_ADDR0_WIDTH   32
205
`define ETH_MAC_ADDR1_WIDTH   16
206
`define ETH_HASH0_WIDTH       32
207
`define ETH_HASH1_WIDTH       32
208 145 mohor
`define ETH_TX_CTRL_WIDTH     17
209
`define ETH_RX_CTRL_WIDTH     16
210 137 mohor
 
211
 
212 40 mohor
// Outputs are registered (uncomment when needed)
213 106 mohor
`define ETH_REGISTERED_OUTPUTS
214 40 mohor
 
215 105 mohor
`define TX_FIFO_CNT_WIDTH      5
216
`define TX_FIFO_DEPTH         16
217 40 mohor
`define TX_FIFO_DATA_WIDTH    32
218
 
219 105 mohor
`define RX_FIFO_CNT_WIDTH      5
220
`define RX_FIFO_DEPTH         16
221 40 mohor
`define RX_FIFO_DATA_WIDTH    32

powered by: WebSVN 2.1.0

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