otsdaq_prepmodernization  v2_05_02_indev
Ethernet_RAM_exdes.vhd
1 
2 
3 --------------------------------------------------------------------------------
4 --
5 -- Distributed Memory Generator Core - Top-level core wrapper
6 --
7 --------------------------------------------------------------------------------
8 --
9 -- (c) Copyright 2009 - 2010 Xilinx, Inc. All rights reserved.
10 --
11 -- This file contains confidential and proprietary information
12 -- of Xilinx, Inc. and is protected under U.S. and
13 -- international copyright and other intellectual property
14 -- laws.
15 --
16 -- DISCLAIMER
17 -- This disclaimer is not a license and does not grant any
18 -- rights to the materials distributed herewith. Except as
19 -- otherwise provided in a valid license issued to you by
20 -- Xilinx, and to the maximum extent permitted by applicable
21 -- law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND
22 -- WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES
23 -- AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING
24 -- BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON-
25 -- INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and
26 -- (2) Xilinx shall not be liable (whether in contract or tort,
27 -- including negligence, or under any other theory of
28 -- liability) for any loss or damage of any kind or nature
29 -- related to, arising under or in connection with these
30 -- materials, including for any direct, or any indirect,
31 -- special, incidental, or consequential loss or damage
32 -- (including loss of data, profits, goodwill, or any type of
33 -- loss or damage suffered as a result of any action brought
34 -- by a third party) even if such damage or loss was
35 -- reasonably foreseeable or Xilinx had been advised of the
36 -- possibility of the same.
37 --
38 -- CRITICAL APPLICATIONS
39 -- Xilinx products are not designed or intended to be fail-
40 -- safe, or for use in any application requiring fail-safe
41 -- performance, such as life-support or safety devices or
42 -- systems, Class III medical devices, nuclear facilities,
43 -- applications related to the deployment of airbags, or any
44 -- other applications that could lead to death, personal
45 -- injury, or severe property or environmental damage
46 -- (individually and collectively, "Critical
47 -- Applications"). Customer assumes the sole risk and
48 -- liability of any use of Xilinx products in Critical
49 -- Applications, subject only to applicable laws and
50 -- regulations governing limitations on product liability.
51 --
52 -- THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS
53 -- PART OF THIS FILE AT ALL TIMES.
54 --
55 --------------------------------------------------------------------------------
56 --
57 --
58 -- Description:
59 -- This is the actual DMG core wrapper.
60 --
61 --------------------------------------------------------------------------------
62 -- Library Declarations
63 --------------------------------------------------------------------------------
64 
65 library ieee;
66 use ieee.std_logic_1164.all;
67 use ieee.std_logic_arith.all;
68 use ieee.std_logic_unsigned.all;
69 
70 library unisim;
71 use unisim.vcomponents.all;
72 
73 --------------------------------------------------------------------------------
74 -- Entity Declaration
75 --------------------------------------------------------------------------------
77  PORT (
78  CLK : IN STD_LOGIC := '0';
79  WE : IN STD_LOGIC := '0';
80  SPO : OUT STD_LOGIC_VECTOR(64-1 downto 0);
81  A : IN STD_LOGIC_VECTOR(11-1-(4*0*boolean'pos(11>4)) downto 0)
82  := (OTHERS => '0');
83  D : IN STD_LOGIC_VECTOR(64-1 downto 0) := (OTHERS => '0')
84  );
85 
86 end Ethernet_RAM_exdes;
87 
88 
89 
90 architecture xilinx of Ethernet_RAM_exdes is
91 
92  SIGNAL CLK_i : std_logic;
93 
94  component Ethernet_RAM is
95  PORT (
96 
97  CLK : IN STD_LOGIC;
98  WE : IN STD_LOGIC;
99  SPO : OUT STD_LOGIC_VECTOR(64-1 downto 0);
100  A : IN STD_LOGIC_VECTOR(11-1-(4*0*boolean'pos(11>4)) downto 0)
101  := (OTHERS => '0');
102  D : IN STD_LOGIC_VECTOR(64-1 downto 0) := (OTHERS => '0')
103 
104 );
105  end component;
106 
107 
108 begin
109 
110  dmg0 : Ethernet_RAM
111  port map (
112 
113  CLK => CLK_i,
114  WE => WE,
115  SPO => SPO,
116  A => A,
117  D => D
118 
119  );
120 
121 clk_buf: bufg
122  PORT MAP(
123  i => CLK,
124  o => CLK_i
125  );
126 
127 
128 
129 end xilinx;