• 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. Expression coverage understanding

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 65
  • Views 17314
  • 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

Expression coverage understanding

Prachi1
Prachi1 over 14 years ago
Hi, I am running and analysing expression coverage. There I see that there are some expression with '!' or '~' (logical or bit negate), I do not understand how iccr evaluates it. e.g. diffxy = (~(x-y)) + 1'b1; index hit ---------------------------- 2 0 0 Here value of expression 1 is '0', is it value of x-y or (~(x-y). x is 16 bit vector. I tried all the possible values of x and y but I am not able to hit this condition. can some highlight the issue? Regards, Prachi
  • Cancel
Parents
  • Prachi1
    Prachi1 over 14 years ago

     Thanks TAM1,

    This was really very helpful to me. In my code, x was set equal to y, but before the assignment for diffxy I had the condition if(x<y). so I was not able to hit this term.

    One more query I have. For the following expression

    temp2 = ~(temp1 - 1'b1);

      I am getting the expression coverage for uncovered item as:

         ~(temp1 - 1'b1)
         <-------1---------->

                  hit | <1>
               ! -----------
                    0 |  0

    What values should I generate of temp1 which will allow me to hit the expression such that entire assignment value is 0.


     Thanks

    Prachi

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Prachi1
    Prachi1 over 14 years ago

     Thanks TAM1,

    This was really very helpful to me. In my code, x was set equal to y, but before the assignment for diffxy I had the condition if(x<y). so I was not able to hit this term.

    One more query I have. For the following expression

    temp2 = ~(temp1 - 1'b1);

      I am getting the expression coverage for uncovered item as:

         ~(temp1 - 1'b1)
         <-------1---------->

                  hit | <1>
               ! -----------
                    0 |  0

    What values should I generate of temp1 which will allow me to hit the expression such that entire assignment value is 0.


     Thanks

    Prachi

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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