• 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. VerilogA Variables when using Trasient Restart in Spect...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 13283
  • 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

VerilogA Variables when using Trasient Restart in Spectre

TjaartOpperman
TjaartOpperman over 14 years ago
I'm a running a simulation with some of my custom VerilogA modules included. In these modules I have some variables that vary throughout the simulation, and there are many instances of these modules. The circuit that I am simulating is also a very large circuit. I am therefore running it in liberal mode and not storing any current. At some timepoint, I need to debug the circuit. So now I am trying to restart the circuit using the file specified by the "writefinal" command from the previous sim. But as I was investigating the final transient solution file, I did not seem to recognize any lines specifying the values of the internal variables of my custom VerilogA modules. Are these variables saved by the "writefinal" command? If not, there must be a way to save the values of these variables to some file at the end of the simulation manually? But then, will it at all be possible to read such a file at the start of the next simulation, and force the variables to their correct values?
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Using writefinal for this is keeping an incomplete state of the circuit - that's intended to be a nodeset, and is not really geared up to do a full restart.

    Instead use the save parameters on tran (i.e. saveperiod/saveclock/savetime/savefile - see "spectre -h tran" for more details), and then use the recover parameter to restart simulation from the saved file. Note that when you do this,it automatically starts at the time the save occurred at (no need to mess around with tstart, etc). These parameters are designed for storing the state of the simulator at a particular point (or points) in time.

    Regards,

    Andrew.

    • 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