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;
40 do : out (5 downto 0));
43 architecture Behavioral
of RAM32x6D is
44 signal ram_do : (5 downto 0) := (others => '0');
49 if(rclk'event and rclk = '1')then
57 INIT_A => X"0000000000000000",
-- Initial contents of A port
58 INIT_B => X"0000000000000000",
-- Initial contents of B port
59 INIT_C => X"0000000000000000",
-- Initial contents of C port
60 INIT_D => X"0000000000000000"
) -- Initial contents of D port
62 DOA => ram_do
(1 downto 0),
-- Read port A 2-bit output
63 DOB => ram_do
(3 downto 2),
-- Read port B 2-bit output
64 DOC => ram_do
(5 downto 4),
-- Read port C 2-bit output
65 DOD =>
open,
-- Read/Write port D 2-bit output
66 ADDRA => ra,
-- Read port A 5-bit address input
67 ADDRB => ra,
-- Read port B 5-bit address input
68 ADDRC => ra,
-- Read port C 5-bit address input
69 ADDRD => wa,
-- Read/Write port D 5-bit address input
70 DIA => di
(1 downto 0),
-- RAM 2-bit data write input addressed by ADDRD,
71 -- read addressed by ADDRA
72 DIB => di
(3 downto 2),
-- RAM 2-bit data write input addressed by ADDRD,
73 -- read addressed by ADDRB
74 DIC => di
(5 downto 4),
-- RAM 2-bit data write input addressed by ADDRD,
75 -- read addressed by ADDRC
76 DID => "
00",
-- RAM 2-bit data write input addressed by ADDRD,
77 -- read addressed by ADDRD
78 WCLK => wclk,
-- Write clock input
79 WE => we
-- Write enable input