[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [f-cpu] New upload
On Thu, Apr 03, 2003 at 06:29:38AM +0200, Yann Guidon wrote:
[...]
> aliases are quite useful in some places, is there any turnaround ?
I used to use aliases for function arguments, to get a well-defined
index range for vector arguments:
procedure blah (A : in std_ulogic_vector) is
alias aa : std_ulogic_vector(A'length-1 downto 0) is A;
begin
...
A variable and a single assignment will also do the trick:
procedure blah (A : in std_ulogic_vector) is
variable aa : std_ulogic_vector(A'length-1 downto 0);
begin
aa := A;
...
--
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/