RE: [sv-bc] Query about $typename

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Tue Feb 05 2008 - 06:35:59 PST
Based on this example in the LRM:

module top;
typedef struct {node A,B;} AB_t;
AB_t AB[10]; // "struct{bit A;bit B;}top.AB_t$[0:9]"
...
endmodule

I would expect to get this:

"struct {struct{int i;}m.X a;int b;}m.Y"

Shalom


>        Consider the scenario,
>        module m;
>        typedef struct {
>           int i;
>        }X;
>        typedef struct {
>           X a;
>           int b;
>        }Y;
>        Y b;
>        .....
>        endmodule
>        If any one place b as an argument of $typename then 
> what will be the output ? Whether it will be
>        "struct { X a;  int b; } m.Y" or "struct { struct { 
> int i; }m.X a ; int b; }m.Y" . Please any one
>        can help me to resolve this issue as SV LRM  IEE Std 
> 1800-2005,at 
> section 22.2   does not 
>        mentioned this behaviour clearly .   
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Feb 5 06:44:25 2008

This archive was generated by hypermail 2.1.8 : Tue Feb 05 2008 - 06:44:57 PST