Hi All, I was thinking about part of LRM: "A ref obj represents a declared object or subelement of that object that is a reference to an actual instantiated object. A ref obj exists for ports with ref direction, for an interface port, a modport port, or for formal task function ref arguments. The specific cases for a ref obj are as follows: - A variable, named event, named event array that is the lowconn of a ref port - Any subelement expression of the above - A local declaration of an interface or modport passed through a port or any net, variable, named event, named event array of those - A ref formal argument of a task or function, or subelement expression of it " I have an example: module top; class C; int i; endclass function automatic void afct(ref C c); $vpiF(c.i); endfunction C x=new; initial #2 afct(x); endmodule Is "c.i" really a ref object ? "i" is a part of vpiClassObj not vpiClassVar. Should LRM exclude from being ref object class and virtual interface member's ? Regards, Radek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Dec 17 01:33:21 2013
This archive was generated by hypermail 2.1.8 : Tue Dec 17 2013 - 01:33:45 PST