Hi,
In the LRM section "18.3 Using covergroup in classes" it is mentioned a
covergroup can be instantiated explicitly. But the following case:
module top;
class myclass;
covergroup my_cg;
endgroup : my_cg
my_cg x = new();
endclass
endmodule
is failed by most of the standard simulators. Is there any reason for
that.
Also in all the examples given in that section, the instantiation of
covergroup without declaring the identifier is used only inside
function new. But in the foot note 15, it is mentioned:
"It shall be legal to omit the covergroup_variable_identifier
from
a
covergroup instantiation only if this implicit instantiation is within
a class that has no other
instantiation of the covergroup."
Does that signify, covergroup can be instantiated outside the function
new too? What about the case:
module top;
class myclass;
covergroup my_cg;
endgroup : my_cg
my_cg = new();
endclass
endmodule
which except one, all the standard simulator fail.
--
Regards
Surya
--
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.
Received on Thu Oct 30 02:30:53 2008