• 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. How to save value of global parameter in Spectre

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 14417
  • 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

How to save value of global parameter in Spectre

svcher
svcher over 9 years ago

Hello,


Is there a way to save value of a global parameter in Spectre?

For example, below I use global parameter "fo" to define frequency of AC simulation.  Can I save it together with other simulation results, like current through "v1" in this example?  Is there syntax similar to HSPICE's ".print par('fo')"?

Thanks!

======================================

c1 (1 0) capacitor c=1e-15

v1 (1 0) vsource dc=0 mag=1

parameters fo=1e6

ac1 ac freq=fo

save v1:n

======================================

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Yes, you can use the "info" analysis in spectre. If you just want it to appear on the screen, you can put:

    params info what=parameters where=screen

    in the netlist. Or where=logfile to appear in the log file, or where=file (and optionally file="file.txt" to change the default file), or you where=rawfile in which case it will save it in a  database you can open in ViVA.

    See "spectre -h info" for more details.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • svcher
    svcher over 9 years ago
    Thank you Andrew, I was hoping I could get it in the same bunch as the currents and voltages, but info should be fine as well.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    If you use rawfile it would still show up in the ViVA results browser just like ac - so that ought to be straightforward enough? I know in this case you're not doing a sweep in the ac, but in the general case where you'd do a sweep of something (e.g. frequency) in the ac, you'd not want to have the parameter in the ac results at each frequency. Also if you did a tran, dc, pss etc - you wouldn't want it in each and every one. The parameter is nothing to do with the specific analysis, which is why spectre has this logical distinction and can save the results of such things in invocations of the info analysis.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • svcher
    svcher over 9 years ago
    I understood the logic, thank you.
    • 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