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