• 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. Monte carlo results access through ocean

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 13453
  • 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

Monte carlo results access through ocean

SUHAS G
SUHAS G over 14 years ago

hi all,

i am running monte carlo on a simple inverter, i have made changes in the netlist and run the command "spectre input.scs" from the respective netlist folder. Monte carlo results are generated. input.raw file has all the simulation results. all i want to know is, how do i access these results through an ocean script?  or Can i dump the results to a text file directly by making changes in netlist? 

modified netlist is as shown below,

f// Generated for: spectre
// Generated on: Jun  2 12:02:20 2011
// Design library name: Tower_work_SG
// Design cell name: TEST_INVERTER
// Design view name: schematic
simulator lang=spectre
global 0
include "/tools/Tower/TS18SL_DF2/HOTCODE/amslibs/cds_default/cdslibs/ts18sl/models/default/spectre"
parameters AVDD=5
include "/tools/Tower/TS18SL_DF2/HOTCODE/amslibs/cds_default/cdslibs/ts18sl/models/default/spectre/global.scs" section=GLOBAL
include "/tools/Tower/TS18SL_DF2/HOTCODE/amslibs/cds_default/cdslibs/ts18sl/models/default/spectre/fet.scs" section=NOM
include "/tools/Tower/TS18SL_DF2/HOTCODE/amslibs/cds_default/cdslibs/ts18sl/models/default/spectre/bjt.scs" section=NOM
include "/tools/Tower/TS18SL_DF2/HOTCODE/amslibs/cds_default/cdslibs/ts18sl/models/default/spectre/accap.scs" section=NOM
include "/tools/Tower/TS18SL_DF2/HOTCODE/amslibs/cds_default/cdslibs/ts18sl/models/default/spectre/mimcap.scs" section=NOM
include "/tools/Tower/TS18SL_DF2/HOTCODE/amslibs/cds_default/cdslibs/ts18sl/models/default/spectre/mfc.scs" section=NOM
include "/tools/Tower/TS18SL_DF2/HOTCODE/amslibs/cds_default/cdslibs/ts18sl/models/default/spectre/res.scs" section=NOM
include "/tools/Tower/TS18SL_DF2/HOTCODE/amslibs/cds_default/cdslibs/ts18sl/models/default/spectre/diode.scs" section=NOM

// Library name: Tower_work_SG
// Cell name: TEST_INVERTER
// View name: schematic
V0 (Vin 0) vsource dc=0 type=pulse val0=0 val1=5 period=100n delay=0 \
        rise=100p fall=100p width=50n
C0 (OUT 0) capacitor c=50f
V1 (net5 0) vsource dc=AVDD type=dc
parameters x=0

subckt  xn5v dn gn sn bn
 
parameters lx=1.0  wx=12.0 ad=0 as=0 pd=0 ps=0 mx=1

M0 (dn gn sn bn) n5v w=wx l=lx ad=1.44 \
        as=1.44 pd=6.96 ps=6.96 m=(1)*(1)
     
+delvto= (x*10e-03/sqrt(lx*wx*mx*1e12))

ends xn5v



subckt  xp5v dp gp sp bp

M1 (dp gp sp bp) p5v w=12.0 l=1.0 ad=3.84 \
        as=3.84 pd=16.96 ps=16.96 m=(1)*(1)
ends xp5v

I1 (OUT Vin 0 0) xn5v
I2 (OUT Vin net5 net5) xp5v

//M1 (OUT Vin net5 net5) p5v w=8.0 l=1.0 as=3.84 ad=3.84 ps=16.96 pd=16.96 \
 //       m=(1)*(1)
//M0 (OUT Vin 0 0) n5v w=3.0 l=1.0 as=1.44 ad=1.44 ps=6.96 pd=6.96 m=(1)*(1)


mc1 montecarlo variations= mismatch seed =1234 numruns=20 savefamilyplots = yes saveprocessparams=yes 
 
+scalarfile= "mcdata"
+paramfile= "mcparam"
+processparamfile="processParam"
+processscalarfile="processData"
{
dc1 dc
tran1 tran stop= 1u
export mid = oceanEval ( "peakToPeak(v(\"OUT\")) /2")
export t1 = oceanEval ("cross(v(\"OUT\") mid 1 'rising)")
export t2 =oceanEval ("cross(v(\"OUT\") mid 1 'falling)")
export t3 =oceanEval ("cross(v(\"OUT\") mid 2 'rising)")
export on_time =oceanEval ("t2-t1")
export period  =  oceanEval ("t3-t1")
export duty_ratio = oceanEval("(on_time/period) *100")




}
statistics {
      mismatch {
            vary x dist= gauss std =1 percent=no
            }
      }

save x

simulatorOptions options reltol=1e-3 vabstol=1e-6 iabstol=1e-12 temp=27 \
    tnom=27 scalem=1.0 scale=1e-06 gmin=1e-12 rforce=1 maxnotes=5 \
    maxwarns=5 digits=5 cols=80 pivrel=1e-3 sensfile="../psf/sens.output" \
    checklimitdest=psf

tranCheckLimit checklimit checkallasserts=yes severity=none
   
tran tran stop=1u errpreset=moderate write="spectre.ic" \
    writefinal="spectre.fc" annotate=status maxiters=5
finalTimeOP info what=oppoint where=rawfile
dcOpCheckLimit checklimit checkallasserts=yes severity=none
dcOp dc write="spectre.dc" maxiters=150 maxsteps=10000 annotate=status
dcOpInfo info what=oppoint where=rawfile
modelParameter info what=models where=rawfile
element info what=inst where=rawfile
outputParameter info what=output where=rawfile
designParamVals info what=parameters where=rawfile
primitives info what=primitives where=rawfile
subckts info what=subckts  where=rawfile
asserts info what=assert  where=rawfile
save OUT
saveOptions options save=allpub subcktprobelvl=2
 
how do i access these results through an ocean script?  or Can i dump the results to a text file directly by making changes in netlist?  

thanks in advance.

Suhas 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    The results are directly available in the ASCII files mcdata and mcparams. You can also use the code in this solution http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNumber=11026072 to post-process the results from OCEAN.

    Regards,

    Andrew.

    • 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