[sv-ec] RE: mantis item 2848

From: Mark Hartoog <Mark.Hartoog_at_.....>
Date: Thu Aug 13 2009 - 13:32:54 PDT
The same issue exists for structs and enums defined in interfaces.

From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of Francoise Martinolle
Sent: Thursday, August 13, 2009 1:10 PM
To: sv-ec@server.eda.org
Subject: [sv-ec] mantis item 2848

I filed a mantis item today regarding virtual interfaces which can get assigned interfaces containing class declarations.
I think it should be illegal to traverse through such virtual interface to a class handle declared in the interface if its
class datatype is also in the interface declaration.
The datatype of the virtual interface select expression cannot be statically determined by the elaborator.
ex:
interface ifc;
   class C;
   int i;
   endclass
     C ch;

endinterface // ifc

module top;

   ifc ifc1();

   ifc ifc2();

   virtual interface ifc vi = ifc1;

   initial begin
      vi.ch = new(); // is this legal
      $display(vi.ch.i); // is this legal?
      vi = ifc2;
      $display (vi.ch.i);
   end

endmodule // top

Comments?

Francoise
       '

--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, 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 Thu Aug 13 13:33:47 2009

This archive was generated by hypermail 2.1.8 : Thu Aug 13 2009 - 13:34:28 PDT