• 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. Custom IC Design
  3. Syntax for device check violation file assert statement

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 126
  • Views 16080
  • 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

Syntax for device check violation file assert statement

highspeedio
highspeedio over 8 years ago

Hello,

I would like to ask how to write device check violation files (for example devcheck.scs) I can include in my model files and use to check for violations.

I believe the correct syntax for example for a vgs voltage check would be:

nmos_name assert mod=nmos_model_name expr="v(g)-v(s)" max =[max_voltage] duration=[duration of violation]

Let's say I want to modify the above assert statement so it checks only when another condition is true: I want to check vgs voltage only when vgd>0 for example

or when ids >0.  How would I write that?

Thank you!

  • Cancel
Parents
  • Frank Wiedmann
    Frank Wiedmann over 8 years ago

    You can use the ternary operator (https://en.wikipedia.org/wiki/%3F:) in the expression. The documentation for the device checks is in chapter 12 of the Spectre Circuit Simulator and Accelerated Parallel Simulator User Guide (https://support.cadence.com/apex/techpubDocViewerPage?path=spectreuser/spectreuser16.1/chap12.html).

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Frank Wiedmann
    Frank Wiedmann over 8 years ago

    You can use the ternary operator (https://en.wikipedia.org/wiki/%3F:) in the expression. The documentation for the device checks is in chapter 12 of the Spectre Circuit Simulator and Accelerated Parallel Simulator User Guide (https://support.cadence.com/apex/techpubDocViewerPage?path=spectreuser/spectreuser16.1/chap12.html).

    • 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