I think you mean, "Because a1 is visible as a scope name ...". Shalom ________________________________ From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On Behalf Of Rich, Dave Sent: Friday, February 08, 2008 1:12 AM To: danielm; sv-ec@server.eda.org Subject: RE: [sv-ec] Upward referencing rules question Daniel, It is an error as approved by mantis 2217. Because a1 is visible as a variable name where the reference occurs, the search does not continue beyond the block oo. Dave ________________________________ From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On Behalf Of danielm Sent: Wednesday, February 06, 2008 3:40 AM To: sv-ec@server.eda.org Subject: [sv-ec] Upward referencing rules question I cannot find rules for below reference in SV.I'm using reference to a1.num in named block "oo". In this block there is object variable named a1 but it has no "num" funcion The question is: Should seraching for matching function be stopped at this level or should the search be continued into module scope - where is "a1" instance which have "num" function. So below case should return error, or it should compile and return "5" in simulation? module M; function integer num(); num= 5; endfunction endmodule class C; reg r; endclass module top; M a1(); initial begin : oo C a1; $display(a1.num()); end endmodule DANiel -- 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 <http://www.mailscanner.info/> , and is believed to be clean. --------------------------------------------------------------------- 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 Thu Feb 7 19:53:33 2008
This archive was generated by hypermail 2.1.8 : Thu Feb 07 2008 - 19:54:11 PST