• 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. About unbound variable - cdfgForm.

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 143
  • Views 4264
  • 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

About unbound variable - cdfgForm.

MinhPhuong
MinhPhuong over 11 years ago

Hi,

I have skill script to intantiate a symbol in schematic view, then start updating cdf paramters with new values. 

1. It only works if I open any view with any instance, press letter q to bring up "Edit Property Form" (cdfgForm assigned to some form struct). 

2. Otherwise I always got error message "Unbound variable - cdfgForm" and I check cdfgForm is nil.

Appreciate any comment.

Thanks,

MinhPhuong,

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    This is because the CDF callbacks you are trying to invoke are expecting the form to be there. In general this is not desirable but  it's commonplace. If you use the code in solution https://support.cadence.com/apex/homePage then this can deal with it. You can probably find other versions of this code by googling for abInvokeCdfCallbacks or CCSinvokeCdfCallbacks.

    Kind Regards,

    Andrew. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MinhPhuong
    MinhPhuong over 11 years ago

    Thanks Andrew.  I got to the point it needs the form the first time.  Is there anyway to initialize or create or anyway to fake it?

    Thanks,

    MinhPhuong,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MinhPhuong
    MinhPhuong over 11 years ago

    Hi Andrew,

    I already looked at CCSinvokeCdfCallbacks and frankly writing style is not easy to follow.  Is there any better version of this code somewhere?

    Thanks,

    MinhPhuong,

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

    I wrote the code. It's not a matter of "better", it's just that presumably you find C style easier to read than LISP style. You can always load the code and then pp() each function to see it in C-style if you are lisp-challenged.

    That code already sets cdfgForm. You could always use it as-is, which is what many people do. 

    Or you could look for a "better" version.

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MinhPhuong
    MinhPhuong over 11 years ago

    Hi Andrew,

    it is not about C-style.  For some reason when I saved as all the lines are messed up.  Line breaks are everywhere, and as a result, I got all kind of errors when loading this code.

    I think I got the idea how it got broken.  I am fixing the line breaks now.  Surely the code will work it just the line breaks messed up.

    Thanks,

    MinhPhuong,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago
    Which browser are you using?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MinhPhuong
    MinhPhuong over 11 years ago

    Hi Andrew,

    I used Internet Explorer 9.

    Thanks,

    MinhPhuong,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MinhPhuong
    MinhPhuong over 11 years ago

    Hi Andrew,

    I finished redoing all line breaks and able to load your CCSinvokeCdfCallbacks.il without any error now.  Getting closer now.  What function I should call for the first time to create the form?

    Thanks,

    MinhPhuong,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MinhPhuong
    MinhPhuong over 11 years ago

    Hi Andrew,

    Thanks for helping me so far.  I am still having problem but let me spend sometime with your code first.

     May I ask one more question and this is the last.  I have 2 PDKs from different foundries, surprisingly my script is working fine on one but not the other one?  Do  you think what is possible cause?

    Thanks,

    MinhPhuong,

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

    MinhPhuong,

    IE does a fantastic job of messing up the formatting (works OK in firefox and Chrome). If instead of clicking on the filename in the article, go over the link to CCSinvokeCdfCallbacks.il and do Right Mouse->Save Target As, and that seems to do a better job of it.

    I can't answer your question in this last post, because you've not shared your script, you've not said in what respect it is not working or what the error is, and you've not really explained what it is doing.

    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