• 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. Mixed-Signal Design
  3. Setup Spectre simulation in batch mode

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 64
  • Views 15627
  • 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

Setup Spectre simulation in batch mode

pyohayo
pyohayo over 6 years ago

Hello,

How to setup Spectre simulations in batch mode according to the following scenario:

  • circuit - the same for all runs
  • each run use a particular .vcd stimuli
  • once i-th simulation finished, results are saved in a particular folded (for post-processing) ... not to be crushed by i+1 th simulation

I beleive that netlist for each of N cases must be generated in advance, then all these netlists are processed in a loop that should be created somewhere ?

Thanks

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    You could also do this easily with OCEAN:

    vcdfiles=list(list("vcd1.vcd" "vcd1.info") list("vcd2.vcd" "vcd2.info"))
    simulator('spectre)
    design(lib cell view "r")
    analysis(...)
    runNum=1
    foreach(vcdfile vcdfiles
      vcdFile(car(vcdfile))
      vcdInfoFile(cadr(vcdfile))
      resultsDir(sprintf(nil "/path/to/results/vcdResults%d" runNum))
      run()
      runNum++
    )

    Something like that. This is completely untried, but it should work.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • pyohayo
    pyohayo over 6 years ago in reply to Andrew Beckett

    I tried with Ocean.

    I've sligthle modified your code - I use the same info for 4 .vcd.

    Here is reduced of ocean file (I removed not-relevant sections, e.g. modelFile and definitionFile).

    ocnWaveformTool( 'wavescan )
    simulator( 'spectre )
    design( "path-to-project-directory/simulation/data/slice_test/spectre/schematic/netlist/netlist")
    resultsDir( "path-to-project-directory/simulation/data/slice_test/spectre/schematic" )
    projectDir = "{path-toproject-directory}"
    vcdfiles=list("slow_000.vcd" "slow_111.vcd" "fast_000.vcd" "fast_111.vcd")
    vcdInfoFile(
    "path-to-project-directory/slow_fast.info"
    )
    analysis('tran ?stop "950u" ?errpreset "moderate" )
    desVar( "qin2" 1p )
    desVar( "qin" 58f )
    option( 'maxnotestologfile "1000"
    'maxwarnstologfile "1000"
    'maxwarns "1000"
    'warn "yes"
    'maxnotes "1000"
    )
    option( ?categ 'turboOpts 'uniMode "Turbo"
    )
    saveOption( 'subcktprobelvl "" )
    saveOption( 'nestlvl "4" )
    saveOption( 'save "lvlpub" )
    temp( 27 )
    run()
    runNum=1
    foreach(vcdfile vcdfiles
       vcdFile(strcat(projectDir vcdfile))
       resultsDir(sprintf(nil "path-to-project-directory/vcdResults%d" runNum))
       run()
       runNum++
    )

    Obviously Spectre did only one run ... but created 4 different directories (vcdResults1 ... vcdResults4) that contain the same data.

    I checked vcdResults1 ... vcdResults4 creation time - they are the same.

    • 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