• 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. Saving S parameters to an specific directory and with swept...

Stats

  • Replies 3
  • Subscribers 125
  • Views 1545
  • Members are here 0

Saving S parameters to an specific directory and with swept variables.

IM202411276820
IM202411276820 4 months ago

I have been dealing with this the whole day, trying to save a sweep of S parameters in Assembler

I created a global variable called Sfile, defined as:

Sfile   sprintf(nil "/home/ma045619/simulation/Spar/hello_VGC%d_VPKC%d_VATC%d_temp%d.s4p" VGC VPKC VATC temperature)

The variables are just control signal values.

For sprintf, syntax seems correct.

Directory exists, 

S parameter simulation has the output file as:

VAR("Sfile")

But the simulator complains about the first  forward slash character "/"

Cannot run the simulation because syntax error `Unexpected operator "/"' was encountered at line 11, column 10

I tried all the typical C syntax variations but nothing seems to work.

The solution should be simple, but I guess it is some SKILL specific syntax.

  • Sign in to reply
  • Cancel
  • IM202411276820
    IM202411276820 4 months ago

    It seems the path must be in double quotes " ", I tried lsprintf with quotes but Virtuoso just hangs and crashes....

    lsprintf("\"/home/ma045619/simulation/Spar/hello_VGC%d_VPKC%d_VATC%d_temp%d.s4p\""  VGC VPKC VATC temperature)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew Beckett
    Andrew Beckett 4 months ago in reply to IM202411276820

    Which version of Virtuoso are you using? I just tried this in IC23.1 ISR13 and it worked fine (with either design variables or global variables). Here's my setup (I didn't need extra quotation marks; I used lsprintf instead of sprintf just to avoid the nil argument):

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • IM202411276820
    IM202411276820 4 months ago in reply to Andrew Beckett

    Yes it is version related, I was using 500.34, and upgraded to 500.36 and later to Virtuoso Studio.

    My data collection is now working properly, but I was truly stuck thinking it was a syntax.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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