• 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. Sweep over frequency and use frequency for calculations

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 14782
  • 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

Sweep over frequency and use frequency for calculations

itos
itos over 9 years ago

Hello,


I have the problem that I want to sweep over frequency (for example with pss) and then use the frequency itself in calculations. The problem: Not only the results traces are a vector but also the frequency variable itself! In the calculations, I would like to use the single frequency (scalar) as argument, not the entire vector.

Example:

  • Sweep over input frequency fin
  • Expression: dB20((thd(v("/vod" ?result "pss_td") 0 (1 / VAR("fin")) VAR("NDFT") VAR("fin")) / 100))
  • Plot this expression vs. fin

ADE L accepts this expression but the results are wrong (compared with just a single run). I assume the reason is it supplies the entire array of fin when I use VAR("fin"). instead only the one from the current run.

It's a little intricate ... any way around here?

  • Cancel
  • itos
    itos over 9 years ago
    I just wanted to push this a bit because this really happens very often. It's not limited to frequencies but to variable which is swept and is used as an input to a cadence function that's supposed to be a scalar ... Even if someone tells me it's not possible helps already ...
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    If it was urgent, you should go to customer support.

    Without seeing the details of the setup, it's hard to know, but you might need to use something like:

    dB20((famMap('thd v("/vod" ?result "pss_td") 0 (1 / VAR("fin")) VAR("NDFT") VAR("fin")) / 100))

    The famMap could then handle the expansion of the sweeps. Not certain though without a testcase to try it out (and I don't really have time to put one together).

    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