1 |
5 |
gajos |
--------------------------------------------------------------------------------
|
2 |
|
|
-- This file is owned and controlled by Xilinx and must be used solely --
|
3 |
|
|
-- for design, simulation, implementation and creation of design files --
|
4 |
|
|
-- limited to Xilinx devices or technologies. Use with non-Xilinx --
|
5 |
|
|
-- devices or technologies is expressly prohibited and immediately --
|
6 |
|
|
-- terminates your license. --
|
7 |
|
|
-- --
|
8 |
|
|
-- XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" SOLELY --
|
9 |
|
|
-- FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR XILINX DEVICES. BY --
|
10 |
|
|
-- PROVIDING THIS DESIGN, CODE, OR INFORMATION AS ONE POSSIBLE --
|
11 |
|
|
-- IMPLEMENTATION OF THIS FEATURE, APPLICATION OR STANDARD, XILINX IS --
|
12 |
|
|
-- MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION IS FREE FROM ANY --
|
13 |
|
|
-- CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE FOR OBTAINING ANY --
|
14 |
|
|
-- RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION. XILINX EXPRESSLY --
|
15 |
|
|
-- DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE --
|
16 |
|
|
-- IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR --
|
17 |
|
|
-- REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF --
|
18 |
|
|
-- INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A --
|
19 |
|
|
-- PARTICULAR PURPOSE. --
|
20 |
|
|
-- --
|
21 |
|
|
-- Xilinx products are not intended for use in life support appliances, --
|
22 |
|
|
-- devices, or systems. Use in such applications are expressly --
|
23 |
|
|
-- prohibited. --
|
24 |
|
|
-- --
|
25 |
|
|
-- (c) Copyright 1995-2015 Xilinx, Inc. --
|
26 |
|
|
-- All rights reserved. --
|
27 |
|
|
--------------------------------------------------------------------------------
|
28 |
|
|
|
29 |
|
|
--------------------------------------------------------------------------------
|
30 |
|
|
-- Generated from core with identifier: xilinx.com:ip:blk_mem_gen:7.1 --
|
31 |
|
|
-- --
|
32 |
|
|
-- The Xilinx LogiCORE IP Block Memory Generator replaces the Dual Port --
|
33 |
|
|
-- Block Memory and Single Port Block Memory LogiCOREs, but is not a --
|
34 |
|
|
-- direct drop-in replacement. It should be used in all new Xilinx --
|
35 |
|
|
-- designs. The core supports RAM and ROM functions over a wide range of --
|
36 |
|
|
-- widths and depths. Use this core to generate block memories with --
|
37 |
|
|
-- symmetric or asymmetric read and write port widths, as well as cores --
|
38 |
|
|
-- which can perform simultaneous write operations to separate --
|
39 |
|
|
-- locations, and simultaneous read operations from the same location. --
|
40 |
|
|
-- For more information on differences in interface and feature support --
|
41 |
|
|
-- between this core and the Dual Port Block Memory and Single Port --
|
42 |
|
|
-- Block Memory LogiCOREs, please consult the data sheet. --
|
43 |
|
|
--------------------------------------------------------------------------------
|
44 |
|
|
|
45 |
|
|
-- Interfaces:
|
46 |
|
|
-- AXI_SLAVE_S_AXI
|
47 |
|
|
-- AXI_SLAVE
|
48 |
|
|
-- AXILite_SLAVE_S_AXI
|
49 |
|
|
-- AXILite_SLAVE
|
50 |
|
|
-- BRAM_PORTA
|
51 |
|
|
-- BRAM_PORTA
|
52 |
|
|
-- BRAM_PORTB
|
53 |
|
|
-- BRAM_PORTB
|
54 |
|
|
|
55 |
|
|
-- The following code must appear in the VHDL architecture header:
|
56 |
|
|
|
57 |
|
|
------------- Begin Cut here for COMPONENT Declaration ------ COMP_TAG
|
58 |
|
|
COMPONENT blockMemory
|
59 |
|
|
PORT (
|
60 |
|
|
clka : IN STD_LOGIC;
|
61 |
|
|
rsta : IN STD_LOGIC;
|
62 |
|
|
wea : IN STD_LOGIC_VECTOR(0 DOWNTO 0);
|
63 |
|
|
addra : IN STD_LOGIC_VECTOR(3 DOWNTO 0);
|
64 |
|
|
dina : IN STD_LOGIC_VECTOR(31 DOWNTO 0);
|
65 |
|
|
douta : OUT STD_LOGIC_VECTOR(31 DOWNTO 0)
|
66 |
|
|
);
|
67 |
|
|
END COMPONENT;
|
68 |
|
|
-- COMP_TAG_END ------ End COMPONENT Declaration ------------
|
69 |
|
|
|
70 |
|
|
-- The following code must appear in the VHDL architecture
|
71 |
|
|
-- body. Substitute your own instance name and net names.
|
72 |
|
|
|
73 |
|
|
------------- Begin Cut here for INSTANTIATION Template ----- INST_TAG
|
74 |
|
|
your_instance_name : blockMemory
|
75 |
|
|
PORT MAP (
|
76 |
|
|
clka => clka,
|
77 |
|
|
rsta => rsta,
|
78 |
|
|
wea => wea,
|
79 |
|
|
addra => addra,
|
80 |
|
|
dina => dina,
|
81 |
|
|
douta => douta
|
82 |
|
|
);
|
83 |
|
|
-- INST_TAG_END ------ End INSTANTIATION Template ------------
|
84 |
|
|
|
85 |
|
|
-- You must compile the wrapper file blockMemory.vhd when simulating
|
86 |
|
|
-- the core, blockMemory. When compiling the wrapper file, be sure to
|
87 |
|
|
-- reference the XilinxCoreLib VHDL simulation library. For detailed
|
88 |
|
|
-- instructions, please refer to the "CORE Generator Help".
|
89 |
|
|
|