OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [boards/] [xilinx/] [ml501/] [rtl/] [verilog/] [include/] [ethmac_defines.v] - Diff between revs 439 and 485

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 439 Rev 485
Line 43... Line 43...
//`define ETH_BIST                    // Bist for usage with Virtual Silicon RAMS
//`define ETH_BIST                    // Bist for usage with Virtual Silicon RAMS
 
 
`define ETH_MBIST_CTRL_WIDTH 3        // width of MBIST control bus
`define ETH_MBIST_CTRL_WIDTH 3        // width of MBIST control bus
 
 
// Generic FIFO implementation - hopefully synthesizable with Synplify
// Generic FIFO implementation - hopefully synthesizable with Synplify
`define ETH_FIFO_GENERIC
//`define ETH_FIFO_GENERIC
// Ethernet implemented in Xilinx Chips (uncomment following lines)
// Ethernet implemented in Xilinx Chips (uncomment following lines)
// `define ETH_FIFO_XILINX             // Use Xilinx distributed ram for tx and rx fifo
 `define ETH_FIFO_XILINX             // Use Xilinx distributed ram for tx and rx fifo
// `define ETH_XILINX_RAMB4            // Selection of the used memory for Buffer descriptors
// `define ETH_XILINX_RAMB4            // Selection of the used memory for Buffer descriptors
                                      // Core is going to be implemented in Virtex FPGA and contains Virtex 
                                      // Core is going to be implemented in Virtex FPGA and contains Virtex 
                                      // specific elements. 
                                      // specific elements. 
 
 
// Ethernet implemented in Altera Chips (uncomment following lines)
// Ethernet implemented in Altera Chips (uncomment following lines)
Line 184... Line 184...
// Settings for TX FIFO
// Settings for TX FIFO
`define ETH_TX_FIFO_DATA_WIDTH 32
`define ETH_TX_FIFO_DATA_WIDTH 32
 
 
// Defines for ethernet TX fifo size - impacts FPGA resource usage
// Defines for ethernet TX fifo size - impacts FPGA resource usage
//`define ETH_TX_FULL_PACKET_FIFO  // Full 1500 byte TX buffer - uncomment this
//`define ETH_TX_FULL_PACKET_FIFO  // Full 1500 byte TX buffer - uncomment this
//`define ETH_TX_256BYTE_FIFO  // 256 byte TX buffer - uncomment this
//`define ETH_TX_128BYTE_FIFO  // 128 byte TX buffer - uncomment this
 
`define ETH_TX_256BYTE_FIFO  // 256 byte TX buffer - uncomment this
//`define ETH_TX_512BYTE_FIFO  // 512 byte TX buffer - uncomment this
//`define ETH_TX_512BYTE_FIFO  // 512 byte TX buffer - uncomment this
`define ETH_TX_1KBYTE_FIFO     // 1024 byte TX buffer - uncomment this
//`define ETH_TX_1KBYTE_FIFO     // 1024 byte TX buffer - uncomment this
 
 
`ifdef  ETH_TX_FULL_PACKET_FIFO
`ifdef  ETH_TX_FULL_PACKET_FIFO
 `define ETH_TX_FIFO_CNT_WIDTH  9
 `define ETH_TX_FIFO_CNT_WIDTH  9
 `define ETH_TX_FIFO_DEPTH      375
 `define ETH_TX_FIFO_DEPTH      375
`else
`else
Line 204... Line 205...
  `else
  `else
   `ifdef ETH_TX_256BYTE_FIFO
   `ifdef ETH_TX_256BYTE_FIFO
    `define ETH_TX_FIFO_CNT_WIDTH  6
    `define ETH_TX_FIFO_CNT_WIDTH  6
    `define ETH_TX_FIFO_DEPTH      64
    `define ETH_TX_FIFO_DEPTH      64
   `else
   `else
 
    `ifdef ETH_TX_128BYTE_FIFO
 
     `define ETH_TX_FIFO_CNT_WIDTH  5
 
     `define ETH_TX_FIFO_DEPTH      32
 
    `else
// Default is 64 bytes
// Default is 64 bytes
    `define ETH_TX_FIFO_CNT_WIDTH  4
    `define ETH_TX_FIFO_CNT_WIDTH  4
    `define ETH_TX_FIFO_DEPTH      16
    `define ETH_TX_FIFO_DEPTH      16
   `endif
   `endif
  `endif
  `endif
 
  `endif
 `endif // !`ifdef ETH_TX_512BYTE_FIFO
 `endif // !`ifdef ETH_TX_512BYTE_FIFO
`endif // !`ifdef ETH_TX_FULL_PACKET_FIFO
`endif // !`ifdef ETH_TX_FULL_PACKET_FIFO
 
 
 
 
 
 
// Settings for RX FIFO
// Settings for RX FIFO
`define ETH_RX_FIFO_CNT_WIDTH  8
//`define ETH_RX_FIFO_CNT_WIDTH  8
`define ETH_RX_FIFO_DEPTH      256
//`define ETH_RX_FIFO_DEPTH      256
//`define ETH_RX_FIFO_CNT_WIDTH  7
//`define ETH_RX_FIFO_CNT_WIDTH  7
//`define ETH_RX_FIFO_DEPTH      128
//`define ETH_RX_FIFO_DEPTH      128
//`define ETH_RX_FIFO_CNT_WIDTH  6
//`define ETH_RX_FIFO_CNT_WIDTH  6
//`define ETH_RX_FIFO_DEPTH      64
//`define ETH_RX_FIFO_DEPTH      64
//`define ETH_RX_FIFO_CNT_WIDTH  5
//`define ETH_RX_FIFO_CNT_WIDTH  5
//`define ETH_RX_FIFO_DEPTH      32
//`define ETH_RX_FIFO_DEPTH      32
//`define ETH_RX_FIFO_CNT_WIDTH  4
`define ETH_RX_FIFO_CNT_WIDTH  4
//`define ETH_RX_FIFO_DEPTH      16
`define ETH_RX_FIFO_DEPTH      16
 
 
`define ETH_RX_FIFO_DATA_WIDTH 32
`define ETH_RX_FIFO_DATA_WIDTH 32
 
 
// Burst length
// Burst length
`define BURST_4BEAT
`define BURST_4BEAT
Line 241... Line 245...
//`define ETH_BURST_CNT_WIDTH    7    // The counter must be width enough to count to ETH_BURST_LENGTH
//`define ETH_BURST_CNT_WIDTH    7    // The counter must be width enough to count to ETH_BURST_LENGTH
 
 
// Undefine this to enable bursting for RX (writing to memory)
// Undefine this to enable bursting for RX (writing to memory)
`define ETH_RX_BURST_EN
`define ETH_RX_BURST_EN
 
 
 
 
// WISHBONE interface is Revision B3 compliant (uncomment when needed)
// WISHBONE interface is Revision B3 compliant (uncomment when needed)
`define ETH_WISHBONE_B3
`define ETH_WISHBONE_B3
 
 
// Hack where the transmit logic polls each of the TX buffers instead of having to keep track of what's going on
// Hack where the transmit logic polls each of the TX buffers instead of having to keep track of what's going on
//`define TXBD_POLL
//`define TXBD_POLL
 
 
// Define this to allow reading of the Wishbone control state machine on reg
// Define this to allow reading of the Wishbone control state machine on reg
// address 0x58
// address 0x58
`define WISHBONE_DEBUG
 
 No newline at end of file
 No newline at end of file
 
//`define WISHBONE_DEBUG
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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