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

Subversion Repositories xge_mac

[/] [xge_mac/] [trunk/] [rtl/] [include/] [defines.v] - Blame information for rev 2

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

Line No. Rev Author Line
1 2 antanguay
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  File name "defines.v"                                       ////
4
////                                                              ////
5
////  This file is part of the "10GE MAC" project                 ////
6
////  http://www.opencores.org/cores/xge_mac/                     ////
7
////                                                              ////
8
////  Author(s):                                                  ////
9
////      - A. Tanguay (antanguay@opencores.org)                  ////
10
////                                                              ////
11
//////////////////////////////////////////////////////////////////////
12
////                                                              ////
13
//// Copyright (C) 2008 AUTHORS. All rights reserved.             ////
14
////                                                              ////
15
//// This source file may be used and distributed without         ////
16
//// restriction provided that this copyright statement is not    ////
17
//// removed from the file and that any derivative work contains  ////
18
//// the original copyright notice and the associated disclaimer. ////
19
////                                                              ////
20
//// This source file is free software; you can redistribute it   ////
21
//// and/or modify it under the terms of the GNU Lesser General   ////
22
//// Public License as published by the Free Software Foundation; ////
23
//// either version 2.1 of the License, or (at your option) any   ////
24
//// later version.                                               ////
25
////                                                              ////
26
//// This source is distributed in the hope that it will be       ////
27
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
28
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
29
//// PURPOSE.  See the GNU Lesser General Public License for more ////
30
//// details.                                                     ////
31
////                                                              ////
32
//// You should have received a copy of the GNU Lesser General    ////
33
//// Public License along with this source; if not, download it   ////
34
//// from http://www.opencores.org/lgpl.shtml                     ////
35
////                                                              ////
36
//////////////////////////////////////////////////////////////////////
37
 
38
 
39
// CPU Registers
40
 
41
`define CPUREG_CONFIG0      8'h00
42
`define CPUREG_INT_PENDING  8'h08
43
`define CPUREG_INT_STATUS   8'h0c
44
`define CPUREG_INT_MASK     8'h10
45
 
46
 
47
// Ethernet codes
48
 
49
`define IDLE       8'h07
50
`define PREAMBLE   8'h55
51
`define SEQUENCE   8'h9c
52
`define SFD        8'hd5
53
`define START      8'hfb
54
`define TERMINATE  8'hfd
55
`define ERROR      8'hfe
56
 
57
 
58
 
59
`define LINK_FAULT_OK      2'd0
60
`define LINK_FAULT_LOCAL   2'd1
61
`define LINK_FAULT_REMOTE  2'd2
62
 
63
`define FAULT_SEQ_LOCAL  1'b0
64
`define FAULT_SEQ_REMOTE 1'b1
65
 
66
`define LOCAL_FAULT   8'd1
67
`define REMOTE_FAULT  8'd2
68
 
69
`define PAUSE_FRAME   48'h010000c28001
70
 
71
`define LANE0        7:0
72
`define LANE1       15:8
73
`define LANE2      23:16
74
`define LANE3      31:24
75
`define LANE4      39:32
76
`define LANE5      47:40
77
`define LANE6      55:48
78
`define LANE7      63:56
79
 
80
 
81
`define TXSTATUS_NONE       8'h00
82
`define TXSTATUS_EOP0       8'h01
83
`define TXSTATUS_EOP1       8'h02
84
`define TXSTATUS_EOP2       8'h04
85
`define TXSTATUS_EOP3       8'h08
86
`define TXSTATUS_EOP4       8'h10
87
`define TXSTATUS_EOP5       8'h20
88
`define TXSTATUS_EOP6       8'h40
89
`define TXSTATUS_EOP7       8'h80
90
`define TXSTATUS_SOP        8'hff
91
 
92
`define RXSTATUS_NONE       4'h0
93
`define RXSTATUS_EOP0       4'h1
94
`define RXSTATUS_EOP1       4'h2
95
`define RXSTATUS_EOP2       4'h3
96
`define RXSTATUS_EOP3       4'h4
97
`define RXSTATUS_EOP4       4'h5
98
`define RXSTATUS_EOP5       4'h6
99
`define RXSTATUS_EOP6       4'h7
100
`define RXSTATUS_EOP7       4'h8
101
`define RXSTATUS_SOP        4'h9
102
 
103
`define RXSTATUS_ERR        4'h1
104
 
105
 
106
//
107
// FIFO Size: 8 * (2^AWIDTH) will be the size in bytes
108
//            7 --> 128 entries, 1024 bytes for data fifo
109
//
110
`define TX_DATA_FIFO_AWIDTH 7
111
`define RX_DATA_FIFO_AWIDTH 7
112
 
113
//
114
// FIFO Size: Holding FIFOs are 16 deep
115
//
116
`define TX_HOLD_FIFO_AWIDTH 4
117
`define RX_HOLD_FIFO_AWIDTH 4
118
 
119
 
120
// Memory types
121
`define MEM_AUTO_SMALL 1
122
`define MEM_AUTO_MEDIUM 2
123
 
124
 

powered by: WebSVN 2.1.0

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