23f1ddab12bd22e020429e4256913f4e754c0794
[calu.git] / cpu / src / r2_w_ram.vhd
1 library IEEE;
2 use IEEE.std_logic_1164.all;
3 use IEEE.numeric_std.all;
4
5 use work.mem_pkg.all;
6
7 entity r2_w_ram is
8         generic (
9                                 ADDR_WIDTH : integer range 1 to integer'high;
10                                 DATA_WIDTH : integer range 1 to integer'high
11                         );
12         port(
13                 --System inputs
14                         clk : in std_logic;
15                 --Input
16                         wr_addr, rd_addr1, rd_addr2 : in std_logic_vector(ADDR_WIDTH-1 downto 0);
17                         
18                         wr_en : in std_logic;
19                         data_in : in std_logic_vector(DATA_WIDTH-1 downto 0);
20                         
21                 --Output
22                         data_out1, data_out2: out std_logic_vector(DATA_WIDTH-1 downto 0)
23                 );
24                 
25 end entity r2_w_ram;