• 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. How to execute runSimulation script not in other paths

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 126
  • Views 5645
  • 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

How to execute runSimulation script not in other paths

SpiceMonkey
SpiceMonkey over 1 year ago

Deer All, 

I have generated AMS netlist using ADE, there is a ksh script "runSimulation" in "/simPath/designName/ams/config/netlist"

First cd /simPath/designName/ams/config/netlist, then ./runSimulation, simulation run successfully.

While, if current directory is not under "*/netlist", execute "/absultePath/runSimulation" reports many files couldn't be found. Is there an elegant way to run this script in other directories?

Thank you!

  • Cancel
Parents
  • ShawnLogan
    ShawnLogan over 1 year ago

    Dear SpiceMonkey,

    SpiceMonkey said:
    While, if current directory is not under "*/netlist", execute "/absultePath/runSimulation" reports many files couldn't be found.

    If you look at the contents of a typical runSimulation command line, you will immediately observe why running it from a different directory results in the errors you report. For example, one of my runSImulation command line files is shown below:

    /tools/bin/spectre input.scs +escchars +log ../psf/spectre.out -format psfxl
    -raw ../psf +aps +mt=lsf +lqtimeout 0 -maxw 5 -maxn 5 -env ade +lorder
    MMSIM:PRODUCT +dcopt +disk_check=100e9 -ahdllibdir
    <path to ahdllibdir>/input.ahdlSimDB +logstatus

    The file has relative paths for the input.scs file, output spectre.out file, and psf directory. You might use a shell variable to include as an argument to runSImulation such that the syntax is:

    runSimulation <path to results directory>

    where the "results" directory has the two subdirectories "psf" and netlist"

    and modify the command line to something like:

    /tools/bin/spectre $1/netlist/input.scs +escchars +log $1/psf/spectre.out -format psfxl
    -raw $1/psf +aps +mt=lsf +lqtimeout 0 -maxw 5 -maxn 5 -env ade +lorder
    MMSIM:PRODUCT +dcopt +disk_check=100e9 -ahdllibdir
    <path to ahdllibdir>/input.ahdlSimDB +logstatus

    You might add these few lines as a reminder of the command syntax:

    f [ $# -ne 1 ]; then

       echo "Usage: runSimulation  <path to results directory>"

       exit 127

    fi

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • SpiceMonkey
    SpiceMonkey over 1 year ago in reply to ShawnLogan

    Thank you for your reply, actually I tried to modify the paths inside the script, as Andrew said, there are too many...

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • SpiceMonkey
    SpiceMonkey over 1 year ago in reply to ShawnLogan

    Thank you for your reply, actually I tried to modify the paths inside the script, as Andrew said, there are too many...

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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