1 |
15 |
mikel262 |
--------------------------------------------------------------------------------
|
2 |
|
|
-- This file is owned and controlled by Xilinx and must be used --
|
3 |
|
|
-- solely for design, simulation, implementation and creation of --
|
4 |
|
|
-- design files limited to Xilinx devices or technologies. Use --
|
5 |
|
|
-- with non-Xilinx devices or technologies is expressly prohibited --
|
6 |
|
|
-- and immediately terminates your license. --
|
7 |
|
|
-- --
|
8 |
|
|
-- XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" --
|
9 |
|
|
-- SOLELY FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR --
|
10 |
|
|
-- XILINX DEVICES. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION --
|
11 |
|
|
-- AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION --
|
12 |
|
|
-- OR STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS --
|
13 |
|
|
-- IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT, --
|
14 |
|
|
-- AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE --
|
15 |
|
|
-- FOR YOUR IMPLEMENTATION. XILINX EXPRESSLY DISCLAIMS ANY --
|
16 |
|
|
-- WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE --
|
17 |
|
|
-- IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR --
|
18 |
|
|
-- REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF --
|
19 |
|
|
-- INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS --
|
20 |
|
|
-- FOR A PARTICULAR PURPOSE. --
|
21 |
|
|
-- --
|
22 |
|
|
-- Xilinx products are not intended for use in life support --
|
23 |
|
|
-- appliances, devices, or systems. Use in such applications are --
|
24 |
|
|
-- expressly prohibited. --
|
25 |
|
|
-- --
|
26 |
|
|
-- (c) Copyright 1995-2004 Xilinx, Inc. --
|
27 |
|
|
-- All rights reserved. --
|
28 |
|
|
--------------------------------------------------------------------------------
|
29 |
|
|
-- You must compile the wrapper file ram_xil.vhd when simulating
|
30 |
|
|
-- the core, ram_xil. When compiling the wrapper file, be sure to
|
31 |
|
|
-- reference the XilinxCoreLib VHDL simulation library. For detailed
|
32 |
|
|
-- instructions, please refer to the "CORE Generator Guide".
|
33 |
|
|
|
34 |
|
|
-- The synopsys directives "translate_off/translate_on" specified
|
35 |
|
|
-- below are supported by XST, FPGA Compiler II, Mentor Graphics and Synplicity
|
36 |
|
|
-- synthesis tools. Ensure they are correct for your synthesis tool(s).
|
37 |
|
|
|
38 |
|
|
-- synopsys translate_off
|
39 |
|
|
LIBRARY ieee;
|
40 |
|
|
USE ieee.std_logic_1164.ALL;
|
41 |
|
|
|
42 |
|
|
Library XilinxCoreLib;
|
43 |
|
|
ENTITY ram_xil IS
|
44 |
|
|
port (
|
45 |
|
|
addra: IN std_logic_VECTOR(5 downto 0);
|
46 |
|
|
addrb: IN std_logic_VECTOR(5 downto 0);
|
47 |
|
|
clka: IN std_logic;
|
48 |
|
|
clkb: IN std_logic;
|
49 |
|
|
dina: IN std_logic_VECTOR(9 downto 0);
|
50 |
|
|
dinb: IN std_logic_VECTOR(9 downto 0);
|
51 |
|
|
douta: OUT std_logic_VECTOR(9 downto 0);
|
52 |
|
|
wea: IN std_logic;
|
53 |
|
|
web: IN std_logic);
|
54 |
|
|
END ram_xil;
|
55 |
|
|
|
56 |
|
|
ARCHITECTURE ram_xil_a OF ram_xil IS
|
57 |
|
|
|
58 |
|
|
component wrapped_ram_xil
|
59 |
|
|
port (
|
60 |
|
|
addra: IN std_logic_VECTOR(5 downto 0);
|
61 |
|
|
addrb: IN std_logic_VECTOR(5 downto 0);
|
62 |
|
|
clka: IN std_logic;
|
63 |
|
|
clkb: IN std_logic;
|
64 |
|
|
dina: IN std_logic_VECTOR(9 downto 0);
|
65 |
|
|
dinb: IN std_logic_VECTOR(9 downto 0);
|
66 |
|
|
douta: OUT std_logic_VECTOR(9 downto 0);
|
67 |
|
|
wea: IN std_logic;
|
68 |
|
|
web: IN std_logic);
|
69 |
|
|
end component;
|
70 |
|
|
|
71 |
|
|
-- Configuration specification
|
72 |
|
|
for all : wrapped_ram_xil use entity XilinxCoreLib.blkmemdp_v6_1(behavioral)
|
73 |
|
|
generic map(
|
74 |
|
|
c_reg_inputsb => 0,
|
75 |
|
|
c_reg_inputsa => 0,
|
76 |
|
|
c_has_ndb => 0,
|
77 |
|
|
c_has_nda => 0,
|
78 |
|
|
c_ytop_addr => "1024",
|
79 |
|
|
c_has_rfdb => 0,
|
80 |
|
|
c_has_rfda => 0,
|
81 |
|
|
c_yena_is_high => 1,
|
82 |
|
|
c_ywea_is_high => 1,
|
83 |
|
|
c_yclka_is_rising => 1,
|
84 |
|
|
c_yhierarchy => "hierarchy1",
|
85 |
|
|
c_ysinita_is_high => 1,
|
86 |
|
|
c_ybottom_addr => "0",
|
87 |
|
|
c_width_b => 10,
|
88 |
|
|
c_width_a => 10,
|
89 |
|
|
c_sinita_value => "0",
|
90 |
|
|
c_sinitb_value => "0",
|
91 |
|
|
c_limit_data_pitch => 18,
|
92 |
|
|
c_write_modeb => 2,
|
93 |
|
|
c_write_modea => 2,
|
94 |
|
|
c_has_rdyb => 0,
|
95 |
|
|
c_has_rdya => 0,
|
96 |
|
|
c_yuse_single_primitive => 0,
|
97 |
|
|
c_addra_width => 6,
|
98 |
|
|
c_addrb_width => 6,
|
99 |
|
|
c_has_limit_data_pitch => 0,
|
100 |
|
|
c_default_data => "0",
|
101 |
|
|
c_pipe_stages_b => 0,
|
102 |
|
|
c_yweb_is_high => 1,
|
103 |
|
|
c_yenb_is_high => 1,
|
104 |
|
|
c_pipe_stages_a => 0,
|
105 |
|
|
c_yclkb_is_rising => 1,
|
106 |
|
|
c_yydisable_warnings => 1,
|
107 |
|
|
c_enable_rlocs => 0,
|
108 |
|
|
c_ysinitb_is_high => 1,
|
109 |
|
|
c_has_default_data => 1,
|
110 |
|
|
c_has_web => 1,
|
111 |
|
|
c_has_sinitb => 0,
|
112 |
|
|
c_has_wea => 1,
|
113 |
|
|
c_has_sinita => 0,
|
114 |
|
|
c_has_dinb => 1,
|
115 |
|
|
c_has_dina => 1,
|
116 |
|
|
c_ymake_bmm => 0,
|
117 |
|
|
c_has_enb => 0,
|
118 |
|
|
c_has_ena => 0,
|
119 |
|
|
c_depth_b => 64,
|
120 |
|
|
c_mem_init_file => "mif_file_16_1",
|
121 |
|
|
c_depth_a => 64,
|
122 |
|
|
c_has_doutb => 0,
|
123 |
|
|
c_has_douta => 1,
|
124 |
|
|
c_yprimitive_type => "16kx1");
|
125 |
|
|
BEGIN
|
126 |
|
|
|
127 |
|
|
U0 : wrapped_ram_xil
|
128 |
|
|
port map (
|
129 |
|
|
addra => addra,
|
130 |
|
|
addrb => addrb,
|
131 |
|
|
clka => clka,
|
132 |
|
|
clkb => clkb,
|
133 |
|
|
dina => dina,
|
134 |
|
|
dinb => dinb,
|
135 |
|
|
douta => douta,
|
136 |
|
|
wea => wea,
|
137 |
|
|
web => web);
|
138 |
|
|
END ram_xil_a;
|
139 |
|
|
|
140 |
|
|
-- synopsys translate_on
|
141 |
|
|
|