I have the following code in specman that I inherited:
some_method() is {
var a: bool;
if (!a) {
a = some_other_method();
};
};
My understanding is that each time some_method()
is called, a
is generated anew, and there's no sense in checking a
's value before it's assigned. However, it may be that I'm missing something here. For instance, if a
is static then this code makes sense, which brings me to my question:
Is there any way for a variable to be static in specman?