• 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. how can i print monte-carlo variance(like show in histograms...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 1047
  • 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

how can i print monte-carlo variance(like show in histograms graph)?

ronis
ronis over 14 years ago

 hi,

i worte the foolowing script in order to cheak the effeft of VDD AND Temperature on the process variation.

the script is ok, but when i try to print the result to file using the commend:

 'ocnPrint(?output fp ts)'    (ts is expresion, fp isport to file)

it print some value, i think it the maximum result of the si,ulation of montecarlo.

i want to print only the  variance f the histograms graph of the result, how can i do it please???

 

the script is:

 

;====================== Set to XL mode =========================================
ocnSetXLMode()
ocnxlProjectDir( "/vlsi-netapp/vol1/home/stu18/simulation" )
ocnxlTargetCellView( "final_project" "FULL_ADDER_DML_TB" "adexl" )
ocnxlResultsLocation( "" )
ocnxlSimResultsLocation( "" )

;====================== Tests setup ============================================

;---------- Test "final_project:FULL_ADDER_DML_TB:1" -------------
ocnxlBeginTest("final_project:FULL_ADDER_DML_TB:1")
simulator( 'spectre )
design( "final_project" "FULL_ADDER_DML_TB" "schematic")
modelFile(
    '("/vlsi-netapp/vol2/PDK/TS18SL-MT/SPICE/DRS2_0018B_4_3_6/montetest.scs" "")
    '("/vlsi-netapp/vol2/PDK/TS18SL-MT/SPICE/DRS2_0018B_4_3_6/tsl018.scs" "tt_18")
    '("/vlsi-netapp/vol2/PDK/TS18SL-MT/SPICE/DRS2_0018B_4_3_6/tsl018.scs" "tt_18dll")
    '("/vlsi-netapp/vol2/PDK/TS18SL-MT/SPICE/DRS2_0018B_4_3_6/tsl018.scs" "tt_hv")
    '("/vlsi-netapp/vol2/PDK/TS18SL-MT/SPICE/DRS2_0018B_4_3_6/tsl018.scs" "tt_5v")
    '("/vlsi-netapp/vol2/PDK/TS18SL-MT/SPICE/DRS2_0018B_4_3_6/tsl018.scs" "tt_nlv")
)
vecFile(
    "/vlsi-netapp/vol1/home/stu18/vec_file"
)
hlcheck( "off" )
analysis('tran ?stop "1200000n"  ?errpreset "conservative"  )
desVar(      "GND" 0    )
desVar(      "VDD" 0.6    )
envOption(
    'analysisOrder  list("tran")
)
temp( 27 )
ocnxlOutputSignal( "/Cin" ?plot t)
ocnxlOutputSignal( "/CLK" ?plot t)
ocnxlOutputSignal( "/B" ?plot t)
ocnxlOutputSignal( "/A" ?plot t)
ocnxlOutputSignal( "/CARRY_OUT" ?plot t)
ocnxlOutputSignal( "/SUM" ?plot t)
ocnxlOutputExpr( "delay(VT(\"Cin\") (VAR(\"VDD\") / 2) 3 \"rising\" VT(\"SUM\") (VAR(\"VDD\") / 2) 4 \"rising\" 0 0 nil nil ?td1 0.0 ?td2 0.0 ?td2r0 nil ?stop nil)" ?name "t_s" ?plot t)
ocnxlEndTest() ; "final_project:FULL_ADDER_DML_TB:1"

;====================== Sweeps setup ===========================================
ocnxlSweepVar("GND" "0")
ocnxlSweepVar("VDD" "0.6")

;====================== Model Group setup ==========================================

;====================== Corners setup ==========================================
ocnxlCorner( "C1"
   '(
      ("variable" "temperature" "0:50:100")
      ("variable" "VDD" "0.2:0.2:0.6")
      ("model" "/vlsi-netapp/vol2/PDK/TS18SL-MT/SPICE/DRS2_0018B_4_3_6/montetest.scs" ?section "")
      ("model" "/vlsi-netapp/vol2/PDK/TS18SL-MT/SPICE/DRS2_0018B_4_3_6/tsl018.scs" ?section "\"ff_18\"")
      ("modelGroup" "")
   )
)

;====================== Test v/s corners setup =================================

;====================== Job setup ==============================================
ocnxlJobSetup( '(
    "blockemail" "1"
    "configuretimeout" "300"
    "distributionmethod" "Local"
    "lingertimeout" "300"
    "maxjobs" "1"
    "name" "ADE XL Default"
    "preemptivestart" "1"
    "runtimeout" "-1"
    "showerrorwhenretrying" "1"
    "showoutputlogerror" "0"
    "startmaxjobsimmed" "1"
    "starttimeout" "300"
) )

;====================== Disabled items =========================================

;====================== Run Mode Options ======================================
ocnxlMonteCarloOptions( ?mcMethod "all" ?mcNumPoints "2" ?mcNumBins "" ?samplingMode "random" ?saveAllPlots "0" ?useReference "0" ?donominal "1" ?monteCarloSeed "" ?mcStartingRunNumber "" ?saveProcess "1" ?saveMismatch "1" ?ignoreFlag "0" ?dutSummary "" )

;====================== Starting Point Info ======================================
fp=outfile( "../ronenronen.csv" "w")



ts=delay(VT("Cin") (VAR("VDD") / 2) 3 "rising" VT("SUM") (VAR("VDD") / 2) 4 "rising" 0 0 nil nil ?td1 0.0 ?td2 0.0 ?td2r0 nil ?stop nil)
fs=1/ts
;td=delay(VT("CLK") (VAR("VDD") / 2) 2 "rising" VT("SUM") (VAR("VDD") / 2) 1 "rising" 0 0 nil nil ?td1 0.0 ?td2 0.0 ?td2r0 nil ?stop nil)
;fd=1/td

ocnPrint(?output fp ts)
;====================== Run command ============================================
ocnxlRun( ?mode 'monteCarlo ?nominalCornerEnabled nil ?allCornersEnabled t ?allSweepsEnabled t)
ocnxlOutputSummary(?yieldSummary t ?exprSummary nil ?specSummary nil ?detailed nil)

;====================== End XL Mode command ===================================
ocnxlEndXLMode()
 

  • Cancel
Parents
  • ronis
    ronis over 14 years ago

    someone can help me with this???

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • ronis
    ronis over 14 years ago

    someone can help me with this???

    • 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