• 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 SKILL
  3. Help with OceanScriptXL output problem

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 144
  • Views 13145
  • 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

Help with OceanScriptXL output problem

jjang3
jjang3 over 10 years ago

Hi everyone, although this is SKILL thread, I thought oceanScript XL and SKILL are kind of a same thing so I decided to post it on here.

 

I'm very new at programming with OceanscriptXL and what I wish to do is I have two separate tests in ADE XL running in monte carlo that I wish to have two separate output text files. Therefore I decided to use ocnPrint command to print the values into the respective text files, but the problem is, after the first test, outputs disappear for subsequent tests and I receive following warnings:

load "test3.ocn"

WARNING (OCN-6054): The output '/OUT2' you selected does not exist.  Type outputs() to see the list

        of available outputs or type help('v) for more information on the 'v' command.

WARNING (OCN-6054): The output '/OUT22' you selected does not exist.  Type outputs() to see the list

        of available outputs or type help('v) for more information on the 'v' command. 

 

 Following is my code:

 

;====================== Set to XL mode =========================================

ocnSetXLMode()

ocnxlProjectDir( "/home/j/jjang3/simulation" )

ocnxlTargetCellView( "Lib" "SRAM" "adexl" )

ocnxlResultsLocation( "" )

ocnxlSimResultsLocation( "" )

 

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

 

;---------- Test "Lib:SRAM:1" ------------- 

ocnxlBeginTest("Lib:SRAM:1")

simulator( 'spectre )

design( "Lib" "SRAM" "schematic")

modelFile( 

    '("/home/j/jjang3/models/Librarymodel.scs" "models")

    '("/home/j/jjang3/models/Librarystat.scs" "statistics")

    '("/home/j/jjang3/models/Library.scs" "parameter")

)

definitionFile(

    "/home/j/jjang3/models/vsrc"

)

analysis('tran ?stop "10n"  ?save "selected"  )

envOption(

'analysisOrder  list("tran") 

)

selectResult('tran)

saveOption( ?simOutputFormat "psf" )

save( 'v "/VR6T" "/VL6T" )

temp( 27 ) 

ocnPrint(?output "~/output1.txt" v("/VR6T") v("/VL6T") ?from 1n ?to 1n ?step 1n)

ocnxlOutputSignal( "/VR6T" ?plot t )

ocnxlOutputSignal( "/VL6T" ?plot t )

ocnxlEndTest() ; "Lib:SRAM:1"

 

;---------- Test "Lib:Model2:1" ------------- 

ocnxlBeginTest("Lib:Model2:1")

simulator( 'spectre )

design( "Lib" "Model2" "schematic")

modelFile( 

    '("/home/j/jjang3/models/Librarystat.scs" "statistics")

    '("/home/j/jjang3/models/Library.scs" "parameter")

    '("/home/j/jjang3/models/Librarymodel.scs" "models")

)

definitionFile(

    "/home/j/jjang3/models/vsrc"

)

analysis('tran ?stop "10n"  ?save "selected"  )

envOption(

'analysisOrder  list("tran") 

)

option( 'temp  "90.0" 

)

selectResult('tran)

saveOption( ?simOutputFormat "psf" )

save( 'v "/OUT2" "/OUT22" )

converge( 'ic "/net018" "0V" )

converge( 'ic "/net017" "1V" )

temp( 90.0 ) 

ocnPrint(?output "~/output2.txt" v("/OUT2") v("/OUT22") ?from 1n ?to 1n ?step 1n)

ocnxlOutputSignal( "/OUT2" ?plot t )

ocnxlOutputSignal( "/OUT22" ?plot t )

ocnxlEndTest() ; "Lib:Model2:1"

 

;====================== Sweeps setup ===========================================

 

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

 

;====================== 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" ?mcStopEarly "0" ?mcYieldTarget "99.73" ?mcYieldAlphaLimit "0.05" ?saveAllPlots "1" ?useReference "0" ?donominal "1" ?monteCarloSeed "" ?mcStartingRunNumber "" ?saveProcess "1" ?saveMismatch "0" ?ignoreFlag "0" )

 

;====================== Starting Point Info ======================================

 

;====================== Run command ============================================

ocnxlRun( ?mode 'monteCarlo ?nominalCornerEnabled t ?allCornersEnabled t ?allSweepsEnabled t)

ocnxlOutputSummary(?yieldSummary t ?exprSummary nil ?specSummary nil ?detailed nil)

 

;====================== End XL Mode command ===================================

ocnxlEndXLMode()

 

 

 

I have no clue why outputs suddenly disappear after the first test. Did I mess up on the format of oceanScript XL or is it some other problem? I also tried testing each circuits (SRAM and Model2) separately, and if they are by themselves in the oceanScript XL, it works, but when I try to put those two tests into one oceanScript XL file, output is gone and I have been trying to figure this problem out for a while now and I just cannot figure it out.

 

In addition, is there any alternatives to ocnPrint? I tried using fprintf command to output, but I must have run() command before fprintf otherwise I cannot get the output on time. However, this also creates a problem because there is no way to do this in monte carlo simulation since run() only executes once. How do you use fprintf on monte carlo simulation on oceanScript XL so that it actually does monte carlo simulation instead of single simulation?

 

Thank you so much for any kind of helps

 Sincerely, 

 

 

 

  • Cancel
  • tweeks
    tweeks over 10 years ago
    Sorry, I don't use ocean.
    • 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