• 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 of Enum Type Bins

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 64
  • Views 17239
  • 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 of Enum Type Bins

archive
archive over 18 years ago

Hi,
I have an issue while taking coverage of enum type bins.
I am using IUS 6.1. While compilation, warnings are coming for enum type bins.

Let me share the peice of code with you.
//TO SELECT FROM HALF DUPLEX OR FULL DUPLEX MODE OF TRANSMISSION
typedef enum {HALF, FULL } transmission_mode_t;

 
transmission_mode_t transmission_mode_cov;
 
covergroup packet_rxd @(packet_collected);
 
    HALF_DUPLEX_MODE_N: coverpoint transmission_mode_cov
    {
 bins HALF_DUPLEX_N = {HALF};
    }
 
    FULL_DUPLEX_MODE_N: coverpoint transmission_mode_cov
    {
        bins FULL_DUPLEX_N = {FULL};
    }
 
endgroup
 
packet_rxd_cg packet_rxd_instance = new(); 

The warning which is coming is

bins HALF_DUPLEX_N = {HALF};
                                 |
ncelab: *W,CUVBVE (/home/coverage.sv,146|26): Bin value type mismatch with coverpoint type.

        bins FULL_DUPLEX_N = {FULL};
                                 |
ncelab: *W,CUVBVE (/home/coverage.sv,151|33): Bin value type mismatch with coverpoint type.

This issue was not there with NCSIM 5.8.
Please help me to resolve this issue.


Regards
Jagvin


Originally posted in cdnusers.org by jagvinder
  • Cancel
  • archive
    archive over 18 years ago

    I ran your code in IUS5.83 and IUS6.11 which both worked. I don't have access to IUS6.1, so I can't verify your problem there, but since it works on IUS6.11, I'd advise to go ahead and download the latest version.

    IUS0611USR4
    , Version: 06.11-s004 was just released this week, so it is a good time to download, especially if you are using the IUS low-power (CPF) capabilities.

    Tim


    Originally posted in cdnusers.org by tpylant
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Thanks Tim,
    but i am facing a serious issue while merging the functional coverage for my model.

    Is it because of these warnings for enum type bins???? or somewhat else??????

    While merging, it is giving some "checksum mismatch error". Although i am not changing my env at run-time, the error is coming.


    Jagvin


    Originally posted in cdnusers.org by jagvinder
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    I tried all possible combinations of mixing enums and randomization. The only way I could get the coverage loading to fail is if I modified the code. I was using IUS6.11-s002.

    Tim


    Originally posted in cdnusers.org by tpylant
    • 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