• 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. Spectre assert output message - printing a variable

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 1951
  • 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

Spectre assert output message - printing a variable

Shico90
Shico90 over 5 years ago

Hello,

Is it possible in spectre assert statement to print in the warning message a parameter or a variable?

For exmaple something like this 

pmos_vgs assert mod=pch expr="(abs(V(g,s))>1.3)" message="Maximum gate source voltage exceeded the limit %d",abs(V(g,s))) duration=0.1n

I know the message doesn't work but is there something like this?

Thanks

Sherif

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    Hi Sherif,

    Don't write the expression as a condition. Instead do this:

    pmos_vgs assert mod=pch expr="abs(V(g,s))" max=1.3 message="Maximum gate source voltage exceeded the limit" duration=0.1n

    It will then show the value of the expression when it violated the min/max. Note, I didn't test this, but something along these lines should work.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Shico90
    Shico90 over 5 years ago in reply to Andrew Beckett

    Thanks a lot Andew !!

    Sherif

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Frank Wiedmann
    Frank Wiedmann over 5 years ago in reply to Shico90

    You also might want to take a look at https://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNumber=20370332 and https://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNumber=20402385.

    • 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