Alias problem

Discussion in 'VHDL' started by korte, Dec 7, 2009.

  1. korte

    korte

    Joined:
    Dec 7, 2009
    Messages:
    2
    I would like to define an array.
    16-bit 32-bit elements.
    This works well.

    I would like to name the first 8 elements in the array to another array of items, and other elements of an array of registers.

    Code:
    type ARR is array (15 downto 0) of std_logic_vector(31 downto 0);
    signal regs : ARR;
    
    alias  w: ARR is regs(7 downto 0);
    alias aa: is regs(8);
    alias ab: is regs(9);
    alias ac: is regs(10);
    .
    .
    alias ag: is regs(15);
    
    
     
    korte, Dec 7, 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. remz
    Replies:
    0
    Views:
    462
  2. grocery_stocker
    Replies:
    9
    Views:
    766
    grocery_stocker
    May 24, 2008
  3. Angel Martin

    alias or alias_method problem

    Angel Martin, Apr 29, 2004, in forum: Ruby
    Replies:
    6
    Views:
    127
    Kristof Bastiaensen
    Apr 29, 2004
  4. polypus

    funky alias problem

    polypus, Mar 29, 2006, in forum: Ruby
    Replies:
    3
    Views:
    84
    polypus
    Mar 29, 2006
  5. Alexander Rysenko

    Ruby alias problem

    Alexander Rysenko, Aug 29, 2006, in forum: Ruby
    Replies:
    1
    Views:
    141
    Eric Hodel
    Aug 29, 2006
Loading...

Share This Page