Array assignment

Discussion in 'VHDL' started by sridar, Aug 11, 2009.

  1. sridar

    sridar

    Joined:
    Jun 5, 2007
    Messages:
    51
    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.
    sridar, Aug 11, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nagy
    Replies:
    36
    Views:
    998
    Terry Reedy
    Jul 20, 2006
  2. Chris
    Replies:
    34
    Views:
    1,511
  3. Myth__Buster
    Replies:
    13
    Views:
    368
    Anand Hariharan
    Feb 26, 2013
  4. Myth__Buster
    Replies:
    0
    Views:
    248
    Myth__Buster
    Feb 1, 2013
  5. Myth__Buster
    Replies:
    1
    Views:
    216
    Myth__Buster
    Feb 1, 2013
Loading...

Share This Page