• 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. Ocean script sample for MonteCarlo simulation

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 125
  • Views 18514
  • 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

Ocean script sample for MonteCarlo simulation

lunren
lunren over 15 years ago

Dear all,

 I am new to Ocean script, I am wondering if somebody give me a sample of ocean script for monte carlo simulation.

Links, or paste at here works.

 Thanks a lot

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    The simplest way to get a sample script is to set it up using Tools->Monte Carlo in ADE in IC5141 or using "Monte Carlo Sampling" run mode in ADE XL in IC613, and then use the Save OCEAN Script menu in each environment.

    Then you can easily generate your own example from the interactive environment.

    I thought it better to "teach a man to fish" rather than "give a man a fish"...

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 15 years ago

     If you don't have access to the MC gui here's an example:

     

    ocnWaveformTool( 'wavescan )
    simulator( 'spectre )
    design(  "/simulation/ampTest/spectre/schematic/netlist/netlist")
    resultsDir( "simulation/ampTest/spectre/schematic" )
    modelFile(
        '("/Models/InlineModels.scs" "")
    )
    analysis('tran ?stop "1u"  )
    desVar(   "CAP" 0.8p    )
    envOption(
            'firstRun  t
    )
    converge( 'ic "/vin" "0" )
    converge( 'nodeset "/net5" "0" )
    temp( 27 )
    monteCarlo( ?numIters "100" ?startIter "1"
        ?analysisVariation 'process ?sweptParam "None"
        ?sweptParamVals "27" ?saveData nil
        ?nomRun "yes" ?append nil
        ?saveProcessParams t
    )
    monteRun()
     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    Although I'm not really sure why somebody would have access to OCEAN, but not the ADE monte carlo user interface ...

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 15 years ago

    If they're in IC6.1...they can't create this simple monteRun script since there's no MC in ADE-L.  They can only create a huge Ocean-XL non-monteRun() script.

    -Samir

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    Yes, but that's the way to do monte carlo in IC61. There is now support for the old fashioned approach from ISR 14 onwards, but I would use that as an intermediate step for compatibility; Migrating to the ADE XL/OCEAN XL methodology has some advantages...

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lunren
    lunren over 15 years ago

    The problem in our situation is that our model do not have process parameters in the montecarlo model. So if we use ADE to run montecarlo, we need to change model file from time to time (tt, ss, ff, ...). So I use script to run montecarlo in a loop and all the corner are included.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    So why do you want to use monte carlo if there are no process parameters - surely it's meaningless to pick random corners? Monte carlo can't work this way, and I don't think it makes any sense.

    Wouldn't a carefully chosen set of corners be of more value?

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • aplumb
    aplumb over 15 years ago
    There's always MC mismatch-only @ corners. Perhaps that's what they're trying to do.?.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    Andrew,

    Maybe, although statistical mismatch data is normally harder to get than statistical process data, so it seems odd. And even then, I'm not sure randomly changing the corner within a monte carlo has any meaning.

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • aplumb
    aplumb over 15 years ago
    Ah, missed that bit about randomized corners. I was thinking more along the lines of nested MC-at-each-Corner.
    • 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