Re: [sv-ec] Struct access via virtual interfaces

From: Jeff Freedman <jeffsf_at_.....>
Date: Fri Jan 05 2007 - 09:38:31 PST
Rich, Dave wrote:

>Mark,
>
>I think we are stuck with the fact that interfaces are structural
>instances. They contain things like wires and continuous assignments,
>which currently need to go through static elaboration.
>
>But even with that issue aside, the purpose of a virtual interface was
>to get a handle to a statically elaborated object and move data between
>a dynamic class object and a static object without embedding the
>hierarchical path of that static object in the class.
>
>So it seems to me the only practical use of a virtual interface in an
>assignment is when it can be statically determined that both sides of
>the assignment statement are assignment compatible.
>
>  
>
That might be a reasonable restriction.  It would imply that an 
assignment to or from  an unpacked struct (or union or enum) through a 
virtual interface would be illegal if the struct-type was defined inside 
the interface.  In that case, the example that Gordon provided would 
produce elaboration errors.  The main problem would be educating the 
user as to why this is not allowed.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Jan 5 09:39:01 2007

This archive was generated by hypermail 2.1.8 : Fri Jan 05 2007 - 09:39:06 PST