• 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. Change layers automatically with an skill function

Stats

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

Change layers automatically with an skill function

MariaOtz
MariaOtz over 13 years ago

Hello,

I am trying to find a skill function that can change the layer of any shape of the layout from one layer to another. For example: all the shapes that are with M1 in the layout change them to M2, all the shapes that are in M2 change them to M3... 

I need to do this for many different layers.

Can someone help me with this?

Thank you in advance

 

  • Cancel
  • MariaOtz
    MariaOtz over 13 years ago

     Right now I am using Find/Replace function manually and is working but when I need to change many layers then it is not very nice to do it in this way.

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

    cv=geGetEditCellView()
    LP=car(exists(lpp cv~>lpps LP~>layerName=="M2" && LP~>purpose="drawing"))
    LP~>shapes~>layerName="M3"

    Of course, you'll need to do it in the right order (don't do M1 to M2, then M2 to M3 because all the M1 will also end up on M3).

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MariaOtz
    MariaOtz over 13 years ago

     Hello Andrew,

    Thank you very much for your quick response.

    I tryed what you said but I get a warning: illegal left hand side of the assignment operator.

    It does not do the conversion properly because I have some layers that have not been change. Can this be because I have some guardrings that have metal 1 inside. This script does not work with the ROD multipart paths?

    THank you very much

    Maria

     

     

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

    Sorry, I typed it too quickly (I didn't test it) and made some typos - so here's a correction:

    cv=geGetEditCellView()
    LP=car(exists(lpp cv~>lpps lpp~>layerName=="M2" && lpp~>purpose=="drawing"))
    LP~>shapes~>layerName="M3"

    As for ROD objects (multi-part paths), if the shapes is a subShape of the ROD object, then it will not change layer if you try - you'd have to "unname" the ROD object before changing it. Cadence Online Support Solution 11157752 gives some tips on this.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MariaOtz
    MariaOtz over 13 years ago

     Thank you again. It is working now :-)

    I will take a look at the problem with the RODs now

    BR

    Maria

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MariaOtz
    MariaOtz over 13 years ago

    Hello Andrew,

    Sorry for bothering you again. But in case I want to make this script work through all the hierarchy what function do I need to use?

    I tried with the leSearchHierarchy but it doesn´t work.

    THank you very much,

    Maria

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MariaOtz
    MariaOtz over 13 years ago

    Hello,

    Does anyone know how to run the script through all the hierarchy?

    I am still trying to find a solution for this. I tried different things but I didn't make it work.

    Thank you,

    Maria 

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

    Hi Maria,

    Something along these lines:

    procedure(MYtraverseHier(cvId @optional (done makeTable('cellViewsDone nil)))
      ; do whatever change you want here - e.g. layer change
      ; now traverse the hierarchy
      foreach(master cvId~>instanceMasters
          ; filter out anything done before, or pcell instances
          ; could extend this condition to filter out certain libraries - do what you want
          unless(done[master] || master~>superMaster  
            done[master]=t
            MYtraverseHier(master done)
          )
      )
    )

    This is not tested, but it's a fairly standard recursive hierarchy traversal.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MariaOtz
    MariaOtz over 13 years ago

    Thank you very much Andrew.

    It works fine :-)

    Br,

    Maria

    • 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