Hi, Actually it's not possible in vhdl: - to pass a Range as a parameter of a function - to return a Range as a result of a function - to connect a Range to a generic This is for me a big limitation of the actual standard. And I think, if it's not to complicate, it's something that must be supported in the next standard. Take for example the functions Ufixed_high, Ufixed_low of the fixed_pkg, they could be replace by a unique function Ufixed_range. Such that the following lines : variable uin1din2 : ufixed (UFixed_high(in1'high, in1'low, '/', in2'high, in2'low) downto UFixed_low(in1'high, in1'low, '/', in2'high, in2'low)); becomes variable uin1din2 : ufixed (UFixed_range(in1'range, '/',in2'range)); Kind Regards, Yannick --------------------------------------------------------------------------------------------------------- Yannick Grugni Design Competence Center Leuven VLSI Engineer Interleuvenlaan 74-82 Tel: +(32)16.390.742 3001 Leuven yannick.grugni@philips.com Belgium ----------------------------------------------------------------------------------------------------------Received on Wed Apr 6 01:42:43 2005
This archive was generated by hypermail 2.1.8 : Wed Apr 06 2005 - 01:43:23 PDT