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