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 12

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 12 antanguay
`define TERMINATE  8'hfd
55 2 antanguay
`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 6 antanguay
`define TXSTATUS_NONE       8'h0
82
`define TXSTATUS_EOP        3'd6
83
`define TXSTATUS_SOP        3'd7
84 2 antanguay
 
85 6 antanguay
`define RXSTATUS_NONE       8'h0
86
`define RXSTATUS_ERR        3'd5
87
`define RXSTATUS_EOP        3'd6
88
`define RXSTATUS_SOP        3'd7
89 2 antanguay
 
90
 
91
//
92
// FIFO Size: 8 * (2^AWIDTH) will be the size in bytes
93
//            7 --> 128 entries, 1024 bytes for data fifo
94
//
95
`define TX_DATA_FIFO_AWIDTH 7
96
`define RX_DATA_FIFO_AWIDTH 7
97
 
98
//
99
// FIFO Size: Holding FIFOs are 16 deep
100
//
101
`define TX_HOLD_FIFO_AWIDTH 4
102
`define RX_HOLD_FIFO_AWIDTH 4
103
 
104
 
105
// Memory types
106
`define MEM_AUTO_SMALL 1
107
`define MEM_AUTO_MEDIUM 2
108
 
109
 
110 12 antanguay
// Changed system packet interface to big endian (12/12/2009)
111
// Comment out to use legacy mode
112
`define BIGENDIAN

powered by: WebSVN 2.1.0

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