• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Functional Coverage Question

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 66
  • Views 15365
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Functional Coverage Question

ashfaqh
ashfaqh over 11 years ago

 I have 2 coverpoints.

 Each coverpoint has auto generated bins as well as user-defined bins.  In pseudo-code, I will describe them as follows:

 cp1: 

     auto_bins,

     userdefined_bin0, userdefined_bin1 ;  

 

cp2:

     auto_bins,

     userdefined_bin2, userdefined_bin3 ;  

 

Now, I want to cross cp1 and cp2.  But, in that cross-coverage, I am only interested in crossing the userdefined bins and not the auto_bins. 

cp1_x_cp2:

cross cp1, cp2 {

    userdefined_bin0 intersects with userdefined_bins_2, 3 ;

    userdefined_bin1 intersects with userdefined_bins_2, 3 ;

    **************** This is being achieved but the auto bins are also coming into play.

     *************** How do I ignore the auto bins??

}

Thanks,

 ashfaqh

  • Cancel
  • Tudor Timi
    Tudor Timi over 11 years ago

    I assume this is SystemVerilog. For ignore bins in cross coverage have a look at this site:

     http://www.asic-world.com/systemverilog/coverage20.html 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 11 years ago

    Can you give us a more concrete example? I don't understand what you mean by auto bins, since as soon as you define your own bins the tool won't create auto bins in the coverpoints.

    Inside the cross, you can get rid of the auto bins by using the Incisive coverage control command: "set_covergroup -cross_auto_bin_max_default_zero" which needs to go in the coverage control file, passed to irun or ncelab via the -covfile option.

    Here's a small example adapted from the LRM, maybe you can tweak it to show us what you're seeing? In Incisive 13.20 this runs and does not produce any auto bins.

    module test;
    bit [7:0] v_a, v_b;
    event clk;
    covergroup cg @(clk);
      a: coverpoint v_a {
        bins a1 = { [0:63] };
        bins a2 = { [64:127] };
      }
      b: coverpoint v_b {
        bins b1 = {0};
        bins b2 = { [1:84] };
      }
      c : cross a,b {
        bins c1 = binsof(a.a1) || binsof(b.b1);
        bins c2 = binsof(a.a2) || binsof(b.b2);
      }
    endgroup

    cg cgi;

    initial
    begin
      cgi = new;
      for(v_a=0; v_a<255; v_a++)
        for (v_b=0; v_b<255; v_b++)
        begin
          #1 ->clk;
        end
    end

    endmodule
     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information