1 |
41 |
rrred |
--------------------------------------------------------------------------------
|
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-2009 Xilinx, Inc. --
|
27 |
|
|
-- All rights reserved. --
|
28 |
|
|
--------------------------------------------------------------------------------
|
29 |
|
|
-- You must compile the wrapper file vram.vhd when simulating
|
30 |
|
|
-- the core, vram. 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 Help".
|
33 |
|
|
|
34 |
|
|
-- The synthesis directives "translate_off/translate_on" specified
|
35 |
|
|
-- below are supported by Xilinx, Mentor Graphics and Synplicity
|
36 |
|
|
-- synthesis tools. Ensure they are correct for your synthesis tool(s).
|
37 |
|
|
|
38 |
|
|
LIBRARY ieee;
|
39 |
|
|
USE ieee.std_logic_1164.ALL;
|
40 |
|
|
-- synthesis translate_off
|
41 |
|
|
Library XilinxCoreLib;
|
42 |
|
|
-- synthesis translate_on
|
43 |
|
|
ENTITY vram IS
|
44 |
|
|
port (
|
45 |
|
|
clka: IN std_logic;
|
46 |
|
|
wea: IN std_logic_VECTOR(0 downto 0);
|
47 |
|
|
addra: IN std_logic_VECTOR(12 downto 0);
|
48 |
|
|
dina: IN std_logic_VECTOR(7 downto 0);
|
49 |
|
|
douta: OUT std_logic_VECTOR(7 downto 0);
|
50 |
|
|
clkb: IN std_logic;
|
51 |
|
|
web: IN std_logic_VECTOR(0 downto 0);
|
52 |
|
|
addrb: IN std_logic_VECTOR(12 downto 0);
|
53 |
|
|
dinb: IN std_logic_VECTOR(7 downto 0);
|
54 |
|
|
doutb: OUT std_logic_VECTOR(7 downto 0));
|
55 |
|
|
END vram;
|
56 |
|
|
|
57 |
|
|
ARCHITECTURE vram_a OF vram IS
|
58 |
|
|
-- synthesis translate_off
|
59 |
|
|
component wrapped_vram
|
60 |
|
|
port (
|
61 |
|
|
clka: IN std_logic;
|
62 |
|
|
wea: IN std_logic_VECTOR(0 downto 0);
|
63 |
|
|
addra: IN std_logic_VECTOR(12 downto 0);
|
64 |
|
|
dina: IN std_logic_VECTOR(7 downto 0);
|
65 |
|
|
douta: OUT std_logic_VECTOR(7 downto 0);
|
66 |
|
|
clkb: IN std_logic;
|
67 |
|
|
web: IN std_logic_VECTOR(0 downto 0);
|
68 |
|
|
addrb: IN std_logic_VECTOR(12 downto 0);
|
69 |
|
|
dinb: IN std_logic_VECTOR(7 downto 0);
|
70 |
|
|
doutb: OUT std_logic_VECTOR(7 downto 0));
|
71 |
|
|
end component;
|
72 |
|
|
|
73 |
|
|
-- Configuration specification
|
74 |
|
|
for all : wrapped_vram use entity XilinxCoreLib.blk_mem_gen_v4_3(behavioral)
|
75 |
|
|
generic map(
|
76 |
|
|
c_has_regceb => 0,
|
77 |
|
|
c_has_regcea => 0,
|
78 |
|
|
c_mem_type => 2,
|
79 |
|
|
c_rstram_b => 0,
|
80 |
|
|
c_rstram_a => 0,
|
81 |
|
|
c_has_injecterr => 0,
|
82 |
|
|
c_rst_type => "SYNC",
|
83 |
|
|
c_prim_type => 1,
|
84 |
|
|
c_read_width_b => 8,
|
85 |
|
|
c_initb_val => "0",
|
86 |
|
|
c_family => "spartan3",
|
87 |
|
|
c_read_width_a => 8,
|
88 |
|
|
c_disable_warn_bhv_coll => 0,
|
89 |
|
|
c_use_softecc => 0,
|
90 |
|
|
c_write_mode_b => "WRITE_FIRST",
|
91 |
|
|
c_init_file_name => "no_coe_file_loaded",
|
92 |
|
|
c_write_mode_a => "WRITE_FIRST",
|
93 |
|
|
c_mux_pipeline_stages => 0,
|
94 |
|
|
c_has_softecc_output_regs_b => 0,
|
95 |
|
|
c_has_mem_output_regs_b => 0,
|
96 |
|
|
c_has_mem_output_regs_a => 0,
|
97 |
|
|
c_load_init_file => 0,
|
98 |
|
|
c_xdevicefamily => "spartan3e",
|
99 |
|
|
c_write_depth_b => 6143,
|
100 |
|
|
c_write_depth_a => 6143,
|
101 |
|
|
c_has_rstb => 0,
|
102 |
|
|
c_has_rsta => 0,
|
103 |
|
|
c_has_mux_output_regs_b => 0,
|
104 |
|
|
c_inita_val => "0",
|
105 |
|
|
c_has_mux_output_regs_a => 0,
|
106 |
|
|
c_addra_width => 13,
|
107 |
|
|
c_has_softecc_input_regs_a => 0,
|
108 |
|
|
c_addrb_width => 13,
|
109 |
|
|
c_default_data => "0",
|
110 |
|
|
c_use_ecc => 0,
|
111 |
|
|
c_algorithm => 1,
|
112 |
|
|
c_disable_warn_bhv_range => 0,
|
113 |
|
|
c_write_width_b => 8,
|
114 |
|
|
c_write_width_a => 8,
|
115 |
|
|
c_read_depth_b => 6143,
|
116 |
|
|
c_read_depth_a => 6143,
|
117 |
|
|
c_byte_size => 9,
|
118 |
|
|
c_sim_collision_check => "ALL",
|
119 |
|
|
c_common_clk => 0,
|
120 |
|
|
c_wea_width => 1,
|
121 |
|
|
c_has_enb => 0,
|
122 |
|
|
c_web_width => 1,
|
123 |
|
|
c_has_ena => 0,
|
124 |
|
|
c_use_byte_web => 0,
|
125 |
|
|
c_use_byte_wea => 0,
|
126 |
|
|
c_rst_priority_b => "CE",
|
127 |
|
|
c_rst_priority_a => "CE",
|
128 |
|
|
c_use_default_data => 0);
|
129 |
|
|
-- synthesis translate_on
|
130 |
|
|
BEGIN
|
131 |
|
|
-- synthesis translate_off
|
132 |
|
|
U0 : wrapped_vram
|
133 |
|
|
port map (
|
134 |
|
|
clka => clka,
|
135 |
|
|
wea => wea,
|
136 |
|
|
addra => addra,
|
137 |
|
|
dina => dina,
|
138 |
|
|
douta => douta,
|
139 |
|
|
clkb => clkb,
|
140 |
|
|
web => web,
|
141 |
|
|
addrb => addrb,
|
142 |
|
|
dinb => dinb,
|
143 |
|
|
doutb => doutb);
|
144 |
|
|
-- synthesis translate_on
|
145 |
|
|
|
146 |
|
|
END vram_a;
|
147 |
|
|
|