1 ----------------------------------------------------------------------------------
5 -- Create Date: 09:
46:
13 11/18/2013
7 -- Module Name: RAM32x6D - Behavioral
16 -- Revision 0.
01 -
File Created
17 -- Additional Comments:
19 ----------------------------------------------------------------------------------
21 use IEEE.STD_LOGIC_1164.
ALL;
23 -- Uncomment the following library declaration if using
24 -- arithmetic functions with or values
25 --use IEEE.NUMERIC_STD.ALL;
27 -- Uncomment the following library declaration if instantiating
28 -- any Xilinx primitives in this code.
30 use UNISIM.VComponents.
all;
38 do : out (7 downto 0));
46 INIT_A => X"0000000000000000",
-- Initial contents of A port
47 INIT_B => X"0000000000000000",
-- Initial contents of B port
48 INIT_C => X"0000000000000000",
-- Initial contents of C port
49 INIT_D => X"0000000000000000"
) -- Initial contents of D port
51 DOA => do
(1 downto 0),
-- Read port A 2-bit output
52 DOB => do
(3 downto 2),
-- Read port B 2-bit output
53 DOC => do
(5 downto 4),
-- Read port C 2-bit output
54 DOD =>
open,
-- Read/Write port D 2-bit output
55 ADDRA => ra,
-- Read port A 5-bit address input
56 ADDRB => ra,
-- Read port B 5-bit address input
57 ADDRC => ra,
-- Read port C 5-bit address input
58 ADDRD => wa,
-- Read/Write port D 5-bit address input
59 DIA => di
(1 downto 0),
-- RAM 2-bit data write input addressed by ADDRD,
60 -- read addressed by ADDRA
61 DIB => di
(3 downto 2),
-- RAM 2-bit data write input addressed by ADDRD,
62 -- read addressed by ADDRB
63 DIC => di
(5 downto 4),
-- RAM 2-bit data write input addressed by ADDRD,
64 -- read addressed by ADDRC
65 DID => "
00",
-- RAM 2-bit data write input addressed by ADDRD,
66 -- read addressed by ADDRD
67 WCLK => wclk,
-- Write clock input
68 WE => we
-- Write enable input
70 g_ram: for i in 6 to 7 generate
71 RAM32X1D_inst : RAM32X1D
73 INIT => X"00000000"
) -- Initial contents of RAM
75 DPO => do
(i
),
-- Read-only 1-bit data output
76 SPO =>
open,
-- R/W 1-bit data output
77 A0 => wa
(0),
-- R/W address[0] input
78 A1 => wa
(1),
-- R/W address[1] input
79 A2 => wa
(2),
-- R/W address[2] input
80 A3 => wa
(3),
-- R/W address[3] input
81 A4 => wa
(4),
-- R/W address[4] input
82 D => di
(i
),
-- Write 1-bit data input
83 DPRA0 => ra
(0),
-- Read-only address[0] input
84 DPRA1 => ra
(1),
-- Read-only address[1] input
85 DPRA2 => ra
(2),
-- Read-only address[2] input
86 DPRA3 => ra
(3),
-- Read-only address[3] input
87 DPRA4 => ra
(4),
-- Read-only address[4] input
88 WCLK => wclk,
-- Write clock input
89 WE => we
-- Write enable input