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

Subversion Repositories ethmac

[/] [ethmac/] [trunk/] [rtl/] [verilog/] [ethmac_defines.v] - Blame information for rev 15

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
////  http://www.opencores.org/cores/ethmac/                      ////
7
////                                                              ////
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
// Revision 1.1  2001/07/30 21:23:42  mohor
45
// Directory structure changed. Files checked and joind together.
46
//
47
//
48
//
49
//
50
//
51
 
52
 
53
`define FPGA                        // Core is going to be implemented in FPGA and contains FPGA specific elements
54
                                    // Should be cleared for the ASIC implementation
55
 
56
 
57
// Address is {`ETHERNET_SPACE, REG_SPACE, 12'hx}
58
`define ETHERNET_SPACE    16'hf000  // Ethernet space is allocated from 0xF0000000 to 0xF000FFFF
59
`define REG_SPACE         4'h0      // Register space is allocated to 0xF0000000
60
`define BD_SPACE          4'h1      // Buffer descriptor space is allocated to 0xF0001000
61
`define TX_DATA           4'h2      // Tx data is written to address 0xF0002000. Since DMA is used, TX_DATA is not used in equations.
62
`define RX_DATA           4'h3      // Rx data is read from address 0xF0003000. Since DMA is used, RX_DATA is not used in equations.
63
 
64
 
65
`define PACKET_SEND_ADR   32'h20   // Packet for TX are written to the address 0x20
66
 
67
`define MODER_ADR         6'h0
68
`define INT_SOURCE_ADR    6'h1
69
`define INT_MASK_ADR      6'h2
70
`define IPGT_ADR          6'h3
71
`define IPGR1_ADR         6'h4
72
`define IPGR2_ADR         6'h5
73
`define PACKETLEN_ADR     6'h6
74
`define COLLCONF_ADR      6'h7
75
`define RX_BD_ADR_ADR     6'h8
76
`define CTRLMODER_ADR     6'hA
77
`define MIIMODER_ADR      6'hB
78
`define MIICOMMAND_ADR    6'hC
79
`define MIIADDRESS_ADR    6'hD
80
`define MIITX_DATA_ADR    6'hE
81
`define MIIRX_DATA_ADR    6'hF
82
`define MIISTATUS_ADR     6'h10
83
`define MAC_ADDR0_ADR     6'h11
84
`define MAC_ADDR1_ADR     6'h12
85
 
86
 
87
 
88
`define MODER_DEF         32'h0000A000
89
`define INT_SOURCE_DEF    32'h00000000
90
`define INT_MASK_DEF      32'h00000000
91
`define IPGT_DEF          32'h00000012
92
`define IPGR1_DEF         32'h0000000C
93
`define IPGR2_DEF         32'h00000012
94
`define PACKETLEN_DEF     32'h003C0600
95
`define COLLCONF_DEF      32'h000F0040
96
`define CTRLMODER_DEF     32'h00000000
97
`define MIIMODER_DEF      32'h00000064
98
`define MIICOMMAND_DEF    32'h00000000
99
`define MIIADDRESS_DEF    32'h00000000
100
`define MIITX_DATA_DEF    32'h00000000
101
`define MIIRX_DATA_DEF    32'h00000000
102
`define MIISTATUS_DEF     32'h00000000
103
`define MAC_ADDR0_DEF     32'h00000000
104
`define MAC_ADDR1_DEF     32'h00000000
105
 
106
`define RX_BD_ADR_DEF     8'h0

powered by: WebSVN 2.1.0

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