![]() |
|
|
|||||||
![]() |
VHDL - "type" can't use for prefix variable |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
entity RAM_TEST is
generic ( B : natural := 9 ); port ( ADD : in natural range 0 to 2**B - 1; DATA_IN : in std_logic_vector(15 downto 0); DATA_OUT: out std_logic_vector (15 downto 0); ); end RAM_TEST architecture RAM_TEST_arch of RAM_TEST is -- Build a 2-D array type for the RAM type MEMORY is array(ADD'high downto 0) of std_logic_vector(15 downto 0); -- Declare the RAM signal. signal RAM : MEMORY; begin ....................... ........................ RAM(ADD) <= DATA_IN ...................... Hi, I am trying to write some commads to build ram, above are the commands. However, I have met an error from simulator: 1st. This error mentions that the 'type' syntax cannot support the prefix like "ADD'high", any suggestion to correct this? benghwee8 |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing value with out using variable in query string in PHP! | Ali_ggl | General Help Related Topics | 0 | 11-29-2008 12:22 PM |
| How to set another machine's environment variable? | vinay.babu | Software | 0 | 10-16-2008 12:54 PM |
| Variable scope | toller | Hardware | 1 | 04-21-2008 08:28 PM |
| How to know if a variable is null | peace2007 | Software | 1 | 09-30-2007 06:22 AM |
| Variable Scope in asp.Net | jansi_rk | Software | 1 | 09-18-2006 06:05 PM |