• 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 SKILL
  3. Is it possible to make aelEnvInterpret correctly evaluate...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 1624
  • 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

Is it possible to make aelEnvInterpret correctly evaluate the expression containing "pPar/iPar"?

zssfred
zssfred over 6 years ago

Hi,

Strictly speaking, AEL function is not skill function, so I put it here. 

env = aelEnvCreate( 'f t t )

aelSetLineage(env tmp4) ;tmp4 is the lineage correctly retrieved

aelEnvSetGlobals(env "a" "0.1u")

aelEnvSetGlobals(env "b" "0.2u")

expression1 = "a+b"

expression2 = "pPar(\"sbn\")"

expression3 = "a+b+pPar(\"sbn\")"

In my test, if do aelEnvInterpret respectively for these three expressions, I can get correct result from expression1 and expression2. In expression3, aelEnvGetErrStr() will croak "data type error".

Any ideas?

Thanks.

Fred

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

    I moved this to the SKILL Forum because the aelEnv functions are SKILL. The expressions you're evaluating aren't SKILL (they're AEL) but the functions you're using to evaluate them absolutely are SKILL, so this is the right place.

    My guess is that the sbn parameter is defined in the CDF with "Parse as Number" not being set to "yes" (also "Parse as CEL" should be set to "yes"). I can certainly reproduce the error if that's the case.

    Andrew.

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

    I moved this to the SKILL Forum because the aelEnv functions are SKILL. The expressions you're evaluating aren't SKILL (they're AEL) but the functions you're using to evaluate them absolutely are SKILL, so this is the right place.

    My guess is that the sbn parameter is defined in the CDF with "Parse as Number" not being set to "yes" (also "Parse as CEL" should be set to "yes"). I can certainly reproduce the error if that's the case.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • zssfred
    zssfred over 6 years ago in reply to Andrew Beckett

    Andrew,

    I confirm it is exactly the case you described.

    Thank you so much! I have been going a so long journey(like trying to parse the expression by myself, removing pPar from CDF definition, ... etc) before find this help.

    Really appreciate!

    Thanks.

    Fred

    • 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