• 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. RF Design
  3. Doing a swept simulation and for each simulated point save...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 63
  • Views 10679
  • 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

Doing a swept simulation and for each simulated point save the snp

TommasoF
TommasoF over 3 years ago

Hello everybody,

in a "sp" simulation there is the possibility to save the corresponding s2p in a file. If one enters a VAR (variable), he can also parametrize the corresponding file name.

On my testbench I create  several corners where each has a different content for the variable "output_file". Let's say

  • in "corner_v1" --> output_file="mysnp_v1.s2p"
  • in "corner_v2" --> output_file="mysnp_v2.s2p"
  • and so on...

when I run a sp simulation among 3 corners I get 3 snp files stored on the local folder. Each file correspond to a given corner.

To simplify the workload on my side, instead of creating corners, Is it possible to perform a variable sweep let's say from 0:1:10 and create 11 s2p files where each file is named with the corresponding index ? (e.g. "mysnp_0.s2p", "mysnp_1.s2p", "mysnp_2.s2p", ...,  "mysnp_10.s2p")

Thanks
Tommaso

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Tommaso,

    Assuming you're using ADE Explorer or Assembler, create a variable (say) "n", and your output_file variable with a SKILL expression (e.g. using lsprintf) as follows:

    n: 0:1:10
    output_file: lsprintf("mysnp_v%n.s2p" VAR("n"))

    This will do what you want.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TommasoF
    TommasoF over 3 years ago in reply to Andrew Beckett

    thank you Andrew, that works perfectly!

    • 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