Difference between OP and pv in scripts

Discussion in 'Cadence' started by markgr07, Jul 20, 2007.

  1. markgr07

    markgr07 Guest

    other than the ability to select results from a different directory,
    what is the difference between using OP() and pv() to get device
    parameters in a script?

    ex:

    gds = OP("SATT.MPC0.xmx.mx","gds")

    vs

    gds = pv("SATT.MPC0.xmx.mx","gds")

    I get the same results returned.

    thanks
    mark
     
    markgr07, Jul 20, 2007
    #1
  2. markgr07

    markgr07 Guest

    I found out one really important difference.

    if using a "for" loop, or some other control to go through and
    process the results, OP will not update from the first value it gets
    in the loop.

    "pv" will update each time it goes through the loop and get the
    correct result from the operating point information.
     
    markgr07, Jul 23, 2007
    #2
  3. markgr07

    JD Guest

    Based on my understanding, pv is a ocean function, OP is a calculator
    function.

    The difference between ocean function and calculator function is:

    For ocean function, you need to selectResult() first, for example, to
    use pv, you need:

    selectResult('dcOp)
    pv(...)

    For calculator function, you do not need to selectResult(), you can
    run

    OP(...) after you openResults()


    JD
     
    JD, Jul 30, 2007
    #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.