RE: User defined types


Subject: RE: User defined types
From: Tom Fitzpatrick (fitz@co-design.com)
Date: Fri Jul 27 2001 - 07:35:45 PDT


Hi David,

Since you may have arrays of interfaces, or instantiate multiple interfaces
using a "generate" statement, you need to specify which particular instance
of the interface you want to use to get the typedef. We require a constant
expression because you can only specify a single instance from which to get
the typedef, even though there may be many. With parameters, each instance
of the interface may actually be slightly different.

Hope this helps,
-Tom
+----------------------------+------------------------------------------+
| Tom Fitzpatrick | Tel: 1 978 448 8797 |
| Technical Product Manager | Mobile: 1 978 337 7641 |
| Co-Design Automation, Inc. | email: fitz@co-design.com |
+----------------------------+------------------------------------------+
| Web: www.co-design.com | Latest News: |
| www.superlog.org | http://www.co-design.com/news/index.htm |
+----------------------------+------------------------------------------+

> -----Original Message-----
> From: owner-vlog-pp@eda.org [mailto:owner-vlog-pp@eda.org]On Behalf Of
> David Smith
> Sent: Thursday, July 26, 2001 5:24 PM
> To: 'vlog-pp@eda.org'
> Subject: User defined types
>
>
> Another question.
>
> On page 11 in the section on User-defined types there are three
> alternatives for the typedef declaration. The first and last are obvious.
>
> The second one:
> 'typedef ' <identifier>
> {'['<constant_expression>']}'.'<type_identifier> <variable> ';'
>
> appears to be for referencing a typedef that is defined within an
> interface. What is the information within the [ ] used for?
>
> Thanks
> David
>
> David W. Smith
> Architect
>
> > Avant! Corporation
> 9205 SW Gemini Drive
> Beaverton, OR 97008
>
> Voice: 503.520.2715
> FAX: 503.643.3361
> Email: david_smith@avanticorp.com
> http://www.avanticorp.com
>



This archive was generated by hypermail 2b28 : Fri Jul 27 2001 - 07:40:44 PDT