• 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 Design
  3. plot problem waveVswave[IM3 vs Pout]

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 1569
  • 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

plot problem waveVswave[IM3 vs Pout]

atwinter
atwinter over 3 years ago

Hello there!,

I have a question related to waveform(waveVswave)....After i do the hb simulation(2tone), I want to plot IM3[dBc] VS Pout[dBm]

Does work well on IM3[dBc] VS Pin(dBm),

but IM3[dBc] VS Pout/(dBm) not working, I haven't been able to get this formula to work in any way.

IM3[dBc] equation : (value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order")) -> plot ok!

Powerout equation : dbm(pvr('hb "/I2/POUT" "/gnd!" 50.0 '((1 0)))) -> plot ok!

and I try to this

IM3[dBc] VS Pout[dBm]

db10(waveVsWave(?y (value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order")) ?x dBm(pvr('hb "/I2/RFOUT" "/gnd!" 50.0 '(1))) ?xName "Pout(H1)" ?xUnits "dBm" ?yName IM3")) -> plot fail

(error massage :Hence the two waves can't be plotted against each other.)

it doesn't work.

How can I this problem?

  • Cancel
Parents
  • ShawnLogan
    ShawnLogan over 3 years ago

    Dear atwinter,

    atwinter said:

    and I try to this

    IM3[dBc] VS Pout[dBm]

    db10(waveVsWave(?y (value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order")) ?x dBm(pvr('hb "/I2/RFOUT" "/gnd!" 50.0 '(1))) ?xName "Pout(H1)" ?xUnits "dBm" ?yName IM3")) -> plot fail

    (error massage :Hence the two waves can't be plotted against each other.)

    it doesn't work.

    i believe I understand your problem. I do not know, however,  the characteristics of the x and y-axis waveform arguments to the waveVsWave() function. From your posting, it appears each argument can be plotted in ViVA successfully. However, I do not know if the waveVsWave y argument of:

    "(value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order"))"

    is always non-zero and positive. If it is negative or zero, then the db10 function you have applied to the waveVsWave() output will not produce a valid value.

    1. Have you inspected the values of the ViVA plotted signal "(value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order"))" by exporting them to a table?

    1a. Are all values greater than 0?

    2. Are you able to plot the following:

    waveVsWave(?y (value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order")) ?x dBm(pvr('hb "/I2/RFOUT" "/gnd!" 50.0 '(1))) ?xName "Pout(H1)" ?xUnits "dBm" ?yName IM3")

    Just a thought...

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • ShawnLogan
    ShawnLogan over 3 years ago

    Dear atwinter,

    atwinter said:

    and I try to this

    IM3[dBc] VS Pout[dBm]

    db10(waveVsWave(?y (value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order")) ?x dBm(pvr('hb "/I2/RFOUT" "/gnd!" 50.0 '(1))) ?xName "Pout(H1)" ?xUnits "dBm" ?yName IM3")) -> plot fail

    (error massage :Hence the two waves can't be plotted against each other.)

    it doesn't work.

    i believe I understand your problem. I do not know, however,  the characteristics of the x and y-axis waveform arguments to the waveVsWave() function. From your posting, it appears each argument can be plotted in ViVA successfully. However, I do not know if the waveVsWave y argument of:

    "(value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order"))"

    is always non-zero and positive. If it is negative or zero, then the db10 function you have applied to the waveVsWave() output will not produce a valid value.

    1. Have you inspected the values of the ViVA plotted signal "(value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order"))" by exporting them to a table?

    1a. Are all values greater than 0?

    2. Are you able to plot the following:

    waveVsWave(?y (value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "3rd Order") - value(ipnVRICurves((v("/I2/POUT" ?result "hb_mt_fi") - 0.0) '(2 -1) '(1 0) ?rport resultParam("I2.PORT2:r" ?result "hb_mt_fi") ?epoint -40) "trace" "1st Order")) ?x dBm(pvr('hb "/I2/RFOUT" "/gnd!" 50.0 '(1))) ?xName "Pout(H1)" ?xUnits "dBm" ?yName IM3")

    Just a thought...

    Shawn

    • 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