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.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.vhd when simulating
00052 -- the core, bcm_emac_fifo. 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 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;
00083
00084
00085 architecture bcm_emac_fifo_a of bcm_emac_fifo is
00086 -- synthesis translate_off
00087
00088 component wrapped_bcm_emac_fifo
00089 port (
00090 din : in (8 downto 0);
00091 rd_clk : in ;
00092 rd_en : in ;
00093 rst : in ;
00094 wr_clk : in ;
00095 wr_en : in ;
00096 dout : out (8 downto 0);
00097 empty : out ;
00098 full : out );
00099 end component;
00100
00101 -- Configuration specification
00102 for all : wrapped_bcm_emac_fifo use entity XilinxCoreLib.fifo_generator_v3_3(behavioral)
00103 generic map(
00104 c_rd_freq => 12,
00105 c_wr_response_latency => 1,
00106 c_has_srst => 0,
00107 c_has_rd_data_count => 0,
00108 c_din_width => 9,
00109 c_has_wr_data_count => 0,
00110 c_implementation_type => 3,
00111 c_family => "virtex4",
00112 c_has_wr_rst => 0,
00113 c_wr_freq => 100,
00114 c_underflow_low => 0,
00115 c_has_meminit_file => 0,
00116 c_has_overflow => 0,
00117 c_preload_latency => 1,
00118 c_dout_width => 9,
00119 c_rd_depth => 2048,
00120 c_default_value => "BlankString",
00121 c_mif_file_name => "BlankString",
00122 c_has_underflow => 0,
00123 c_has_rd_rst => 0,
00124 c_has_almost_full => 0,
00125 c_has_rst => 1,
00126 c_data_count_width => 11,
00127 c_has_wr_ack => 0,
00128 c_use_ecc => 0,
00129 c_wr_ack_low => 0,
00130 c_common_clock => 0,
00131 c_rd_pntr_width => 11,
00132 c_has_almost_empty => 0,
00133 c_rd_data_count_width => 11,
00134 c_enable_rlocs => 0,
00135 c_wr_pntr_width => 11,
00136 c_overflow_low => 0,
00137 c_prog_empty_type => 0,
00138 c_optimization_mode => 0,
00139 c_wr_data_count_width => 11,
00140 c_preload_regs => 0,
00141 c_dout_rst_val => "0",
00142 c_has_data_count => 0,
00143 c_prog_full_thresh_negate_val => 2059,
00144 c_wr_depth => 2048,
00145 c_prog_empty_thresh_negate_val => 22,
00146 c_prog_empty_thresh_assert_val => 21,
00147 c_has_valid => 0,
00148 c_init_wr_pntr_val => 0,
00149 c_prog_full_thresh_assert_val => 2060,
00150 c_use_fifo16_flags => 0,
00151 c_has_backup => 0,
00152 c_valid_low => 0,
00153 c_prim_fifo_type => "2kx9",
00154 c_count_type => 0,
00155 c_prog_full_type => 0,
00156 c_memory_type => 4);
00157 -- synthesis translate_on
00158 begin
00159 -- synthesis translate_off
00160 U0 : wrapped_bcm_emac_fifo
00161 port map (
00162 din => din ,
00163 rd_clk => rd_clk,
00164 rd_en => rd_en,
00165 rst => rst ,
00166 wr_clk => wr_clk,
00167 wr_en => wr_en,
00168 dout => dout,
00169 empty => empty,
00170 full => full);
00171 -- synthesis translate_on
00172
00173 end bcm_emac_fifo_a;
00174