to change the name of waveform curves in OCEAN?

Discussion in 'Cadence' started by comp.cad.cadence, Dec 21, 2005.

  1. Hello, folks

    Please look at the following OCEAN script:

    ;; set the DC analysis
    analysis('dc ?saveOppoint t ?param "vgs" ?start "0"
    ?stop "1.8" )
    desVar( "vgs" 1 )
    desVar( "vds" 1 )
    saveOption( 'save "all" )
    save( 'all )
    temp( 27 )

    ;; run parametric simulation
    paramAnalysis("vds" ?start 0.6 ?stop 1.8 ?step 1.2)
    paramRun()

    ;; plot the waveform "wy against "wx"
    wy = deriv(i("/TN0/D"))
    wx = i("/TN0/D")

    ocnYvsYplot( ?wavex wx ?wavey wy )
    awvSetXAxisLabel( awvGetCurrentWindow() "Ids(A)" )

    It just does the parametric simulation of the variable "vds" around the
    DC sweep analysis. And then plot the waveform "wy" against the waveform
    "wx" by using the OCEAN function ocnVvsYplot. But the bummer is that
    the name of each curve is very lengthy one like

    vds:"600m" value(deriv(i("/TN0/D" ?result "dc")) "vds"
    0.6)/value(i("/TN0/D" ?result "dc") "vds" 0.6)

    instead of a succinct expression such as vds:"600m" vds:"1.8" ...

    If just the function plot is used, this problem can be fixed just by
    leaving null in the list() as shown below
    plot( i("/TN0/D") ?expr list("") )

    But with the function ocnYvsYplot, I haven't figured out how. Don't
    like to change the names for each waveform curve manually from GUI of
    waveform window. Anyone cares to give me some idea? Thinks a lot!

    -Andy
     
    comp.cad.cadence, Dec 21, 2005
    #1
  2. Andy,

    Have you tried using the ?exprx and ?expry arguments to ocnYvsYplot()
    function? I've not read the documentation or tried these, so not sure
    whether it's expecting a string or a list of strings as the argument.

    Andrew.
     
    Andrew Beckett, Dec 22, 2005
    #2
  3. The arguments of ?exprx and ?expry have nothing to do with what I asked
    about. The example from the OCEAN reference is repeated as below:

    ex="VT('/vin')"
    ey="VT('/vout')"
    ocnYvsYplot(?exprx ex ?expry ey ?titleList '("simpleWave") ?colorList
    '(3))

    It just plots expression ey against expression ex with the title being
    simpleWave and the color being 3.
    Maybe, the argument of ?titleList is the only one I can play with?

    (
    ocnYvsYPlot([?wavex o_wavex ?wavey o_wavey] [?exprx o_exprx ?expry
    o_expry]
    [?title l_titleList] [?color l_colorList])

    l_titleList: List of waveform titles. If the waveform is simple, only
    one label will be required. If the waveform is param, a list of labels
    needs to be provided.
    )

    I'm new to OCEAN/SKILL, so I wonder if there should be a method to make
    it.

    -Andy
     
    comp.cad.cadence, Dec 22, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.