Initializing Single Row of 2-D Array

Joined
Jun 13, 2008
Messages
8
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top