Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > 2D array question

Thread Tools

2D array question

Divyang M
Posts: n/a

How do I assign 8 bits of a 16-bit 2D array to an 8-bit 2D array:

I tried both the following and I get an error:

prim_out_n_re(9) <= prim_out_n(15 downto (9);


prim_out_n_re(9) <= prim_out_n(9)(15 downto ;


prim_out_n_re is array(10 downto 0) of std_logic_vector(7 downto 0)
prim_out_n is array(10 downto 0) of std_logic_vector(15 downto 0)


Divyang M

Reply With Quote
Divyang M
Posts: n/a
I tried the following and it it correct?

prim_out_n_re(i)(7 downto 0) <= prim_out_n(i)(15 downto ;

Divyang M.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
const and array of array (of array ...) Mara Guida C Programming 3 09-03-2009 07:54 AM
Question concerning array.array and C++ Fabio Python 0 11-05-2008 03:53 PM
length of an array in a struct in an array of structs in a struct in an array of structs Tuan Bui Perl Misc 14 07-29-2005 02:39 PM
"array of Derived" is not a kind-of "array of Base" question Joseph Turian C++ 11 01-19-2005 11:53 AM
Length of Array of Array of Array Tom Perl Misc 3 12-20-2004 05:23 PM