So if this reference found as first wouldn't be a variable - then search should proceed? below example shold work and print '5' ? : module M; endmodule module a1; function int foo(input int i); return i; endfunction endmodule module top; M a1(); initial begin : oo $display(a1.foo(5)); // o tu end endmodule DANiel _____ From: Rich, Dave [mailto:Dave_Rich@mentor.com] Sent: Friday, February 08, 2008 10:09 AM To: danielm; Bresticker, Shalom; sv-ec@server.eda.org Subject: RE: [sv-ec] Upward referencing rules question Once you descend into a select of a variable, in this case byte a1, you stop searching for a1. Since there is no num() method of a byte, you should get an error. _____ From: danielm [mailto:danielm@aldec.com.pl] Sent: Friday, February 08, 2008 1:02 AM To: Rich, Dave; 'Bresticker, Shalom'; sv-ec@server.eda.org Subject: RE: [sv-ec] Upward referencing rules question So if the variable a1 was ie byte - which cannot have num() method - then what - searching will be hold or not?: module M; function int foo(int y); return y; endfunction endmodule module top; M a1(); initial begin : oo byte a1; $display(a1.foo(5)); // o tu end endmodule DANiel -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon Feb 11 01:20:40 2008
This archive was generated by hypermail 2.1.8 : Mon Feb 11 2008 - 01:22:45 PST