Home > Community > Forums > Functional Verification > Error while trying to explore about get_inst_coverage

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Error while trying to explore about get_inst_coverage 

Last post Thu, Nov 29 2012 11:29 PM by omahesh. 0 replies.
Started by omahesh 29 Nov 2012 11:29 PM. Topic has 0 replies and 729 views
Page 1 of 1 (1 items)
Sort Posts:
  • Thu, Nov 29 2012 11:29 PM

    • omahesh
    • Not Ranked
    • Joined on Thu, Nov 29 2012
    • Posts 3
    • Points 30
    Error while trying to explore about get_inst_coverage Reply

     

    Hi,
    I'm trying to observe the difference between get_coverage & get_inst_coverage with the following example;

    class trans;
    rand logic wrd;
    rand logic [2:0] addr;
    rand logic [7:0] din;
    rand logic [2:0] no_of_rst;

    covergroup cg;
    type_option.merge_instances = 1;
    option.per_instance = 1;
    option.get_inst_coverage = 1;
    op_t: coverpoint addr;
    op_r: coverpoint din;
    endgroup

    function new();
    cg = new();
    endfunction : new
    endclass

    program main();
    trans trans_0 = new();
    trans trans_1 = new();
    trans trans_2 = new();

    initial begin
    trans_0.randomize();
    trans_1.randomize();
    trans_2.randomize();
    trans_0.cg.sample();
    trans_2.cg.sample();
    $display("coverage:%f",trans_0.cg.get_coverage());
    $display("coverage1:%f",trans_2.cg.get_inst_coverage());
    $display("coverage1:%f",trans_2.cg.get_coverage());
    end
    endprogram

    But the cadence 10.20-s104 tool is showing error at lines type_option.merge_instances and at option.get_inst_coverage.

    Can anyone suggest me the how can i get the get_inst_coverage result which is different from get_coverage?

    Thanks,

    Regards,

    Mahee.

    • Post Points: 5
Page 1 of 1 (1 items)
Sort Posts:
Started by omahesh at 29 Nov 2012 11:29 PM. Topic has 0 replies.