• 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. Simple Assertion for Counter

Stats

  • Replies 1
  • Subscribers 66
  • Views 1306
  • Members are here 0

Simple Assertion for Counter

TM202505254140
TM202505254140 3 months ago

Hi all, 

Question_1 : Assertion requirement :

When Enable is HIGH, counter should be increment to previous clock cycle value, when Enable is LOW, counter should keep same value as previous cycle.

Below is my understanding. May I know is this satisfying the requirement or require changes?

property p1;

@(posedge clk) Enable |=> (count == $past(count+1));

endproperty

Question_2 : also, do we require one more property for else condition. Like

property p2;

@(posedge clk) (!Enable) |=> (count == $past(count));

endproperty

Is only one property (p1) is sufficient for above requirement.

Kindly suggest

  • Sign in to reply
  • Cancel
Parents
  • tba786
    tba786 3 months ago

    I would say both. Try them and share the result

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • tba786
    tba786 3 months ago

    I would say both. Try them and share the result

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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