Let look at example:
module top;
class C;
static rand int i;
endclass
C c;
initial begin
c.rand_mode(0);
// C::rand_mode(0);
end
endmodule
LRM doesn't define how is rand_mode called on class hnadle should change the
mode of static variables inside class. This can be confusing - there are 2
options and only one should be ok:
- rand_mode on class handle changes the static variable mode
- rand_mode on class handle does not change the static variable mode. To
change static variable mode rand_mode should be called on class ie
C::rand_mode(0)
Which one is ok?
DANiel
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Jul 21 05:13:27 2010
This archive was generated by hypermail 2.1.8 : Wed Jul 21 2010 - 05:13:44 PDT