1 |
169 |
mohor |
//////////////////////////////////////////////////////////////////////
|
2 |
|
|
//// ////
|
3 |
|
|
//// File name: eth_phy_defines.v ////
|
4 |
|
|
//// ////
|
5 |
170 |
mohor |
//// This file is part of the Ethernet IP core project ////
|
6 |
169 |
mohor |
//// http://www.opencores.org/projects/ethmac/ ////
|
7 |
|
|
//// ////
|
8 |
|
|
//// Author(s): ////
|
9 |
|
|
//// - Tadej Markovic, tadej@opencores.org ////
|
10 |
|
|
//// ////
|
11 |
|
|
//// All additional information is available in the README.txt ////
|
12 |
|
|
//// file. ////
|
13 |
|
|
//// ////
|
14 |
|
|
//// ////
|
15 |
|
|
//////////////////////////////////////////////////////////////////////
|
16 |
|
|
//// ////
|
17 |
|
|
//// Copyright (C) 2002, Authors ////
|
18 |
|
|
//// ////
|
19 |
|
|
//// This source file may be used and distributed without ////
|
20 |
|
|
//// restriction provided that this copyright statement is not ////
|
21 |
|
|
//// removed from the file and that any derivative work contains ////
|
22 |
|
|
//// the original copyright notice and the associated disclaimer. ////
|
23 |
|
|
//// ////
|
24 |
|
|
//// This source file is free software; you can redistribute it ////
|
25 |
|
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
26 |
|
|
//// Public License as published by the Free Software Foundation; ////
|
27 |
|
|
//// either version 2.1 of the License, or (at your option) any ////
|
28 |
|
|
//// later version. ////
|
29 |
|
|
//// ////
|
30 |
|
|
//// This source is distributed in the hope that it will be ////
|
31 |
|
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
32 |
|
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
33 |
|
|
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
34 |
|
|
//// details. ////
|
35 |
|
|
//// ////
|
36 |
|
|
//// You should have received a copy of the GNU Lesser General ////
|
37 |
|
|
//// Public License along with this source; if not, download it ////
|
38 |
|
|
//// from http://www.opencores.org/lgpl.shtml ////
|
39 |
|
|
//// ////
|
40 |
|
|
//////////////////////////////////////////////////////////////////////
|
41 |
|
|
//
|
42 |
|
|
// CVS Revision History
|
43 |
|
|
//
|
44 |
|
|
// $Log: not supported by cvs2svn $
|
45 |
170 |
mohor |
// Revision 1.1 2002/09/13 11:57:20 mohor
|
46 |
|
|
// New testbench. Thanks to Tadej M - "The Spammer".
|
47 |
169 |
mohor |
//
|
48 |
|
|
//
|
49 |
170 |
mohor |
//
|
50 |
169 |
mohor |
|
51 |
|
|
// Address of PHY device (LXT971A)
|
52 |
|
|
`define ETH_PHY_ADDR 5'h01
|
53 |
|
|
|
54 |
|
|
// LED/Configuration pins on PHY device - see the specification, page 26, table 8
|
55 |
|
|
// Initial set of bits 13, 12 and 8 of Control Register
|
56 |
|
|
`define LED_CFG1 1'b0
|
57 |
|
|
`define LED_CFG2 1'b0
|
58 |
|
|
`define LED_CFG3 1'b1
|
59 |
|
|
|
60 |
|
|
// Supported speeds and physical ports - see the specification, page 67, table 41
|
61 |
|
|
// Set bits 15 to 9 of Status Register
|
62 |
|
|
`define SUPPORTED_SPEED_AND_PORT 7'h3F
|
63 |
|
|
|
64 |
|
|
// Extended status register (address 15)
|
65 |
|
|
// Set bit 8 of Status Register
|
66 |
|
|
`define EXTENDED_STATUS 1'b0
|
67 |
|
|
|
68 |
|
|
// Default status bits - see the specification, page 67, table 41
|
69 |
|
|
// Set bits 6 to 0 of Status Register
|
70 |
|
|
`define DEFAULT_STATUS 7'h09
|
71 |
|
|
|
72 |
|
|
// PHY ID 1 number - see the specification, page 68, table 42
|
73 |
|
|
// Set bits of Phy Id Register 1
|
74 |
|
|
`define PHY_ID1 16'h0013
|
75 |
|
|
|
76 |
|
|
// PHY ID 2 number - see the specification, page 68, table 43
|
77 |
|
|
// Set bits 15 to 10 of Phy Id Register 2
|
78 |
|
|
`define PHY_ID2 6'h1E
|
79 |
|
|
|
80 |
|
|
// Manufacturer MODEL number - see the specification, page 68, table 43
|
81 |
|
|
// Set bits 9 to 4 of Phy Id Register 2
|
82 |
|
|
`define MAN_MODEL_NUM 6'h0E
|
83 |
|
|
|
84 |
|
|
// Manufacturer REVISION number - see the specification, page 68, table 43
|
85 |
|
|
// Set bits 3 to 0 of Phy Id Register 2
|
86 |
|
|
`define MAN_REVISION_NUM 4'h2
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|