An issue about index ranges

From: Ajayharsh Varikat <ajay_at_.....>
Date: Thu Feb 01 2007 - 05:54:35 PST
Gentlemen,

How do we determine the index range of a function that returns an
unconstrained array? I could not find anything in the LRM for this.

The context is the following. We have these functions declarations.

     function int2slv ( integer ) return std_logic_vector;

     function slv2int ( a : std_logic_vector; b : integer ) return
integer;

If we now have an expression
 
            slv2int ( int2slv ( 15 ), 8 )

then how is the index range of the formal obtained within the body
of slv2int?

Would appreciate any pointers you could give.

Regards,

-ajay

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Feb 1 05:55:07 2007

This archive was generated by hypermail 2.1.8 : Thu Feb 01 2007 - 05:55:09 PST