| 1 |
-- The only purpose for this wrapper is to set sane defaults for the |
| 2 |
-- common_dcfifo generics. These defaults may be overridden as needed. |
| 3 |
|
| 4 |
library ieee; |
| 5 |
use ieee.std_logic_1164.all; |
| 6 |
|
| 7 |
library work; |
| 8 |
use work.common_dcfifo_p.all; |
| 9 |
|
| 10 |
entity rx_meta_fifo is |
| 11 |
generic ( |
| 12 |
ADD_RAM_OUTPUT_REGISTER : string := "OFF"; |
| 13 |
ADD_USEDW_MSB_BIT : string := "OFF"; |
| 14 |
CLOCKS_ARE_SYNCHRONIZED : string := "FALSE"; |
| 15 |
DELAY_RDUSEDW : natural := 1; |
| 16 |
DELAY_WRUSEDW : natural := 1; |
| 17 |
INTENDED_DEVICE_FAMILY : string := "Cyclone V"; |
| 18 |
LPM_NUMWORDS : natural := 32; |
| 19 |
LPM_SHOWAHEAD : string := "ON"; |
| 20 |
LPM_WIDTH : natural := 128; |
| 21 |
LPM_WIDTH_R : natural := 32; |
| 22 |
OVERFLOW_CHECKING : string := "ON"; |
| 23 |
RDSYNC_DELAYPIPE : natural := 5; |
| 24 |
READ_ACLR_SYNCH : string := "ON"; |
| 25 |
UNDERFLOW_CHECKING : string := "ON"; |
| 26 |
USE_EAB : string := "ON"; |
| 27 |
WRITE_ACLR_SYNCH : string := "ON"; |
| 28 |
WRSYNC_DELAYPIPE : natural := 5 |
| 29 |
); |
| 30 |
port ( |
| 31 |
aclr : in std_logic := '0'; |
| 32 |
data : in std_logic_vector(LPM_WIDTH-1 downto 0); |
| 33 |
rdclk : in std_logic; |
| 34 |
rdreq : in std_logic; |
| 35 |
wrclk : in std_logic; |
| 36 |
wrreq : in std_logic; |
| 37 |
q : out std_logic_vector(LPM_WIDTH_R-1 downto 0); |
| 38 |
rdempty : out std_logic; |
| 39 |
rdfull : out std_logic; |
| 40 |
rdusedw : out std_logic_vector(compute_rdusedw_high(LPM_NUMWORDS, |
| 41 |
LPM_WIDTH, |
| 42 |
LPM_WIDTH_R, |
| 43 |
ADD_USEDW_MSB_BIT) downto 0); |
| 44 |
wrempty : out std_logic; |
| 45 |
wrfull : out std_logic; |
| 46 |
wrusedw : out std_logic_vector(compute_wrusedw_high(LPM_NUMWORDS, |
| 47 |
ADD_USEDW_MSB_BIT) downto 0) |
| 48 |
--eccstatus : out std_logic_vector(1 downto 0) |
| 49 |
); |
| 50 |
end entity; |
| 51 |
|
| 52 |
architecture arch of rx_meta_fifo is |
| 53 |
|
| 54 |
begin |
| 55 |
|
| 56 |
U_common_dcfifo : entity work.common_dcfifo |
| 57 |
generic map ( |
| 58 |
ADD_RAM_OUTPUT_REGISTER => ADD_RAM_OUTPUT_REGISTER, |
| 59 |
ADD_USEDW_MSB_BIT => ADD_USEDW_MSB_BIT, |
| 60 |
CLOCKS_ARE_SYNCHRONIZED => CLOCKS_ARE_SYNCHRONIZED, |
| 61 |
DELAY_RDUSEDW => DELAY_RDUSEDW, |
| 62 |
DELAY_WRUSEDW => DELAY_WRUSEDW, |
| 63 |
INTENDED_DEVICE_FAMILY => INTENDED_DEVICE_FAMILY, |
| 64 |
--ENABLE_ECC => ENABLE_ECC, |
| 65 |
LPM_NUMWORDS => LPM_NUMWORDS, |
| 66 |
LPM_SHOWAHEAD => LPM_SHOWAHEAD, |
| 67 |
LPM_WIDTH => LPM_WIDTH, |
| 68 |
LPM_WIDTH_R => LPM_WIDTH_R, |
| 69 |
OVERFLOW_CHECKING => OVERFLOW_CHECKING, |
| 70 |
RDSYNC_DELAYPIPE => RDSYNC_DELAYPIPE, |
| 71 |
READ_ACLR_SYNCH => READ_ACLR_SYNCH, |
| 72 |
UNDERFLOW_CHECKING => UNDERFLOW_CHECKING, |
| 73 |
USE_EAB => USE_EAB, |
| 74 |
WRITE_ACLR_SYNCH => WRITE_ACLR_SYNCH, |
| 75 |
WRSYNC_DELAYPIPE => WRSYNC_DELAYPIPE |
| 76 |
) |
| 77 |
port map ( |
| 78 |
aclr => aclr, |
| 79 |
data => data, |
| 80 |
rdclk => rdclk, |
| 81 |
rdreq => rdreq, |
| 82 |
wrclk => wrclk, |
| 83 |
wrreq => wrreq, |
| 84 |
q => q, |
| 85 |
rdempty => rdempty, |
| 86 |
rdfull => rdfull, |
| 87 |
rdusedw => rdusedw, |
| 88 |
wrempty => wrempty, |
| 89 |
wrfull => wrfull, |
| 90 |
wrusedw => wrusedw |
| 91 |
--eccstatus => eccstatus |
| 92 |
); |
| 93 |
|
| 94 |
end architecture; |