RE: [sv-bc] array.find_index on wildcard-indexed associative arrays.

From: Arturo Salz <Arturo.Salz_at_.....>
Date: Mon Mar 12 2007 - 18:21:44 PDT
Dave,

Your assertion is incorrect. Vera supports both typed and index find
methods.

	Arturo

-----Original Message-----
From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
Rich, Dave
Sent: Monday, March 12, 2007 10:17 AM
To: Jim King; sv-bc@eda-stds.org
Subject: RE: [sv-bc] array.find_index on wildcard-indexed associative
arrays.

Jim,

This was mantis 1457 and is now in the P1800-2008 draft. It is illegal
to use a wildcard index with a find_index or foreach.

Essentially, there's no need to use the wildcard index type;  use a
typed index instead. The wildcard index was all that Vera supported.

Dave

> -----Original Message-----
> From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org]
On
> Behalf Of Jim King
> Sent: Monday, March 12, 2007 9:05 AM
> To: sv-bc@server.eda-stds.org
> Subject: [sv-bc] array.find_index on wildcard-indexed associative
arrays.
> 
> Hi all,
> While explaining array-searching methods to a groups of delegates on a
> course, the following occurred to me:
> 
> Given the following code:
> <code>
> some_type SA [*];
> some_other_type RQ[$];
> ...
> RQ = SA.find_index with (item_expression);
> </code>
> 
> Of what type should RQ be, given that find_index may find elements
indexed
> by different types?  Will/should I get a runtime type error?
> 
> Regards,
> --
> Jim King
> Consultant
> 
> DOULOS - Developing Design Know-how
> VHDL * SystemC * Verilog * SystemVerilog * e * PSL * Perl *
> Tcl/Tk * Project Services
> 
> Doulos Ltd. Church Hatch, 22 Market Place, Ringwood,
> Hampshire, BH24 1AW, UK
> Tel: +44 (0)1425 471223             Email: jim.king@doulos.com
> 
> Fax: +44 (0)1425 471573             Web: http://www.doulos.com
> 
> The contents of this message  may contain personal views which
> are not the views of Doulos Ltd., unless specifically stated.
> 
> --
> 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.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Mar 12 18:22:07 2007

This archive was generated by hypermail 2.1.8 : Mon Mar 12 2007 - 18:22:33 PDT