1 |
39 |
fisher5090 |
//////////////////////////////////////////////////////////////////////
|
2 |
|
|
//// ////
|
3 |
|
|
//// MODULE NAME: definition of parameters ////
|
4 |
|
|
//// ////
|
5 |
|
|
//// DESCRIPTION: ////
|
6 |
|
|
//// ////
|
7 |
|
|
//// ////
|
8 |
|
|
//// This file is part of the 10 Gigabit Ethernet IP core project ////
|
9 |
|
|
//// http://www.opencores.org/projects/ethmac10g/ ////
|
10 |
|
|
//// ////
|
11 |
|
|
//// AUTHOR(S): ////
|
12 |
|
|
//// Zheng Cao ////
|
13 |
|
|
//// ////
|
14 |
|
|
//////////////////////////////////////////////////////////////////////
|
15 |
|
|
//// ////
|
16 |
|
|
//// Copyright (c) 2005 AUTHORS. All rights reserved. ////
|
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 2005/12/25 16:43:10 Zheng Cao
|
45 |
|
|
//
|
46 |
|
|
//
|
47 |
|
|
//
|
48 |
|
|
//////////////////////////////////////////////////////////////////////
|
49 |
|
|
|
50 |
|
|
`define ALLONES 64'hffffffffffffffff
|
51 |
|
|
`define ALLONES8 8'hff
|
52 |
|
|
`define ALLZEROS 8'h00
|
53 |
|
|
|
54 |
|
|
///////////////////////////////////////////////
|
55 |
|
|
// Length parameters
|
56 |
|
|
///////////////////////////////////////////////
|
57 |
|
|
`define MAX_VALID_LENGTH 12'h0be
|
58 |
|
|
`define MAX_VALID_BITS_MORE 3'h6
|
59 |
|
|
`define MAX_TAG_LENGTH 12'h0bf
|
60 |
|
|
`define MAX_TAG_BITS_MORE 3'h2
|
61 |
|
|
`define MAX_JUMBO_LENGTH 12'h466
|
62 |
|
|
`define MIN_VALID_LENGTH 8'h08
|
63 |
|
|
///////////////////////////////////////////////
|
64 |
|
|
// Frame field parameters
|
65 |
|
|
///////////////////////////////////////////////
|
66 |
|
|
`define PREAMBLE 8'h55
|
67 |
|
|
`define START 8'hfb
|
68 |
|
|
`define TERMINATE 8'hfd
|
69 |
|
|
`define SFD 8'hd5
|
70 |
|
|
`define SEQUENCE 8'h9a
|
71 |
|
|
`define ERROR 8'hfe
|
72 |
|
|
`define TAG_SIGN 16'h0081//8100
|
73 |
|
|
`define PAUSE_SIGN 32'h01000888//8808
|
74 |
|
|
|
75 |
|
|
`define MULTICAST 48'h0180C2000001
|
76 |
|
|
`define BROADCAST 48'hffffffffffff
|
77 |
|
|
////////////////////////////////////////////////
|
78 |
|
|
// Frame bytes counter parameter
|
79 |
|
|
////////////////////////////////////////////////
|
80 |
|
|
`define COUNTER_WIDTH 12
|