• 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. Retrieving variable value from variable handle (axl.*)

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 144
  • Views 15134
  • 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

Retrieving variable value from variable handle (axl.*)

skillprogramme
skillprogramme over 13 years ago

Hi!

I am having problems retrieving the value of a variable handle with the axl-functions.

Example:

 

data_session = ( axlCreateSession "data_session" )

data_sdb = axlSetMainSetupDB( data_session "data.sdb" )

foreach( param cadr( axlGetVars( data_sdb ) )

varHandle = axlGetVar( data_sdb param )

)

So, when you have the variable handle (varHandle in this case), how to retrieve its value? I can't find any axl-function that does it. When you use the axlPutVar you are allowed to give the value of the variable along with it, but I can't find any way to actually read the value. I am relatively new to SKILL, so please excuse me if there's a very simple solution to this. 

Thanks in advance
Max 

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Max,

    session=axlCreateSession("data_session")
    sdb=axlSetMainSetupDBLCV(session "opamp090" "full_diff_opamp_AC" "adegxl")
    foreach(param cadr(axlGetVars(sdb))
      varHandle=axlGetVar(sdb param)
      printf("var %L has value %L\n" param axlGetVarValue(varHandle))
    )

    Note that the axlGetVarValue() function is currently not documented, but CCR 957111 has been filed to fix that.

    Andrew,.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillprogramme
    skillprogramme over 13 years ago

    Thanks a lot Andrew, that did the trick! But, I can't find that function in the result from

    listFunctions("axl")

    (which I tried when searching for that function). 

    Does listFunctions only list functions in the documentation?

    Max 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Max,

    Yes, it only lists public functions - which have documentation (it utilizes the presence in cdsFinder, which in turn originates from the documentation).

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillprogramme
    skillprogramme over 13 years ago

    Ok, thanks again. I think I recall reading somewhere in here that the axl-functions are not so well documented and maintained. Would you recommend using them for modifying adexl-views at all, or should I maybe look into parsing the .sdb-files in another way (XML-parsing with Python or PERL fex.)? I also need to change the configviews corresponding to the ADEXL views. Is there some built-in functions for this?

    Max 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Max,

    The functions are well maintained, but the documentation needs some polish (I have a CCR on that). 

    You should definitely not parse the .sdb because the schema is not documented and may be changed to suit the needs of the tools - but the public API will be maintained to ensure that the data is consistent. The tool itself goes throught the same underlying API, so that is the right approach.

    If you need to change the config views, there's an API for that - the "hdb" API.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • GaneshShamnur
    GaneshShamnur over 12 years ago

    Hi Andrew,

    Below is the error I obtain after executing

    ----------------

    data_session = ( axlCreateSession "data_session" )

    sdb=axlSetMainSetupDBLCV(data_session "ALL_PRIMITIVES" "ALL_PRIMITIVES_TB_TB" "schematic")

    *Error* ddGetObjWritePath: argument #1 should be a ddUserType (type template = "b") - nil

    ----------------

    I then checked if argument #1(data_session) is nil. But it is not as you can see below

    ----------------

    data_session
    "data_session" 

    ----------------

    Any ideas on what could be wrong ?  

    Regards,

    Ganesh

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • GaneshShamnur
    GaneshShamnur over 12 years ago

    Sorry Andrew,

    I immediately realized that the view being opened was "schematic" whereas it should be "adexl".

    Regards,
    Ganesh

    • 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