[sv-bc] get_coverage() used on coverage group item with :: operator

From: Surya Pratik Saha <spsaha_at_.....>
Date: Sun Jun 24 2007 - 22:28:07 PDT
Hi,
As per SV 1800 LRM (18.7 Predefined coverage methods):
The get_coverage() method returns the cumulative (or type) coverage, which considers the contribution of all instances of a particular coverage item; and it is a static method that is available on both types (via the:: operator) and instances (using the . operator).

Does it mean, get_coverage can be called by :: operator on coverage group item also, or only on coverage group?
Is the following e.g. valid?
module m1;
    bit a_var, b_var;

    covergroup gc;
        A : coverpoint a_var;
    endgroup

    gc gc_Inst = new;

    real getCov;
    int coveredBins;
    int totalBins;
    initial begin
        getCov = gc::A::get_coverage();
    end
endmodule

Different standard simulators behaves differently on this case.
-- 
Regards
Surya

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. Received on Sun Jun 24 22:29:41 2007

This archive was generated by hypermail 2.1.8 : Sun Jun 24 2007 - 22:29:59 PDT