- made ram sizable

Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@979 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2013-07-20 09:53:34 +00:00
parent a43bcf23af
commit a836d35ee1
4 changed files with 21 additions and 6 deletions
+8 -1
View File
@@ -2,7 +2,14 @@ LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.NUMERIC_STD.ALL;
library work;
use work.utils_pkg.all;
ENTITY ram_wb IS
GENERIC
(
NUM_WORDS : integer := 64
);
Port
(
CLK_I : in STD_LOGIC;
@@ -63,7 +70,7 @@ data_valid_register:
inst_ram : ram
GENERIC MAP
(
word_addr_width => 6
word_addr_width => NextExpBaseTwo(NUM_WORDS)
)
PORT MAP
(