• 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. Getting table as nil

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 11757
  • 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

Getting table as nil

dragank
dragank over 4 years ago

Hi all.

I am trying to write function for creating custom structure. 

I can not determine why I get nil as value for cornerVariableTable


Thanks in advance.

  • Cancel
Parents
  • mbracht
    mbracht over 4 years ago

    Hi,

    I'am afraid we need a little more information to answer this. Where exactly do you get nil for the cornerVariableTable? How do you call the function?
    If you make a call to that function and have at least one iteration in the outer foreach loop then cornerVariableTable should in fact become a table. However you don't have this variable declared as a local variable, so maybe it is a global variable that is nil in the first place and then you have no foreach iterations (because rdb->corners() returns nil...) so it simply stays nil.
    But again - this is just guessing. Answering this just by looking at the function definition is a little difficult..

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dragank
    dragank over 4 years ago in reply to mbracht

    I do not know what went wrong. Now it is not null.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • dragank
    dragank over 4 years ago in reply to mbracht

    I do not know what went wrong. Now it is not null.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to dragank

    A general note - when asking for help on SKILL code, sending a picture of the code is not terribly helpful. None of us is going to type it in again to try to debug (there's often benefit in being able to run it, or even just run SKILL Lint on it). Please post the code itself as text, not as a picture.

    Your code could seriously do with many of the variables being declared in the let. It's an accident waiting to happen (especially if you're doing the same in your crnrGroupName function).

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dragank
    dragank over 4 years ago in reply to Andrew Beckett

    Ok. Next time I am sending code.

    • 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