[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[f-cpu] What's wrong here?
Ok... can anybody tell me what's wrong with this function?
function inv_word(A : in std_ulogic_vector) return std_ulogic_vector is
variable L : natural := A'low;
variable H : natural := A'high;
variable B : std_ulogic_vector(H downto L);
begin
for i in L to H loop
B(i) := A(H+L-i);
end loop;
return B;
end function;
Hint: consider the possible index ranges of the argument.
--
Michael "Tired" Riepe <Michael.Riepe@stud.uni-hannover.de>
"All I wanna do is have a little fun before I die"
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu in the body. http://f-cpu.seul.org/