adityarajrulz
Newbie level 5
- Joined
- Jun 4, 2012
- Messages
- 8
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Noida, India, India
- Activity points
- 1,345
I have a 2 d array :
type memory is array(0 to 100) of std_logic_vector (7 downto 0)
now i want to read a row of this "memory" array where the row number is known to me in terms of binary values say a1,a2,a3,a4,a5,a6..
i have to read the particular row corresponding to the address bits, and transfer it into another array :
signal data : std_logic_vector (7 downto 0)
when i am using the syntax for transfer as :
data <= memory (a1&a2&a3&......); : the said syntax is showing error.
can you kindly suggest me the correct syntax for this process.
. besides
should i have the memory array as a 2 d array or 1 d array of 1 d array ? and in accordance to memory array , how should i define the data array!!!
type memory is array(0 to 100) of std_logic_vector (7 downto 0)
now i want to read a row of this "memory" array where the row number is known to me in terms of binary values say a1,a2,a3,a4,a5,a6..
i have to read the particular row corresponding to the address bits, and transfer it into another array :
signal data : std_logic_vector (7 downto 0)
when i am using the syntax for transfer as :
data <= memory (a1&a2&a3&......); : the said syntax is showing error.
can you kindly suggest me the correct syntax for this process.
. besides
should i have the memory array as a 2 d array or 1 d array of 1 d array ? and in accordance to memory array , how should i define the data array!!!