• 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. How could i get a Plot with a Xaxis in volt by the ocean...

Stats

  • Locked Locked
  • Replies 21
  • Subscribers 143
  • Views 21178
  • 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 could i get a Plot with a Xaxis in volt by the ocean script?

OLyonnais
OLyonnais over 15 years ago

Hello

I'm trying to get a plot by the ocean script but when i observe my 3 outputs signals i have 3 lines (constant) whereas when i lauch that by a classical simulation (interface analog environment) i obtain the correct waveform with the Vn in horizontal scale

Indeed, i think i have a trouble on my Xaxis because in one case (by the analog environment) "Vn" (my sweep variable from 0 to 1.1) is on the X axis and on the other case, i have nothing, the time i think...

 

 ------------------------------------------------------------------------------------------------

ocnWaveformTool( 'wavescan )
simulator( 'spectre )
design(     "/../spectre/schematic/netlist/netlist")
resultsDir( "/../spectre/schematic" )
definitionFile(
    "models.scs"
)
analysis('dc ?saveOppoint t  ?param "Vn"  ?start "1.1"
        ?stop "0"  ?lin "1000"  )

desVar(      "Vn" 1    )
temp( 27 )
run()
selectResult( 'dcOp )
plot(getData("/S") getData("/SB") getData("/BL") )

 

-------------------------------------------------------------------------------------

thank you for your answer and sorry for my "basic" english

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Hi Axel,

    Here's a very simple OCEAN script I have using VAR and pv() approaches:

    ocnWaveformTool( 'wavescan )
    simulator( 'spectre )
    design( "/export/home/users/andrewb/simulation/rcac/spectre/schematic/netlist/netlist")
    resultsDir( "/export/home/users/andrewb/simulation/rcac/spectre/schematic" )
    path( "./models" )
    modelFile(
    '("res.scs" "")
    )
    analysis('tran ?stop "100n" )
    desVar( "sup" 3 )
    desVar( "rval" 1k )
    desVar( "cval" 1p )
    temp( 27 )
    monteCarlo( ?numIters "100" ?startIter "1"
    ?analysisVariation 'process ?sweptParam "None"
    ?sweptParamVals "27" ?saveData nil
    ?nomRun "yes" ?append nil
    ?saveProcessParams t
    ?samplingMethod 'LHS)
    monteExpr( "RT" "riseTime(clip(VT(\"/net5\") 8e-09 1e-07) 0 nil VAR(\"sup\") nil 10 90 nil \"time\" nil nil)" )
    monteExpr( "RVAL" "VAR(\"rval\")" )
    monteExpr( "RVAL2" "pv(\"top-level\" \"rval\" ?result 'designParamVals)" )
    monteRun()

    Both work. In this case I have the variable "sup" (which is constant) which is used within the RT measure. Then I have rval (which has a statistical distribution on it, inside the res.scs model file). You can see two different ways of accessing that variable, with VAR and pv(). Both give a distribution as in the attached picture.

    The pv function is definitely covered in the OCEAN Reference manual (chapter 7, Data Access Commands in IC5141). Didn't check the VAR() function, but it corresponds to the var button in the info tab (in wavescan calculator), or the var button in the AWD calculator.

    Regards,

    Andrew.

    • monteResults.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Hi Axel,

    Here's a very simple OCEAN script I have using VAR and pv() approaches:

    ocnWaveformTool( 'wavescan )
    simulator( 'spectre )
    design( "/export/home/users/andrewb/simulation/rcac/spectre/schematic/netlist/netlist")
    resultsDir( "/export/home/users/andrewb/simulation/rcac/spectre/schematic" )
    path( "./models" )
    modelFile(
    '("res.scs" "")
    )
    analysis('tran ?stop "100n" )
    desVar( "sup" 3 )
    desVar( "rval" 1k )
    desVar( "cval" 1p )
    temp( 27 )
    monteCarlo( ?numIters "100" ?startIter "1"
    ?analysisVariation 'process ?sweptParam "None"
    ?sweptParamVals "27" ?saveData nil
    ?nomRun "yes" ?append nil
    ?saveProcessParams t
    ?samplingMethod 'LHS)
    monteExpr( "RT" "riseTime(clip(VT(\"/net5\") 8e-09 1e-07) 0 nil VAR(\"sup\") nil 10 90 nil \"time\" nil nil)" )
    monteExpr( "RVAL" "VAR(\"rval\")" )
    monteExpr( "RVAL2" "pv(\"top-level\" \"rval\" ?result 'designParamVals)" )
    monteRun()

    Both work. In this case I have the variable "sup" (which is constant) which is used within the RT measure. Then I have rval (which has a statistical distribution on it, inside the res.scs model file). You can see two different ways of accessing that variable, with VAR and pv(). Both give a distribution as in the attached picture.

    The pv function is definitely covered in the OCEAN Reference manual (chapter 7, Data Access Commands in IC5141). Didn't check the VAR() function, but it corresponds to the var button in the info tab (in wavescan calculator), or the var button in the AWD calculator.

    Regards,

    Andrew.

    • monteResults.png
    • View
    • Hide
    • 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