• 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 SKILL
  3. Saving a voltage value at a specific time to a file for...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 6457
  • 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

Saving a voltage value at a specific time to a file for a large array

Andrew Matthews
Andrew Matthews over 2 years ago

Hi,

I would like to save a voltage value at a specific time point during a transient simulation, for a large array of instance.

The array of instance are connected in a grid like fashion and I would like to save the net voltage in every instance of the array.

I have done some research, and found that I can accomplish this with a wildcard save in a separate spectre file.

For example, my spectre file (save.scs) looks like this:

simulator lang=spectre

save I0*.*net20 depth=5

I'm a little confused on the save function. I have depth=5 cause there is 5 levels of hierarchy between "I0" and "net20".

Also I believe this will save the entire waveform, while I just want a single voltage value at a specific time point.

Also I'm not sure where this is being saved to; Ideally I'd like to save the voltage value to a specified file.

Can anyone assist me with this?

  • Cancel
Parents
  • Andrew Matthews
    Andrew Matthews over 2 years ago

    An example of the net I am trying to save has a this hierarchy path:

    I0.I4.I5<0>.I18.I7.net20

    The I5, I18, and I7 can vary throughout the entire array which is why I am using the wildcard I0.I4*.*net20 to capture all the net20's at that level of the design.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Matthews
    Andrew Matthews over 2 years ago

    An example of the net I am trying to save has a this hierarchy path:

    I0.I4.I5<0>.I18.I7.net20

    The I5, I18, and I7 can vary throughout the entire array which is why I am using the wildcard I0.I4*.*net20 to capture all the net20's at that level of the design.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to Andrew Matthews

    OK, it's slightly tricky to do this, but can be done as follows:

    1. The save statement doesn't need the depth=5 (that just asks it to also save nodes 5 levels below the matched subckt - the wildcards in your case will match the relevant node names)
    2. Create an info analysis as follows:
      myInfo info what=oppoint oppoint=node where=file file="dump.txt" save=selected
    3. Add these parameters to the tran analysis
      infotimes=[10.1n] infoname=myInfo

    That should tell it to dump to an ASCII file just the node voltages on the selected nodes at the specific time in the infotimes parameter.

    If you wanted the node voltages in a PSF database, you can do that with this instead:

    myInfo info what=oppoint oppoint=node where=rawfile save=selected

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Matthews
    Andrew Matthews over 2 years ago in reply to Andrew Beckett

    This worked perfectly 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