Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Initializing Single Row of 2-D Array

Reply
Thread Tools

Initializing Single Row of 2-D Array

 
 
pessenm pessenm is offline
Junior Member
Join Date: Jun 2008
Posts: 9
 
      06-19-2008
Hey Everyone,

I am trying to initialize, or assign values to, a single row in a 2-D array without overwriting all the other rows. I am having trouble with the syntax and was wondering if anyone knows of a simple way to do this.

I have this code:

Packet_Data(I,0) <= SOURCE_NODE;
Packet_Data(I,1) <= DEST_NODE;
Packet_Data(I,2) <= DEST_OBJ(15 downto 8 );
Packet_Data(I,3) <= DEST_OBJ(7 downto 0);
Packet_Data(I,4) <= GLOBAL_SET_CLOCK_LENGTH;
Packet_Data(I,5) <= TIME3;
Packet_Data(I,6) <= TIME2;
Packet_Data(I,7) <= TIME1;
Packet_Data(I,8 ) <= TIME0;
How do I assign zeros to all the other elements kinda like this:
Packet_Data(I, 9 to 299) <= X"00";
but with correct syntax?

Thanks!

Pessenm
 
Reply With Quote
 
 
 
Reply

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
Accessing Single Row of 2D Array pessenm VHDL 1 06-26-2008 05:36 PM
BoundColumn single DataBind equiv but not in a single row? Randall Parker ASP .Net 1 12-12-2005 04:11 PM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
How do copy Strings from a single dimensional array to double dimensional array Venkat C++ 4 12-05-2003 09:23 AM
Single dim array as a multidim array? Sona C++ 10 09-02-2003 11:58 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57