omahesh Posted November 29, 2012 Report Share Posted November 29, 2012 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 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. Quote Link to comment Share on other sites More sharing options...
omahesh Posted November 30, 2012 Author Report Share Posted November 30, 2012 Hi, I forgot to share one thing that is, I got those errors in Cadence 10.20 version. Regards, Mahee. Quote Link to comment Share on other sites More sharing options...
uwes Posted November 30, 2012 Report Share Posted November 30, 2012 i assume the tool is saying that this is not supported in the 10.20 release, right? you should try a more recent release such as 11.*,12.1,12.20,... as a side note you can view the type and/or instance based coverage using "iccr" or "imc" without the need of the direct coverage api/options. /uwe Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.