M
Mohammed A khader
Guest
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.
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.