• 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. How to set Pin text layer base on LSW select layer

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 8442
  • 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

How to set Pin text layer base on LSW select layer

TonyTang
TonyTang over 3 years ago

Dear,

I want to set a auto pin text layer while create pin on different metal layer. 

For example, create pin use "M1:pin" and its pin text layer is "M1:net", since there is a case different layer to one Pin text case. So I can't simply to use "Same As Pin" option in "Set Pin Label Text Style“ form. 

Below  is my code, but it is not work on my request. Could you help to let me know the problem?

procedure(setPinText()

 let((layer purpose)

     case(leGetEntryLayer()

             ('("M1" "pin")  layer = "M1" purpose = "net")

             ('("M1_Match" "pin")  layer = "M1" purpose = "net")

             ('("M2" "pin")  layer = "M2" purpose = "net")

             ('("M2_Match" "pin")  layer = "M2" purpose = "net")

             ('("PAA" "pin")  layer = "AA" purpose = "net")

             ('("NAA" "pin")  layer = "AA" purpose = "net")

      );case

hiEnqueueCmd("le0PinSetNameDisplayForm->pinTDLayerName->value = layer")

hiEnqueueCmd("le0PinSetNameDisplayForm->pinTDPurposeName->value = purpose")

leHiCreateChoice0fPin()

);let

);procedure

hiSetBindKey("layout" "Alt<key>p" "setPinText()")

After my test, it can active change on leiDisplayPinNameDisplayForm(), but modied value can't keep to work on create pin form. 

My tool version is IC618. thanks for your help!

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Rather than using the hiEnqueueCmd approach, I would instead just use:

    leSetEnv("pinTextSameLayer" nil)
    leSetEnv("pinTextSamePurpose" nil)
    leSetEnv("pinTextLayer" layer)
    leSetEnv("pinTextPurpose" purpose)

    That should work, I think.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Rather than using the hiEnqueueCmd approach, I would instead just use:

    leSetEnv("pinTextSameLayer" nil)
    leSetEnv("pinTextSamePurpose" nil)
    leSetEnv("pinTextLayer" layer)
    leSetEnv("pinTextPurpose" purpose)

    That should work, I think.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • TonyTang
    TonyTang over 3 years ago in reply to Andrew Beckett

    Dear Andrew,

    Thank you so much! That is what I want, and it works well,

    • 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