Home > Community > Forums > Custom IC SKILL > how to create a runobjfile to plot a family of curves by using ocean skill.

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: *

 how to create a runobjfile to plot a family of curves by using ocean skill. 

Last post Wed, Aug 1 2012 6:52 PM by FredWang. 3 replies.
Started by foxest 24 Apr 2010 10:01 AM. Topic has 3 replies and 2968 views
Page 1 of 1 (4 items)
Sort Posts:
  • Sat, Apr 24 2010 10:01 AM

    • foxest
    • Not Ranked
    • Joined on Sat, Apr 24 2010
    • Posts 1
    • Points 20
    how to create a runobjfile to plot a family of curves by using ocean skill. Reply

    I use ocean to run the corners analysys, i can save all the corner results,but can not gather the results together to plot family of waves.

    Comparing to the corner or param analysys in ADE, i found i do not create a RUNOBJFILE to combine all the results.How to create such

    a runobjfile or there are other methods instead? thanks.

    that is my ocean script:

    ocnWaveformTool( 'wavescan )
    simulator( 'spectre )
    design´╝ł"/home/hlq/simulation/testbench_UX2018B/spectre/schematic/netlist/netlist")
    p=outfile("/home/hlq/ocean/result.txt" "w")
    cor1='(
    "/home/hlq/tsmc/tmodel/ss.scs"
    "/home/hlq/tsmc/tmodel/ff.scs"
    "/home/hlq/tsmc/tmodel/fs.scs"
    "/home/hlq/tsmc/tmodel/sf.scs"
    )
    tmp='(-40 85)
    vdd1='(2.97 3.63)
    foreach(cor2 cor1
    foreach(temp tmp
    foreach(vdd2 vdd1
    model=list(cor2 "")
    if(cor2=="/home/hlq/tsmc/tmodel/ss.scs"
    corn="ss")
    if(cor2=="/home/hlq/tsmc/tmodel/ff.scs"
    corn="ff")
    if(cor2=="/home/hlq/tsmc/tmodel/fs.scs"
    corn="fs")
    if(cor2=="/home/hlq/tsmc/tmodel/sf.scs"
    corn="sf")
    modelFile(
        model ""
    )
    resultsDir(sprintf(nil "/home/hlq/ocean/%fV%dC%s" vdd2 temp corn ))
    analysis('ac ?start "1"  ?stop "10G"  )
    analysis('xf ?start "1"  ?stop "10G"  ?p "/outp"  )
    analysis('noise ?start "1"  ?stop "10G"  ?p "/outp" 
      ?n "/outn"  ?oprobe ""  ?iprobe "/I2"  )
    analysis('dc ?saveOppoint t  )
    desVar(   "amp" 2u )
    desVar(   "vdd" vdd2 )
    desVar(   "cpink" 2.2n )
    desVar(   "idd" 0 )
    option( 'temp  "temp"
    )

    temp( temp )
    run()
    ICC = IDC("/V0/MINUS")
    GAIN = dB20(value(VF("/outp") 100000000))
    noise = abs((rmsNoise(1 940000000) / value((VF("/outp") - VF("/outn")) 100000000)))*1000000000
    bw = bandwidth((VF("/outp") - VF("/outn")) 3 "band")
    vpink = VDC("/net054")
    vin = VDC("/net21")
    vout = VDC("/net047")
    peaking = (ymax(dB20(clip(VF("/outn") 100000000 3e+09))) - dB20(value(VF("/outn") 100000000)))
    LC = bandwidth(clip(VF("/outp") 1 10000000) 3 "high")
    PSRR4M = value(db(getData("/V0" ?result "xf")) 4000000)
    fprintf(p,  "%dC %fV %s %fA %fnA %fHZ %fdB %fHZ %fdB \n" temp vdd2 corn ICC noise bw peaking LC PSRR4M)
    )
    )
    )
    close(p)

     

    • Post Points: 20
  • Tue, May 4 2010 5:25 AM

    Re: how to create a runobjfile to plot a family of curves by using ocean skill. Reply

    I don't think there's a standard public function to do this. Worth contacting Customer Support as it's a worthwhile enhancement request. I may be wrong of course, and may have overlooked the existing of a function for this...

    Regards,

    Andrew.

    • Post Points: 20
  • Tue, May 4 2010 7:08 AM

    • vivkr
    • Top 150 Contributor
    • Joined on Mon, Oct 12 2009
    • Posts 49
    • Points 860
    Re: how to create a runobjfile to plot a family of curves by using ocean skill. Reply

    I would also like to do something similar. I even have a runObjFile but the simulations are only indexed by run number. I would have liked to add the swept variables as well so that I could plot the results versus one or the other swept variable. Unfortunately, I don't know the syntax to use for manipulating the runObjFile. My attempts at tinkering were not very useful. Any suggestions on adding parameters to the runObjFile would be welcome.

    You can see an extract from the "doctored" version of my runObjFile, where I tried to add sweep variables "var1" and "var2".

    Thanks,

    Vivek

    TYPE
    "runObject" STRUCT(
    "logName" ARRAY( * ) STRING *
    "parent" STRING *
    "sweepVariable" ARRAY( * ) STRING *
    ) PROP( "key" "runObject" )
    VALUE
    "Root" "runObject" (
    ("")
    ""
    ("run")
    ("var1")
    ("var2")

    )
    "../run000/psf" "runObject" (
    (
    "../run000/psf/logFile"
    )
    "Root"
    ()
    ) PROP(
    "dataDir" "../run000"
     "run" 0
     "var1" 0
     "var2" 0.7

    )

    "../run001/psf" "runObject" (
    (
    "../run001/psf/logFile"
    )
    "Root"
    ()
    ) PROP(
    "dataDir" "../run001"
     "run" 1
    "var1" 0
    "var2" 0.75

    )

    • Post Points: 20
  • Wed, Aug 1 2012 6:52 PM

    • FredWang
    • Not Ranked
    • Joined on Mon, Jul 9 2012
    • Raleigh, NC
    • Posts 5
    • Points 55
    Re: how to create a runobjfile to plot a family of curves by using ocean skill. Reply
    I kind of figured out a way to deal with this, in case anyone needs it. The best tool to generate the runObjFile is probably the Parametric Analysis itself. To use this, you will have to configure the parametric thing the way you normally do, but in the Ade Analyses list, only leaves dc enabled, which will cost less time for it to simulate. The runObjFile will be available in the tmp directory only after the sweep is finished.
    However, you may still need to put your results into a var-named folder structure manually.
    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by foxest at 24 Apr 2010 10:01 AM. Topic has 3 replies.