• 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. Lost bins in coverpoint?

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 64
  • Views 557
  • 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

Lost bins in coverpoint?

Jeff000
Jeff000 over 8 years ago

Say now we have a covergroup which is intended to cover the 32-bit range of 'h0 ~ 'hFFFFFFFF.


logic [31:0] test_data;

covergroup test_cg @clk
    option.per_instance = 1;
    v: coverpoint test_data
        iff(reset_n){
        bins v_val_0 ={0};
        bins v_val_n [5] = {[1:'hfffffffe]};
        bins v_val_f = {'hffffffff};
        illegal_bins v_illegal = default;
} endgroup test_cg t_cg = new(); always @(posedge clk) begin test_data = test_data + 'h400000; t_cg.sample(); end initial begin test_data = 0; end

The test_data is increased by 'h400000 at every posedge clk. So the covergroup above is supposed to reach 100% (except v_val_f ) very soon. However, the report give a big surprise as below, i.e. v_val_n[2] and v_val_n[4] are covered while v_val_n[3] is not covered at all. Anyone can help on this issue?

BTW, I'm working on IES-15.22 s024.

Thanks.


test_cg         71.43%, 71.43% (5/7) 269 covergroup test_cg  (clk);
|--v            71.43% (5/7)         271 v: coverpoint test_data
| |--v_val_0    100.00% (19/1)       273 bins v_val_0    = {0};
| |--v_val_n[0] 100.00% (4284/1)     274 bins v_val_n[5] = {[1: 'hfffffffe]};
| |--v_val_n[1] l00.00% (4305/1)     274 bins v_val_n[5] = {[1: 'hfffffffe]};
| |--v_val_n[2] 100.00% (2163/1)     274 bins v_val_n[5] = {[1: 'hfffffffe]};
| |--v_val_n[3] 0.00% (0/1)          274 bins v_val_n[5] = {[1: 'hfffffffe]};
| |--v_val_n[4] 10O.00% (9598/1)     274 bins v_val_n[5] = {[1: 'hfffffffe]};
| |--v_val_f    0.00% (0/1)          275 bins v_val_f    = {'hffffffff};
  • 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