• 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. RF Design
  3. discrepancy between spectrum peak value and calculator value...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 63
  • Views 19439
  • 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

discrepancy between spectrum peak value and calculator value in Direct Plot Form after hb simulation

aidenK
aidenK over 5 years ago

Hi, 

After running "hb simulation", when I plot a spectrum it shows multiple values at one frequency and Cadence calculator uses 2nd peak value instead of 1st peak value.

in attached figure, two different values at 1MHz, 1st peak=406.35uV and 2nd peak value=269.833uV and Cadence calculator uses 2nd peak value.

1) which value I can trust in this case? and why does calculator use 2nd peak value instead of 1st peak value?

2) in Direct Plot Form, when "frequency" is selected in sweep section it shows different peak value from "spectrum" peak value.

   in figure below, peak value from "spectrum" plot is 406uV at 1MHz and peak value from "frequency" plot is 657uV.

   What is the difference of these two values?

Thank you.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    What is your frequency set up in the hb analysis? I suspect you've got commensurate frequencies and so harmonics end up in the same place, but would be good to understand so I can explain what's going on.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 5 years ago in reply to Andrew Beckett

    Dear aidenK,

    I might add a few of comments if I may...

    As Andrew noted, I am wondering what you set your frequency to in the harmonic balance analysis. If I examine your plot as shown in my first attachment, it appears your harmonic balance analysis may have been performed with a frequency of 2 MHz. Please refer to my questions and comments on the annotated versions of your plots as well as my example that may explain what you are observing in your spectral and frequency plots.

    Please correct any of my thoughts and comments...

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to ShawnLogan

    Thanks for that Shawn. Since the results were from a multi-tone simulation (based on the direct plot form showing hb_mt), my guess is that the frequencies are such that harmonic combinations end up at the same frequency (1MHz) and so there are two points at the same frequency. Spectre RF produces both the individual combinations (indexed by harmonic) and the overall total (index by frequency). For one you need to use harmonic() to find the value (because it's indexed by harmonic) and for the other you need to use value(). If you use value on the indexed-by-harmonic result, then it can get confused because the data is not necessarily monotonically increasing by frequency.

    Hence my request to understand the simulation setup, as then I (or anyone else) can give a precise explanation.

    So your explanation looks likely to be close to the reason - although I think the frequencies may be indentical rather that closely-spaced. Let's see!

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • aidenK
    aidenK over 5 years ago in reply to Andrew Beckett

    Hi all, 

    Thank you guys for answers. 

    Actually, this is RF Rx simulation with 3 tones in HB. 

    flo=2427MHz, frf1=2429MHz, frpl=1MHz and each harmonics are set 20,1,1 as above.

    Therefore, only tones at nflo+mfrf1+kfrpl, n={-20,-19,...0,...19,20}, m=[-1,0,1}, k={-1,0,1} can be generated after simulation. 

    At the Rx output, tone at 2MHz is a signal (2429M-2427M) and tones at 1MHz and 3MHz are spurs generated by non-linearity of Rx.

    I think that there are two different mechanism to generate tone 1MHz, frpl and frf1-frpl-flo. 

    If it is correct, can a plot from "spectrum" have two different values and a plot from "frequency" have complex-number added value?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 5 years ago in reply to aidenK

    Dear aidenK,

    aidenK said:
    Actually, this is RF Rx simulation with 3 tones in HB. 

    Thank you for providing a bit more detail! I, for one anyway, cannot make out any text in your dialog box as the resolution is not sufficient. Perhaps if you include the context of the command from the input.scs file (or an image with higher resolution), it might help. Nevertheless, I understand that your LO freuqency is 2.427 MHz with the two interfering frequencies at 2.429 MHz and 1 MHz.

    aidenK said:
    I think that there are two different mechanism to generate tone 1MHz, frpl and frf1-frpl-flo. 

    Yes. The non-linearities of a general amplifier will produce a number of frequency components near 1 MHz. The note below outlines a few and their origin if that helps.

    aidenK said:
    If it is correct, can a plot from "spectrum" have two different values and a plot from "frequency" have complex-number added value?

    As Andrew noted the harmonic() function is indexed by the harmonic number and as Andrew also noted

    Andrew Beckett said:
    If you use value on the indexed-by-harmonic result, then it can get confused because the data is not necessarily monotonically increasing by frequency.

    Hence, I suspect this is the source of your result. Does this help aidenK?

    Shawn

    • 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