D
Davy
Guest
Hi all,
As we all know, static variable is used to hold just one copy of the
variable in all instances from the same class.
But what's static method mainly used for (I have found many of them
when reading Mentor's AVM code)? I have read SystemVerilog Spec. It
seems static method is used to access static variable? Is my
understanding right? Thanks!
Code:
//-- Static method prototype---
static function int do_sth()
endfunction
Best regards,
Davy
As we all know, static variable is used to hold just one copy of the
variable in all instances from the same class.
But what's static method mainly used for (I have found many of them
when reading Mentor's AVM code)? I have read SystemVerilog Spec. It
seems static method is used to access static variable? Is my
understanding right? Thanks!
Code:
//-- Static method prototype---
static function int do_sth()
endfunction
Best regards,
Davy