• 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. SKILL code to change all the existing Metal layers to its...

Stats

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

SKILL code to change all the existing Metal layers to its corresponding fillBlock layer

ssram
ssram over 6 years ago

I'm a very beginner to the SKILL scripting, so just looking out for help to write a SKILL code to change all the existing Metal layers to its corresponding fillBlock layer in my layout.

As a start i wrote a few lines to check if the selected metal is "m2" in my layout

and to print "Layer name is m2" if it is

& if it is not, and print "Layer name is NOT m2"

The code is below, but its not doing what i intend it to, please help me fix it:

procedure(MetalToFillBlock()
let((m2)
if(geGetSelSet()~>layerName == m2
then
printf("Layer name is m2")
else
printf("Layer name is NOT m2"))
);let
);procedure

  • Cancel
Parents
  • mbracht
    mbracht over 6 years ago

    Hi,

    For one geGetSelSet() returns a list and not a shape. Assuming that you did select a shape (and not an instance or via or whatever) you  need to get at the (first and only) element in the list in terms of a car statement.
    Moreover you initialize a variable m2 to nil in the let statement - but I assume you want to compare against the string "m2". So try this:

    procedure(MetalToFillBlock()
       let(()
          if(car(geGetSelSet())~>layerName == "m2"
          then
             printf("Layer name is m2")
          else
             printf("Layer name is NOT m2"))
       );let
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • mbracht
    mbracht over 6 years ago

    Hi,

    For one geGetSelSet() returns a list and not a shape. Assuming that you did select a shape (and not an instance or via or whatever) you  need to get at the (first and only) element in the list in terms of a car statement.
    Moreover you initialize a variable m2 to nil in the let statement - but I assume you want to compare against the string "m2". So try this:

    procedure(MetalToFillBlock()
       let(()
          if(car(geGetSelSet())~>layerName == "m2"
          then
             printf("Layer name is m2")
          else
             printf("Layer name is NOT m2"))
       );let
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • ssram
    ssram over 6 years ago in reply to mbracht

    Thanks a lot for your quick response.

    But, this is a bit different from what i'm looking for.

    • 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