Line 6... |
Line 6... |
//// http://www.opencores.org/projects/ethmac/ ////
|
//// http://www.opencores.org/projects/ethmac/ ////
|
//// ////
|
//// ////
|
//// Author(s): ////
|
//// Author(s): ////
|
//// - Igor Mohor (igorM@opencores.org) ////
|
//// - Igor Mohor (igorM@opencores.org) ////
|
//// ////
|
//// ////
|
//// All additional information is avaliable in the Readme.txt ////
|
//// All additional information is available in the Readme.txt ////
|
//// file. ////
|
//// file. ////
|
//// ////
|
//// ////
|
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// Copyright (C) 2001, 2002 Authors ////
|
//// Copyright (C) 2001, 2002 Authors ////
|
Line 39... |
Line 39... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.6 2002/09/13 11:57:20 mohor
|
|
// New testbench. Thanks to Tadej M - "The Spammer".
|
|
//
|
// Revision 1.3 2002/07/19 13:57:53 mohor
|
// Revision 1.3 2002/07/19 13:57:53 mohor
|
// Testing environment also includes traffic cop, memory interface and host
|
// Testing environment also includes traffic cop, memory interface and host
|
// interface.
|
// interface.
|
//
|
//
|
// Revision 1.2 2002/05/03 10:22:17 mohor
|
// Revision 1.2 2002/05/03 10:22:17 mohor
|
Line 58... |
Line 61... |
|
|
|
|
|
|
//`define VERBOSE // if log files of device modules are written
|
//`define VERBOSE // if log files of device modules are written
|
|
|
//`define EXTERNAL_DMA // Using DMA
|
|
|
|
`define MULTICAST_XFR 0
|
`define MULTICAST_XFR 0
|
`define UNICAST_XFR 1
|
`define UNICAST_XFR 1
|
`define BROADCAST_XFR 2
|
`define BROADCAST_XFR 2
|
`define UNICAST_WRONG_XFR 3
|
`define UNICAST_WRONG_XFR 3
|
|
|
Line 132... |
Line 133... |
`define ETH_MIISTATUS `ETH_BASE + 32'h3C /* MII Status Register */
|
`define ETH_MIISTATUS `ETH_BASE + 32'h3C /* MII Status Register */
|
`define ETH_MAC_ADDR0 `ETH_BASE + 32'h40 /* MAC Individual Address Register 0 */
|
`define ETH_MAC_ADDR0 `ETH_BASE + 32'h40 /* MAC Individual Address Register 0 */
|
`define ETH_MAC_ADDR1 `ETH_BASE + 32'h44 /* MAC Individual Address Register 1 */
|
`define ETH_MAC_ADDR1 `ETH_BASE + 32'h44 /* MAC Individual Address Register 1 */
|
`define ETH_HASH_ADDR0 `ETH_BASE + 32'h48 /* Hash Register 0 */
|
`define ETH_HASH_ADDR0 `ETH_BASE + 32'h48 /* Hash Register 0 */
|
`define ETH_HASH_ADDR1 `ETH_BASE + 32'h4C /* Hash Register 1 */
|
`define ETH_HASH_ADDR1 `ETH_BASE + 32'h4C /* Hash Register 1 */
|
|
`define ETH_TX_CTRL `ETH_BASE + 32'h50 /* Tx Control Register */
|
|
|
|
|
/* MODER Register */
|
/* MODER Register */
|
`define ETH_MODER_RXEN 32'h00000001 /* Receive Enable */
|
`define ETH_MODER_RXEN 32'h00000001 /* Receive Enable */
|
`define ETH_MODER_TXEN 32'h00000002 /* Transmit Enable */
|
`define ETH_MODER_TXEN 32'h00000002 /* Transmit Enable */
|
`define ETH_MODER_NOPRE 32'h00000004 /* No Preamble */
|
`define ETH_MODER_NOPRE 32'h00000004 /* No Preamble */
|