• 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 SKILL
  3. Running multiple AC simulations with multiple stimulus files...

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 16170
  • 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

Running multiple AC simulations with multiple stimulus files using Ocean Script

lartola
lartola over 13 years ago

Dear all,

I would run multiple AC simulations (with Spectre simulator) using an Ocean Script. However I would change for each loop the stimulus file. I don't know how to specify the changing of the name of the stimulus file for each run.

 

Thanks in advance for  your help

 

laurent 

  • Cancel
Parents
  • lartola
    lartola over 12 years ago

    Dear Andrew,

    i've worked on the ocean script for running multiple AC simulation as you said me. However I get a problem. Actually the loop works perfectly but the simulator seems don't used the correct stimulus file. If I check the netlist file all of the used stimulus are present but when I check the simulated data something seems wrong.

    Actually, the simulator seems add loop after loop each the stimulus files. I Need to perform a reset for each run or something like that ? Following the current ocean script i'm using:

    ;------------- Initialization -------------------------------------

    simulator( 'spectre )

    design( "**********/spectre/schematic/netlist/netlist")

    definitionFile( "models.scs")

    stimulusFile( ?xlate nil "/*******/spectre/schematic/netlist/_graphical_stimuli.scs")

    temp( 23.0 )

    TotalRun = 3

    ;-----------------------------------------------------------------

    ;------------- Automatic electrical runs -------------------------

    ;-----------------------------------------------------------------

    Tempfile1 = outfile( "/************net6_testpostprocess.txt" "w")

    Tempfile2 = outfile( "/************net7_testpostprocess.txt" "w")

    for(i 1 TotalRun

    stimulusFile( ?xlate nil sprintf( nil "/*********Stimulis_test_MUSCA_SETcurrent_SRAM_%d.txt" i))

    analysis('tran ?stop "0.055E-6" ?method "trap")

    envOption( 'analysisOrder list("tran"))

    option( 'temp "23.0" )

    run()

    results()

    selectResult( 'tran )

    plot(getData("/I4/A") getData("/net06") getData("/net7") getData("/WL") getData("/BLbarre") getData("/BL"))

    ocnPrint( v("/net06") ?output Tempfile1 ?numberNotation 'none ?precision 15 ?width 20)

    ocnPrint( v("/net7") ?output Tempfile2 ?numberNotation 'none ?precision 15 ?width 20)

    )

    close(Tempfile1)

    close(Tempfile2)

    printf("Simulation complete")

    Thanks in advance for your time Regards Laurent

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • lartola
    lartola over 12 years ago

    Dear Andrew,

    i've worked on the ocean script for running multiple AC simulation as you said me. However I get a problem. Actually the loop works perfectly but the simulator seems don't used the correct stimulus file. If I check the netlist file all of the used stimulus are present but when I check the simulated data something seems wrong.

    Actually, the simulator seems add loop after loop each the stimulus files. I Need to perform a reset for each run or something like that ? Following the current ocean script i'm using:

    ;------------- Initialization -------------------------------------

    simulator( 'spectre )

    design( "**********/spectre/schematic/netlist/netlist")

    definitionFile( "models.scs")

    stimulusFile( ?xlate nil "/*******/spectre/schematic/netlist/_graphical_stimuli.scs")

    temp( 23.0 )

    TotalRun = 3

    ;-----------------------------------------------------------------

    ;------------- Automatic electrical runs -------------------------

    ;-----------------------------------------------------------------

    Tempfile1 = outfile( "/************net6_testpostprocess.txt" "w")

    Tempfile2 = outfile( "/************net7_testpostprocess.txt" "w")

    for(i 1 TotalRun

    stimulusFile( ?xlate nil sprintf( nil "/*********Stimulis_test_MUSCA_SETcurrent_SRAM_%d.txt" i))

    analysis('tran ?stop "0.055E-6" ?method "trap")

    envOption( 'analysisOrder list("tran"))

    option( 'temp "23.0" )

    run()

    results()

    selectResult( 'tran )

    plot(getData("/I4/A") getData("/net06") getData("/net7") getData("/WL") getData("/BLbarre") getData("/BL"))

    ocnPrint( v("/net06") ?output Tempfile1 ?numberNotation 'none ?precision 15 ?width 20)

    ocnPrint( v("/net7") ?output Tempfile2 ?numberNotation 'none ?precision 15 ?width 20)

    )

    close(Tempfile1)

    close(Tempfile2)

    printf("Simulation complete")

    Thanks in advance for your time Regards Laurent

    • 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