• 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. bindkey to toggle between leHiMarkNet() and leHiUnmarkNet...

Stats

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

bindkey to toggle between leHiMarkNet() and leHiUnmarkNet()

mdydyz112
mdydyz112 over 7 years ago

Hi all, 

I want to implement a (only 1) bindkey to toggle between leHiMarkNet() and  leHiUnmarkNet(). I am not sure how to find out whether or not the current cell view has a net that is being mark by leHiMarkNet(). 

I have a idea, but not sure if it will work. Please share your thought and idea if you have another one.

1. check if previous cmd is leHiMarkNet()

2. if yes, then do leHiUnmarkNet(), if no then do leHiMarkNet()

but i am not sure how to find out previous cmd used. If you have any other idea, please share.

Many thanks

  • Cancel
Parents
  • RK56
    RK56 over 7 years ago

    Hi,

    If the current window does not have a flag set with markNets then you can set it by yourself.

    if(hiGetCurrentWindow()~>markedNets then

      hiGetCurrentWindow()~>markedNets = nil

      leHiMarkNet()

    else

      hiGetCurrentWindow()~>markedNets = t

      leHiUnmarkNet()

    )

    -Ramakrishnan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to RK56

    Ramakrishnan's suggestion of using a flag on the window object to keep track of the toggle state is the best you can do given that there isn't really something to tell you whether anything is marked or not.

    However, the request is a bit odd. The functions both prompt you to click on a net to mark (or unmark) - so they're not really opposites. What if you don't click on a net and hit escape? What if you've marked two nets and then only one when you're in "unmark" mode of the toggle? That would be a rather odd use model.

    I could (almost) understand it if you wanted to toggle between leHiMarkNet() and leHiUnmarkNetAll() - that makes (slightly) more sense. Of course, if you use the menu instead of your bindkey, it would get out of sync with the toggle status, but that would mean you just need to press the bindkey again to get back in sync.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to RK56

    Ramakrishnan's suggestion of using a flag on the window object to keep track of the toggle state is the best you can do given that there isn't really something to tell you whether anything is marked or not.

    However, the request is a bit odd. The functions both prompt you to click on a net to mark (or unmark) - so they're not really opposites. What if you don't click on a net and hit escape? What if you've marked two nets and then only one when you're in "unmark" mode of the toggle? That would be a rather odd use model.

    I could (almost) understand it if you wanted to toggle between leHiMarkNet() and leHiUnmarkNetAll() - that makes (slightly) more sense. Of course, if you use the menu instead of your bindkey, it would get out of sync with the toggle status, but that would mean you just need to press the bindkey again to get back in sync.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
No Data

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