• 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. coverage option weight

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 66
  • Views 21500
  • 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

coverage option weight

Umar Farooq
Umar Farooq over 11 years ago

Hi ,

 

Can anybody explain me how "option.weight" used..

if option.weight = 50 what happens and how it is going to effect the total coverage.

if option.weight = 0 what happen and how it is going to effect the total coverage.

 

  • Cancel
  • Aurelian Amiq
    Aurelian Amiq over 11 years ago

    Hi, Umar!

     

    option.weight let's you define the influence of a covergroup/coverpoint/cross to the total coverage number of the above syntactic level.

     

    E.g:

     covergroup cg;

      aa: coverpoint a {

    option.weight = 3; 

    } 

    bb: coverpoint b; //default weight is 1

    endgroup 

    So if coverpoint aa is at 100% and coverpoint bb is at 0%, the total coverage of the covergroup cg will be 75%.

    If the weight of coverpoint aa would be the default value 1, the total coverage of the covergroup cg would be 50%.

    Imagine the weight as defining multiple coverage points for a. Like bellow:

       covergroup cg;

      aa_1: coverpoint a;

      aa_2: coverpoint a;

      aa_3: coverpoint a; 

    bb: coverpoint b; //default weight is 1

    endgroup 

     

    And if you mention option.weight = 0, that coverpoint does not contribute to the total coverage of the covegroup. It's like that coverpoint does not exist inside the covergroup (even though you can still see the coverage value of that item). 

     

    Best regards,

    Aurelian 

    • 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