Array assignment

Joined
Jun 5, 2007
Messages
51
Reaction score
0
Hi all,

I am declaring the constant values for using ROM as below

CONSTANT memory: vector_array := ( "00000000",
"00000010",
"00000100",
"00001000",
"00010000",
"11111111",
"11111111",
"11111111");

Note that last three elements are all same value (For some reason, i use all 1s in three places). The point is can i simplify the declaration something like
(Others=>(Others=>'1')) for the last three lines.
 

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

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top