• 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. sweeping nport file name with ADEXL

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 64
  • Views 16356
  • 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

sweeping nport file name with ADEXL

RoiNaor
RoiNaor over 8 years ago
Hi, I saw a thread on that before but the answers were not very clear. I want to sweep the filename of a nport cell. lets say the filename is called sp1.s2p. now i have 100 different files sp1.s2p sp2.s2p ... sp100.s2p. I want to sweep them all using a global variable. The first thing i did is define the file name as a variable in the "Additional parameter list" (file=filename) then i added a global variable called filename = "path/sp1.s2p" this works well. the problem is how i create a second var that will concatenate inside the filename? Is there a better way to do that? Thanks
  • Cancel
  • Frank Wiedmann
    Frank Wiedmann over 8 years ago

    Specify an include path (as described in https://community.cadence.com/cadence_technology_forums/f/38/t/36287). If this is not what you need, you have to describe your goal in a clearer way.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    In addition to what Frank mentions, if your filenames are regularly named (e.g. sp1.s2p, sp2.s2p, sp3.s2p) you can arrange the sweep without having to list all the filenames - you have to be using ADE XL (or Assembler/Explorer) for this though. Here's some notes I had when looking into this a few months ago:

    There's no need to list the full path of each s-parameter file. I created an example with three files, called A1.s2p, A2.s2p, A3.s2p. The parameter was called MYFILE, and the files were in a directory called sparamFiles.

    I set the include path on the test to include the sparamFiles directory and then set MYFILE in the ADE XL Global variables to be:

    "A1.s2p","A2.s2p","A3.s2p"

    and it works file. So no need for full paths.

    Now, if the files are regularly named, you can take advantage of the fact that Global variables in ADE XL are evaluated using SKILL. So, create a second Global variable called n, with value 1:1:3 (1 to 3 in steps of 1). Then I set:

    MYFILE: sprintf(nil "A%d.s2p" n)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RoiNaor
    RoiNaor over 8 years ago
    thank you Andrew! worked pretty well!
    • 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