• 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. Attaching property to a property

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 142
  • Views 4556
  • 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

Attaching property to a property

RK56
RK56 over 1 year ago

Hi,

The subject could be misleading as I dont know the correct terminologies. I have attached some values to CI window to use as global variables.

hiGetCIWindw()~>layer_M1 = (list("M1" "drawing") list("M1" "pin"))

hiGetCIWindw()~>layer_M2 = (list("M2" "drawing") list("M2" "pin"))

 

Now I want to group them into another level of depth like

hiGetCIWindw()~>layerUtils~>layer_M1 = (list("M1" "drawing") list("M1" "pin"))

hiGetCIWindw()~>layerUtils~>layer_M2 = (list("M2" "drawing") list("M2" "pin"))

How to do this? Also what is the correct way to ask this question?

Thanks

Ram

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    Hi Ram,

    Given that properties on window objects are just a reference to a SKILL structure, the simplest approach is to make layerUtils a hash table. Hash tables can be indexed using -> or ~> where the key is a symbol. The alternative is to make it a disembodied property list or a structure (defstruct); the disembodied property list would require you to use -> rather than ~> and the defstruct requires you to pre-declare the structure. Overall I think using a hash table is the simplest. For example (fixing the typos in your code too):

    hiGetCIWindow()~>layerUtils=makeTable('layerUtils nil)
    hiGetCIWindow()~>layerUtils~>layer_M1 = list(list("M1" "drawing") list("M1" "pin"))
    hiGetCIWindow()~>layerUtils~>layer_M2 = list(list("M2" "drawing") list("M2" "pin"))

    You then retrieve the value using hiGetCIWindow()~>layerUtils~>layer_M1 .

    Regards,

    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