Home > Community > Forums > Custom IC Design > Ocean script sample for MonteCarlo simulation

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Ocean script sample for MonteCarlo simulation 

Last post Wed, Oct 21 2009 12:29 PM by aplumb. 10 replies.
Started by lunren 02 Oct 2009 01:01 PM. Topic has 10 replies and 9832 views
Page 1 of 1 (11 items)
Sort Posts:
  • Fri, Oct 2 2009 1:01 PM

    • lunren
    • Top 500 Contributor
    • Joined on Thu, Oct 1 2009
    • Posts 21
    • Points 315
    Ocean script sample for MonteCarlo simulation Reply

    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

    • Post Points: 35
  • Sat, Oct 3 2009 9:39 AM

    Re: Ocean script sample for MonteCarlo simulation Reply
    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
    • Post Points: 5
  • Mon, Oct 19 2009 10:11 AM

    • AMSamirj
    • Not Ranked
    • Joined on Thu, Sep 11 2008
    • <?xml version="1.0" encoding="utf-16"?><string>San Jose, CA</string>
    • Posts 11
    • Points 855
    Re: Ocean script sample for MonteCarlo simulation Reply

     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()
     

    • Post Points: 20
  • Tue, Oct 20 2009 5:44 PM

    Re: Ocean script sample for MonteCarlo simulation Reply
    Although I'm not really sure why somebody would have access to OCEAN, but not the ADE monte carlo user interface ...

    Regards,

    Andrew
    • Post Points: 20
  • Wed, Oct 21 2009 9:38 AM

    • AMSamirj
    • Not Ranked
    • Joined on Thu, Sep 11 2008
    • <?xml version="1.0" encoding="utf-16"?><string>San Jose, CA</string>
    • Posts 11
    • Points 855
    Re: Ocean script sample for MonteCarlo simulation Reply

    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

    • Post Points: 35
  • Wed, Oct 21 2009 12:00 PM

    Re: Ocean script sample for MonteCarlo simulation Reply
    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
    • Post Points: 5
  • Wed, Oct 21 2009 12:02 PM

    • lunren
    • Top 500 Contributor
    • Joined on Thu, Oct 1 2009
    • Posts 21
    • Points 315
    Re: Ocean script sample for MonteCarlo simulation Reply

    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.

    • Post Points: 20
  • Wed, Oct 21 2009 12:12 PM

    Re: Ocean script sample for MonteCarlo simulation Reply
    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
    • Post Points: 20
  • Wed, Oct 21 2009 12:18 PM

    • aplumb
    • Top 75 Contributor
    • Joined on Wed, Jul 16 2008
    • Ottawa, Ontario
    • Posts 80
    • Points 1,230
    Re: Ocean script sample for MonteCarlo simulation Reply
    There's always MC mismatch-only @ corners. Perhaps that's what they're trying to do.?.
    • Post Points: 20
  • Wed, Oct 21 2009 12:26 PM

    Re: Ocean script sample for MonteCarlo simulation Reply
    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
    • Post Points: 20
  • Wed, Oct 21 2009 12:29 PM

    • aplumb
    • Top 75 Contributor
    • Joined on Wed, Jul 16 2008
    • Ottawa, Ontario
    • Posts 80
    • Points 1,230
    Re: Ocean script sample for MonteCarlo simulation Reply
    Ah, missed that bit about randomized corners. I was thinking more along the lines of nested MC-at-each-Corner.
    • Post Points: 5
Page 1 of 1 (11 items)
Sort Posts:
Started by lunren at 02 Oct 2009 01:01 PM. Topic has 10 replies.