[sv-bc] Query for Iterator index querying

From: Moumita <moumita_at_.....>
Date: Mon Aug 06 2007 - 04:37:35 PDT
Hello,

 IEEE std 1800-2005 standard for System Verilog,sec 5.15.4  does not say 
anything about the array for index method ,so my query is
whether index method (Iterator index querying) can be applied  to  
unpacked array or packed array?
If we have -
q = arr.find with ( item == item.index );  // item is packed array or 
unpacked array?

Also the language "The index method of an iterator returns the index 
value of the specified dimension." is not clear to me.
So for the following testcase what will be value of x?
 bit i[2:0];
    int x;
    initial begin
        x = i.index();  
    end

Thanks and regards,

Moumita



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Aug 6 04:42:02 2007

This archive was generated by hypermail 2.1.8 : Mon Aug 06 2007 - 04:42:15 PDT