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/ethbuf.vhd,v $ *
00015 --* $Revision: 2.1.2.4 $ *
00016 --* $Name: dev $ *
00017 --* $Author: mniegl $ *
00018 --* $Date: 2008/11/03 17:57:46 $ *
00019
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-2006 Xilinx, Inc. --
00050 -- All rights reserved. --
00051 --------------------------------------------------------------------------------
00052 -- You must compile the wrapper file ethbuf.vhd when simulating
00053 -- the core, ethbuf. 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 synopsys directives "translate_off/translate_on" specified
00058 -- below are supported by XST, FPGA Compiler II, 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 -- synopsys translate_off
00066 library XilinxCoreLib;
00067 -- synopsys translate_on
00068
00069 entity ethbuf is
00070 port (
00071 addra : in (8 downto 0);
00072 addrb : in (4 downto 0);
00073 clka : in ;
00074 clkb : in ;
00075 dinb : in (127 downto 0);
00076 douta : out (7 downto 0);
00077 ena : in ;
00078 enb : in ;
00079 web : in
00080 );
00081 end ethbuf;
00082
00083
00084 architecture ethbuf_arc of ethbuf is
00085 -- synopsys translate_off
00086
00087 component wrapped_ethbuf
00088 port (
00089 addra : in (8 downto 0);
00090 addrb : in (4 downto 0);
00091 clka : in ;
00092 clkb : in ;
00093 dinb : in (127 downto 0);
00094 douta : out (7 downto 0);
00095 ena : in ;
00096 enb : in ;
00097 web : in );
00098 end component;
00099
00100
00101 for all : wrapped_ethbuf use entity XilinxCoreLib.blkmemdp_v6_3(behavioral)
00102 generic map(
00103 c_reg_inputsb => 0,
00104 c_reg_inputsa => 0,
00105 c_has_ndb => 0,
00106 c_has_nda => 0,
00107 c_ytop_addr => "1024",
00108 c_has_rfdb => 0,
00109 c_has_rfda => 0,
00110 c_ywea_is_high => 1,
00111 c_yena_is_high => 1,
00112 c_yclka_is_rising => 1,
00113 c_yhierarchy => "hierarchy1",
00114 c_ysinita_is_high => 1,
00115 c_ybottom_addr => "0",
00116 c_width_b => 128,
00117 c_width_a => 8,
00118 c_sinita_value => "0",
00119 c_sinitb_value => "0",
00120 c_limit_data_pitch => 18,
00121 c_write_modeb => 0,
00122 c_write_modea => 0,
00123 c_has_rdyb => 0,
00124 c_yuse_single_primitive => 0,
00125 c_has_rdya => 0,
00126 c_addra_width => 9,
00127 c_addrb_width => 5,
00128 c_has_limit_data_pitch => 0,
00129 c_default_data => "10",
00130 c_pipe_stages_b => 0,
00131 c_yweb_is_high => 1,
00132 c_yenb_is_high => 1,
00133 c_pipe_stages_a => 0,
00134 c_yclkb_is_rising => 1,
00135 c_yydisable_warnings => 1,
00136 c_enable_rlocs => 0,
00137 c_ysinitb_is_high => 1,
00138 c_has_web => 1,
00139 c_has_default_data => 1,
00140 c_has_sinitb => 0,
00141 c_has_wea => 0,
00142 c_has_sinita => 0,
00143 c_has_dinb => 1,
00144 c_has_dina => 0,
00145 c_ymake_bmm => 0,
00146 c_sim_collision_check => "NONE",
00147 c_has_enb => 1,
00148 c_has_ena => 1,
00149 c_depth_b => 24,
00150 c_mem_init_file => "mif_file_16_1",
00151 c_depth_a => 384,
00152 c_has_doutb => 0,
00153 c_has_douta => 1,
00154 c_yprimitive_type => "32kx1"
00155 );
00156 -- synopsys translate_on
00157 begin
00158 -- synopsys translate_off
00159
00160 U0 : wrapped_ethbuf
00161 port map (
00162 addra => addra,
00163 addrb => addrb,
00164 clka => clka,
00165 clkb => clkb,
00166 dinb => dinb,
00167 douta => douta,
00168 ena => ena ,
00169 enb => enb ,
00170 web => web
00171 );
00172 -- synopsys translate_on
00173
00174 end ethbuf_arc;
00175