00001 --**************************************************************
00002 --* *
00003 --* The source code for the ATLAS BCM "AAA" FPGA is made *
00004 --* available via the GNU General Public License (GPL) *
00005 --* unless otherwise stated below. *
00006 --* *
00007 --* In case of problems/questions/bug reports etc. please *
00008 --* contact michael.niegl@cern.ch *
00009 --* *
00010 --**************************************************************
00011
00012 --**************************************************************
00013 --* *
00014 --* $Source: /local/reps/bcmfpga/bcm_aaa/bcm_aaa/eth/bcm_emac_fifo_rx.vhd,v $
00015 --* $Revision: 2.1.2.3 $ *
00016 --* $Name: dev $ *
00017 --* $Author: mniegl $ *
00018 --* $Date: 2008/11/03 17:57:46 $ *
00019
00020
00021 --* *
00022 --**************************************************************
00023 --------------------------------------------------------------------------------
00024 -- This file is owned and controlled by Xilinx and must be used --
00025 -- solely for design, simulation, implementation and creation of --
00026 -- design files limited to Xilinx devices or technologies. Use --
00027 -- with non-Xilinx devices or technologies is expressly prohibited --
00028 -- and immediately terminates your license. --
00029 -- --
00030 -- XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" --
00031 -- SOLELY FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR --
00032 -- XILINX DEVICES. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION --
00033 -- AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION --
00034 -- OR STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS --
00035 -- IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT, --
00036 -- AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE --
00037 -- FOR YOUR IMPLEMENTATION. XILINX EXPRESSLY DISCLAIMS ANY --
00038 -- WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE --
00039 -- IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR --
00040 -- REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF --
00041 -- INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS --
00042 -- FOR A PARTICULAR PURPOSE. --
00043 -- --
00044 -- Xilinx products are not intended for use in life support --
00045 -- appliances, devices, or systems. Use in such applications are --
00046 -- expressly prohibited. --
00047 -- --
00048 -- (c) Copyright 1995-2007 Xilinx, Inc. --
00049 -- All rights reserved. --
00050 --------------------------------------------------------------------------------
00051 -- You must compile the wrapper file bcm_emac_fifo_rx.vhd when simulating
00052 -- the core, bcm_emac_fifo_rx. When compiling the wrapper file, be sure to
00053 -- reference the XilinxCoreLib VHDL simulation library. For detailed
00054 -- instructions, please refer to the "CORE Generator Help".
00055
00056 -- The synthesis directives "translate_off/translate_on" specified
00057 -- below are supported by Xilinx, Mentor Graphics and Synplicity
00058 -- synthesis tools. Ensure they are correct for your synthesis tool(s).
00059
00060
00061 library ieee;
00062
00063 use ieee.std_logic_1164.all;
00064 -- synthesis translate_off
00065 library XilinxCoreLib;
00066 -- synthesis translate_on
00067
00068
00069
00070 entity bcm_emac_fifo_rx is
00071 port (
00072 din : in (8 downto 0);
00073 rd_clk : in ;
00074 rd_en : in ;
00075 rst : in ;
00076 wr_clk : in ;
00077 wr_en : in ;
00078 dout : out (8 downto 0);
00079 empty : out ;
00080 full : out
00081 );
00082 end bcm_emac_fifo_rx;
00083
00084
00085
00086
00087 architecture bcm_emac_fifo_rx_a of bcm_emac_fifo_rx is
00088 -- synthesis translate_off
00089
00090 component wrapped_bcm_emac_fifo_rx
00091 port (
00092 din : in (8 downto 0);
00093 rd_clk : in ;
00094 rd_en : in ;
00095 rst : in ;
00096 wr_clk : in ;
00097 wr_en : in ;
00098 dout : out (8 downto 0);
00099 empty : out ;
00100 full : out );
00101 end component;
00102
00103 -- Configuration specification
00104 for all : wrapped_bcm_emac_fifo_rx use entity XilinxCoreLib.fifo_generator_v3_3(behavioral)
00105 generic map(
00106 c_rd_freq => 100,
00107 c_wr_response_latency => 1,
00108 c_has_srst => 0,
00109 c_has_rd_data_count => 0,
00110 c_din_width => 9,
00111 c_has_wr_data_count => 0,
00112 c_implementation_type => 3,
00113 c_family => "virtex4",
00114 c_has_wr_rst => 0,
00115 c_wr_freq => 12,
00116 c_underflow_low => 0,
00117 c_has_meminit_file => 0,
00118 c_has_overflow => 0,
00119 c_preload_latency => 1,
00120 c_dout_width => 9,
00121 c_rd_depth => 2048,
00122 c_default_value => "BlankString",
00123 c_mif_file_name => "BlankString",
00124 c_has_underflow => 0,
00125 c_has_rd_rst => 0,
00126 c_has_almost_full => 0,
00127 c_has_rst => 1,
00128 c_data_count_width => 11,
00129 c_has_wr_ack => 0,
00130 c_use_ecc => 0,
00131 c_wr_ack_low => 0,
00132 c_common_clock => 0,
00133 c_rd_pntr_width => 11,
00134 c_has_almost_empty => 0,
00135 c_rd_data_count_width => 11,
00136 c_enable_rlocs => 0,
00137 c_wr_pntr_width => 11,
00138 c_overflow_low => 0,
00139 c_prog_empty_type => 0,
00140 c_optimization_mode => 0,
00141 c_wr_data_count_width => 11,
00142 c_preload_regs => 0,
00143 c_dout_rst_val => "0",
00144 c_has_data_count => 0,
00145 c_prog_full_thresh_negate_val => 2036,
00146 c_wr_depth => 2048,
00147 c_prog_empty_thresh_negate_val => 7,
00148 c_prog_empty_thresh_assert_val => 6,
00149 c_has_valid => 0,
00150 c_init_wr_pntr_val => 0,
00151 c_prog_full_thresh_assert_val => 2037,
00152 c_use_fifo16_flags => 0,
00153 c_has_backup => 0,
00154 c_valid_low => 0,
00155 c_prim_fifo_type => "2kx9" ,
00156 c_count_type => 0,
00157 c_prog_full_type => 0,
00158 c_memory_type => 4);
00159 -- synthesis translate_on
00160 begin
00161 -- synthesis translate_off
00162 U0 : wrapped_bcm_emac_fifo_rx
00163 port map (
00164 din => din ,
00165 rd_clk => rd_clk,
00166 rd_en => rd_en,
00167 rst => rst ,
00168 wr_clk => wr_clk,
00169 wr_en => wr_en,
00170 dout => dout,
00171 empty => empty,
00172 full => full);
00173 -- synthesis translate_on
00174
00175 end bcm_emac_fifo_rx_a;
00176