• 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 21188
  • 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
  • OLyonnais
    OLyonnais over 15 years ago

     EDIT NOTES

     
    The monteCarlo simulation works (successful)!!
     but just there are these lines of error concerning "the evaluating ocean monteExpr".

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ebecheto
    ebecheto over 15 years ago

     Come one Mr Olyonnais! You forget a double quote of the delay. Check your expression syntax.

     monteExpr( "Delay_WL_S_rise" "delay(clip(v(\"/WL\" ?result \"tran-tran\")" 

    Check your expression step by step when your not sure.

    So are you Lyonnais or Niçois ?

     

    ++Ed

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Axel,

    In the psf directory, you should find a file artil.log which may well reveal the cause of the error - any error messages will be shown there.

    Best Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • OLyonnais
    OLyonnais over 15 years ago

     Hi eBecheto

    I think you have not the entire expression because i didn't forget anything....

    monteExpr( "Delay_WL_S_rise" "delay(clip(v(\"/WL\" ?result \"tran-tran\") 2.871401e-08 3.685221e-08) VAR(\"Vdd_half\") 1 \"either\" clip(v(\"/S\" ?result \"tran-tran\") 2.871401e-08 3.685221e-08) 0.55 1 \"either\" 0 0 nil nil)" )

     The problem that i have, is that my monteCarlo analysis is successful but i obtain an error on the evaluation of the monteExpr.

     

    ps: I'm lyonnais ;) but living in Nice.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • OLyonnais
    OLyonnais over 15 years ago

     Andrew,

     here the artil.log with a montecarlo of 2 runs

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

    Loading auCore.cxt
    Loading awv.cxt
    "mps7010"
    > Loading oasis.cxt
              Results "subckts-info" are not available for
              "../psf/logFile". Use results() for a list of available
              results.
    Loading analog.cxt
    Loading asimenv.cxt
    Loading spectrei.cxt
              Results "mc1-001_subckts-info" are not available for
              "../psf/logFile.tmp". Use results() for a list of available
              results.
              Results "tran-tran" are not available for
              "../psf/logFile.tmp". Use results() for a list of available
              results.
              Results "mc1-002_subckts-info" are not available for
              "../psf/logFile.tmp". Use results() for a list of available
              results.
              Results "tran-tran" are not available for
              "../psf/logFile.tmp". Use results() for a list of available
              results.

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

    I checked that the desVar is saved in the variables_File:

    "Vdd_half" "variable" ( 550e-3 ) PROP( )

     

    http://rs269tg.rapidshare.com/files/367939433/665862/error.jpeg

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Hi Axel,

    Try changing the "tran-tran" in your expression to "tran" or 'tran :

    monteExpr( "Delay_WL_S_rise" "delay(clip(v(\"/WL\" ?result 'tran") 2.871401e-08 3.685221e-08) VAR(\"Vdd_half\") 1 \"either\" clip(v(\"/S\" ?result 'tran) 2.871401e-08 3.685221e-08) 0.55 1 \"either\" 0 0 nil nil)" )

    It's best to use the "aliased" names (this is covered in the "Advanced Analysis" manual in the IC release, if my memory is correct).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • OLyonnais
    OLyonnais over 15 years ago

     

     Andrew,

     

    Thank you again you solved my problem...

    I change the "tran-tran" in your expression to 'tran : before i corrected the little mistake here: 'tran"

    monteExpr( "Delay_WL_S_rise" "delay(clip(v(\"/WL\" ?result 'tran") 2.871401e-08 3.685221e-08) VAR(\"Vdd_half\") 1 \"either\" clip(v(\"/S\" ?result 'tran) 2.871401e-08 3.685221e-08) 0.55 1 \"either\" 0 0 nil nil)" )

     So i put 'tran and now its perfect !!

    Could you explain me the difference between "tran" and "tran tran " ? please

    thank you again Andrew.

    Axel

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Hi Axel,

    Apologies for my typo - meant to omit the final quote, of course.

    If you have a look in <ICinstDir>/doc/aatoolsuser/aatoolsuser.pdf and search for "Data Name Aliasing" you'll find a section which describes. There are some following sections which also describe creating expressions compatible with monte carlo.

    The problem with using tran-tran is that this can result in picking (say) the nominal results rather than the result from each monte carlo point. The benefit of the "aliased" name (i.e 'tran or "tran") is that it will always pick the current point's run (even though it may be actually called "mc1_tran-montecarlo" or something like that).

    Hope that helps!

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • OLyonnais
    OLyonnais over 15 years ago
    Ok i understand. Just for information, only the 'tran syntax work. "tran" doesn't work. Regards, Axel
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Axel,

    Are you sure? It should work with either 'tran or "tran" (of course in the monteExpr it would have to be \"tran\" because the string is within quotes already). Of course it wouldn't have worked with 'tran" because that was me making a silly mistake.

    Inside the code, it will treat a symbol or string the same, as far as I know (for this situation).

    I just tried my example with v(\"/net5\" ?result \"tran\") and it worked with no problems.

    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