The descriptions of the array manipulation methods at the beginning of each of 5.15.1-5.15.3 say what types of arrays they apply to, and they are unpacked arrays, i.e., not packed arrays. Shalom > -----Original Message----- > From: owner-sv-ec@server.eda.org > [mailto:owner-sv-ec@server.eda.org] On Behalf Of Moumita > Sent: Monday, August 06, 2007 2:38 PM > To: sv-bc; sv-ec > Subject: [sv-ec] Query for Iterator index querying > > 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. > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon Aug 6 06:54:05 2007
This archive was generated by hypermail 2.1.8 : Mon Aug 06 2007 - 06:54:12 PDT