• 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. modeling a constraint for a signal that is only high once...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 64
  • Views 14194
  • 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

modeling a constraint for a signal that is only high once (ever)

archive
archive over 18 years ago

   
How can I model a constraint for a signal that is supposed to be high only once
in PSL?


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

    What about:

    // psl assume_single_high_pulse: assume {!a[*];[a];!a[*]};


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


    Thanks jb.

    Tried it but it seems not to work.
    I can get two times a - even consecutively with this constraint applied.

    Might be due to to the last term in the sequence !a[*] - where !a[*0] (meta code) is a legal match.

    Any other suggestions?


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

    You need another constraint:

    // psl assume_no_second_pulse : assume never {a; !a[*]; a};


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

    The following single constrtaint seems to work:

    // psl no2a: assume never { a[->2] };

    It doesn't say that 'a' has to occur once, it only says that it can't occur twice.


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


    Thanks guys - both never version work great.

    I found another alternative: never {a[=2]};


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