• 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. ADE L Calculation: Numerical (?) issues

Stats

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

ADE L Calculation: Numerical (?) issues

itos
itos over 9 years ago

I needed to rub my eyes multiple times to believe that. I have these two expressions in my ADE L:

dB10(mag(8*c1_dc/c3_dc/6)) + 10
dB10(mag(8/6*c1_dc/c3_dc)) + 10

Clearly they are EQUIVALENT. Just different order. The first produces 24.8607, the second one 23.6113 dB. That's nearly 1dB difference!!

c1_dc and c3_dc are nonlinearity coefficients which are extracted from a swept DC analysis. Their values are 100.916m and -4.39371m respectively. According to math, the first one is correct.

How can that be?

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    It's not crazy. I was about to explain that this is because you have integer division. This can be rather useful, but you have to be aware that SKILL works this way (as do many, many other languages). So the 8/6 (left to right) ends up being 1, because both operands are integer. As soon as either operand is a float, the division is a floating point division rather than integer division. So make it 8.0/6 and all will be well with the world.

    I don't know what you mean about ADE replacing 8.0 with 0 in the expression editor. As far as I know, that does not happen. If it does, you'll have to give more details as to precisely what you're doing that makes this happen.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    It's not crazy. I was about to explain that this is because you have integer division. This can be rather useful, but you have to be aware that SKILL works this way (as do many, many other languages). So the 8/6 (left to right) ends up being 1, because both operands are integer. As soon as either operand is a float, the division is a floating point division rather than integer division. So make it 8.0/6 and all will be well with the world.

    I don't know what you mean about ADE replacing 8.0 with 0 in the expression editor. As far as I know, that does not happen. If it does, you'll have to give more details as to precisely what you're doing that makes this happen.

    Regards,

    Andrew.

    • 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