Home > Community > Forums > Custom IC Design > Ocean scripting - Plotting multiple expressions in different strips

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Ocean scripting - Plotting multiple expressions in different strips 

Last post Mon, Sep 16 2013 11:45 PM by PBabu. 1 replies.
Started by PBabu 16 Sep 2013 07:41 AM. Topic has 1 replies and 416 views
Page 1 of 1 (2 items)
Sort Posts:
  • Mon, Sep 16 2013 7:41 AM

    • PBabu
    • Not Ranked
    • Joined on Mon, Oct 17 2011
    • Posts 2
    • Points 10
    Ocean scripting - Plotting multiple expressions in different strips Reply

    Hi,

    I need some help on this.
    I'm simulating an amplifier for many corners and need to plot gain and phase response.
    For the plots, I need appended plots (of all corners) of gain in one strip and phase (of all corners) in another strip.

    I tried doing the following in my script:

    Gain_plot=dB20(getData("loopGain" ?result "stb-stb"))

    Phase_plot=phase(getData("loopGain" ?result "stb-stb"))

    y=newWindow()
    awvPlotWaveform( currentWindow(y) list(Gain_plot Phase_plot) ?expr list("Gain" "Phase" ) ?stripNumber list(1 2) )

    However, when the gain and phase expressions are re-evaluated in an outer loop(not shown here), the plots are replaced.

    I also tried using awvSimplePlotExpression and awvPlotExpression. What I understand is that these cannot be used to plot multiple expressions. Am i wrong?

    Can anybody help me out with this?
    Appreciate your patience.
     
    btw, my version of icfb is 5.10.41.500.6.151

    Thanks,
    Prashant
    • Post Points: 5
  • Mon, Sep 16 2013 11:45 PM

    • PBabu
    • Not Ranked
    • Joined on Mon, Oct 17 2011
    • Posts 2
    • Points 10
    Re: Ocean scripting - Plotting multiple expressions in different strips Reply

     Hi,

    Solved it.

    Indeed I was wrong about awvSimplePlotExpression.

    It works. This is what I did:

    x=newWindow()

    Gain_plot=dB20(getData("loopGain" ?result "stb-stb"))

    Phase_plot=phase(getData("loopGain" ?result "stb-stb"))

    awvSimplePlotExpression( currentWindow(x) "Gain_plot Phase_plot" nil nil ?expr list("gain" "phase") ?stripNumber list(1 2) )

    I now get overlapped plots of gain and phase in 2 strips of the same window.

    Cheers,

    Prashant

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by PBabu at 16 Sep 2013 07:41 AM. Topic has 1 replies.