• 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. Selecting Instance one after other

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 143
  • Views 16933
  • 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

Selecting Instance one after other

Neeraj Vardhan
Neeraj Vardhan over 12 years ago

Hi,

I would like to select instances in a specific order and save the order. I want to use a bindkey which will help me select both in schematic or in layout to select instances in a specific order. 

 Regards

Neeraj  

  • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    Hi, 

    I was thinking if there is any method, that i can select instance in a particular order and save there db and width and length information, in required sequence. 

     

    Regards 

    Neeraj 

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

    The Forum Guidelines tell you not to cross-post in multiple forums, so please don't do that.

    It's not that clear what you want - but can't you just do shift-left mouse click to add onto the selection one at a time, and then geGetSelSet() will return the objects in the order you want. If you want to get info about the selected instances, you could do:

    geGetSelSet()~>w

    or if you wanted to get the instance name, w and l properties, you could do:

    instInfo=foreach(mapcar inst geGetSelSet() list(inst~>name inst~>w inst~>l))

    In my case, that returns:

    (("NM11" "1.2u" "280n")
        ("NM10" "1.2u" "280n")
        ("NM7" "1.2u" "280n")
        ("NM6" "1.2u" "280n")
    )

    which was the order I selected them in.

    Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    Hi Andrew,

    I had this in my mind, but what i want is same bindkey for both schematic and layout.

    ex : hiSetBindkey("Layout" "<key>s" "function()") & hiSetBindkey("Schematic" "<key>s" "function()")

    so that i dont have to use different bindkeys for layout and schematic.

     

    Regards

    Neeraj Vardhan 

     

     

     

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

    Hi Neeraj,

    OK, so you know how to select things sequentially, you know how to print out information from the selected set, and you know how to define a bindkey - it's not clear (to me at least) what you still need to know?

    A clear question is much more likely to result in a clear answer, I'm afraid.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    Hi Andrew,

    I was using the name "Schematic" instead of "Schematics" in the bindkey. That was the reason, procedure was not working for my Schematic window.

    I have one more question

    1. How to pass CDF parameters from shcematic to layout.

     Regards

    Neeraj 

     

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

    Neeraj,

    deGetViewType() will tell you "schematic" or "maskLayout", or hiGetAppType(hiGetCurrentWindow()) will return the same prefix as used for bindkey registration (i.e. "Schematics" or "Layout").

    I'm not sure what you mean by your second (now first, since you've edited your post) question. What are you trying to do?

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    Hi Andrew,

    Actually i got the first one by "view=cvID~>viewName". So i edited the post, sorry. Is there any way i could inform about the editing done.

    Actually my second problem is, i want to call the instance selected in schematic to layout. So i wanted to access the CDF parameters and copy them to layout window.

    Regards

    Neeraj 

     

     

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

    Neeraj,

    How about dbCopyProp()? This will then allow you to copy all the instance properties from one instance to another (e.g the schematic instance to your new layout instance).

    As for editing the post, there's no way to send a notifier other than posting a new append. Don't worry though... I should have checked before I started typing!

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago
    Thanks Andrew, I would keep in mind while posting this. Regards Neeraj Vardhan
    • 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