RE: [sv-ec] Upward referencing rules question

From: Rich, Dave <Dave_Rich_at_.....>
Date: Fri Feb 08 2008 - 01:09:13 PST
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 Fri Feb 8 01:10:29 2008

This archive was generated by hypermail 2.1.8 : Fri Feb 08 2008 - 01:10:36 PST