What is meant by Static name

Discussion in 'VHDL' started by Mohammed A khader, Mar 1, 2005.

  1. Hi all,

    when I was compiling this function I got the error saying..
    aliased object name must be a static name.

    function STR(Data_In : in std_logic_vector ) return string is
    alias data : std_logic_vector(1 to Data_In'LENGTH) is
    Data_In(Data_In'LENGTH-1 DOWNTO 0);
    variable result : string(1 to Data_In'LENGTH);
    begin
    for i in 1 to Data_In'LENGTH loop

    result(i) := Std_Table(Data(i));


    end loop;
    return result;
    end function STR;

    But it worked with this...
    alias data : std_logic_vector(1 to Data_In'LENGTH) is Data_In;

    I would like to know what is actually meant by 'static' name.
    Thanks in Advance.

    Mohammed Khader.
    Mohammed A khader, Mar 1, 2005
    #1
    1. Advertising

  2. Mohammed A khader wrote:

    > when I was compiling this function I got the error saying..
    > aliased object name must be a static name.


    > But it worked with this...
    > alias data : std_logic_vector(1 to Data_In'LENGTH) is Data_In;
    > I would like to know what is actually meant by 'static' name.


    A slice of a static object is not static.
    Maybe you can do the slice using a local
    function/procedure variable.

    -- Mike Treseler
    Mike Treseler, Mar 1, 2005
    #2
    1. Advertising

  3. But if slice index (indcies defining the slice of the object) is
    also static then it should be considered as a static .
    Mohammed A khader, Mar 2, 2005
    #3
    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. Cowboy \(Gregory A. Beamer\) [MVP]

    Re: Sorry, meant ASP.NET

    Cowboy \(Gregory A. Beamer\) [MVP], Aug 17, 2004, in forum: ASP .Net
    Replies:
    7
    Views:
    568
    Shawn South
    Aug 18, 2004
  2. Shawn South

    Re: Sorry, meant ASP.NET

    Shawn South, Aug 17, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    422
    Shawn South
    Aug 17, 2004
  3. gayathri
    Replies:
    2
    Views:
    926
    Roedy Green
    Mar 16, 2006
  4. Guy Doucet
    Replies:
    7
    Views:
    429
    Guy Doucet
    Jun 5, 2005
  5. iceColdFire
    Replies:
    6
    Views:
    1,090
    Victor Bazarov
    May 6, 2005
Loading...

Share This Page