1 //////////////////////////////////////////////////////////////////////
3 //// eth_avalon_dma_fifo.v ////
5 //// This file is a patch used in conjunction with the ////
6 //// Ethernet IP core project. ////
7 //// http://www.opencores.org/projects/ethmac/ ////
10 //// - Jakob Jones (jrjonsie@gmail.com) ////
12 //// All additional information is available in the Readme.txt ////
15 //////////////////////////////////////////////////////////////////////
16 module eth_avalon_dma_fifo #
( parameter DEPTH
=1024,
19 input [WIDTH
- 1:0] data
,
24 output [WIDTH
- 1:0] q
,
26 output [(clogb2(DEPTH
)-2):0] rdusedw
,
27 output [(clogb2(DEPTH
)-2):0] wrusedw
,
31 `include "eth_avalon_functions.v"
33 localparam AWIDTH
= clogb2(DEPTH
) - 1;
35 dcfifo
dcfifo_component (
47 // synopsys translate_off
51 // synopsys translate_on
54 // dcfifo_component.intended_device_family = "Cyclone II",
55 dcfifo_component.lpm_hint
= "MAXIMIZE_SPEED=7,",
56 dcfifo_component.lpm_numwords
= DEPTH
,
57 dcfifo_component.lpm_showahead
= "ON",
58 dcfifo_component.lpm_type
= "dcfifo",
59 dcfifo_component.lpm_width
= WIDTH
,
60 dcfifo_component.lpm_widthu
= AWIDTH
,
61 dcfifo_component.overflow_checking
= "OFF",
62 dcfifo_component.rdsync_delaypipe
= 5,
63 dcfifo_component.underflow_checking
= "OFF",
64 dcfifo_component.use_eab
= "ON",
65 dcfifo_component.write_aclr_synch
= "OFF",
66 dcfifo_component.wrsync_delaypipe
= 5;