Line 39... |
Line 39... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.9 2002/02/08 16:21:54 mohor
|
|
// Rx status is written back to the BD.
|
|
//
|
// Revision 1.8 2002/02/05 16:44:38 mohor
|
// Revision 1.8 2002/02/05 16:44:38 mohor
|
// Both rx and tx part are finished. Tested with wb_clk_i between 10 and 200
|
// Both rx and tx part are finished. Tested with wb_clk_i between 10 and 200
|
// MHz. Statuses, overrun, control frame transmission and reception still need
|
// MHz. Statuses, overrun, control frame transmission and reception still need
|
// to be fixed.
|
// to be fixed.
|
//
|
//
|
Line 96... |
Line 99... |
// specific elements.
|
// specific elements.
|
|
|
//`define ARTISAN_SDP // Core is going to be implemented in ASIC (using Artisan RAM)
|
//`define ARTISAN_SDP // Core is going to be implemented in ASIC (using Artisan RAM)
|
|
|
|
|
`define ETH_MODER_ADR 6'h0 // 0x0
|
`define ETH_MODER_ADR 8'h0 // 0x0
|
`define ETH_INT_SOURCE_ADR 6'h1 // 0x4
|
`define ETH_INT_SOURCE_ADR 8'h1 // 0x4
|
`define ETH_INT_MASK_ADR 6'h2 // 0x8
|
`define ETH_INT_MASK_ADR 8'h2 // 0x8
|
`define ETH_IPGT_ADR 6'h3 // 0xC
|
`define ETH_IPGT_ADR 8'h3 // 0xC
|
`define ETH_IPGR1_ADR 6'h4 // 0x10
|
`define ETH_IPGR1_ADR 8'h4 // 0x10
|
`define ETH_IPGR2_ADR 6'h5 // 0x14
|
`define ETH_IPGR2_ADR 8'h5 // 0x14
|
`define ETH_PACKETLEN_ADR 6'h6 // 0x18
|
`define ETH_PACKETLEN_ADR 8'h6 // 0x18
|
`define ETH_COLLCONF_ADR 6'h7 // 0x1C
|
`define ETH_COLLCONF_ADR 8'h7 // 0x1C
|
`define ETH_TX_BD_NUM_ADR 6'h8 // 0x20
|
`define ETH_TX_BD_NUM_ADR 8'h8 // 0x20
|
`define ETH_CTRLMODER_ADR 6'h9 // 0x24
|
`define ETH_CTRLMODER_ADR 8'h9 // 0x24
|
`define ETH_MIIMODER_ADR 6'hA // 0x28
|
`define ETH_MIIMODER_ADR 8'hA // 0x28
|
`define ETH_MIICOMMAND_ADR 6'hB // 0x2C
|
`define ETH_MIICOMMAND_ADR 8'hB // 0x2C
|
`define ETH_MIIADDRESS_ADR 6'hC // 0x30
|
`define ETH_MIIADDRESS_ADR 8'hC // 0x30
|
`define ETH_MIITX_DATA_ADR 6'hD // 0x34
|
`define ETH_MIITX_DATA_ADR 8'hD // 0x34
|
`define ETH_MIIRX_DATA_ADR 6'hE // 0x38
|
`define ETH_MIIRX_DATA_ADR 8'hE // 0x38
|
`define ETH_MIISTATUS_ADR 6'hF // 0x3C
|
`define ETH_MIISTATUS_ADR 8'hF // 0x3C
|
`define ETH_MAC_ADDR0_ADR 6'h10 // 0x40
|
`define ETH_MAC_ADDR0_ADR 8'h10 // 0x40
|
`define ETH_MAC_ADDR1_ADR 6'h11 // 0x44
|
`define ETH_MAC_ADDR1_ADR 8'h11 // 0x44
|
|
`define ETH_HASH0_ADR 8'h12 // 0x48
|
|
`define ETH_HASH1_ADR 8'h13 // 0x4C
|
|
|
|
|
|
|
`define ETH_MODER_DEF 32'h0000A800
|
`define ETH_MODER_DEF 32'h0000A800
|
`define ETH_INT_SOURCE_DEF 32'h00000000
|
`define ETH_INT_SOURCE_DEF 32'h00000000
|
Line 134... |
Line 139... |
`define ETH_MIITX_DATA_DEF 32'h00000000
|
`define ETH_MIITX_DATA_DEF 32'h00000000
|
`define ETH_MIIRX_DATA_DEF 32'h00000000
|
`define ETH_MIIRX_DATA_DEF 32'h00000000
|
`define ETH_MIISTATUS_DEF 32'h00000000
|
`define ETH_MIISTATUS_DEF 32'h00000000
|
`define ETH_MAC_ADDR0_DEF 32'h00000000
|
`define ETH_MAC_ADDR0_DEF 32'h00000000
|
`define ETH_MAC_ADDR1_DEF 32'h00000000
|
`define ETH_MAC_ADDR1_DEF 32'h00000000
|
|
`define ETH_HASH0_DEF 32'h00000000
|
|
`define ETH_HASH1_DEF 32'h00000000
|
|
|
|
|
|
|
`define ETH_TX_BD_NUM_DEF 8'h80
|
`define ETH_TX_BD_NUM_DEF 8'h80
|
|
|
|
|
// Outputs are registered (uncomment when needed)
|
// Outputs are registered (uncomment when needed)
|