• 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 generate a list of display layers?

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 16085
  • 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 generate a list of display layers?

KokoLiu
KokoLiu over 11 years ago

Hi,

 I am using cadence virtuoso version IC6.1.5-64b.500.17. I would want to generate a list of layers that is already displaying in my Layout editor window.

 I already know there is a function call leLSWShowLayers(), but I am not using LSW. I am using layer palette. And I can't bring LSW up using leRaiseLSW() because my palette assistants are enabled.

 I can't use the solution in solution 20268008 by using pteRegisterUserSelectionTrigger because my cadence version isn't new enough.

 Please let me know what other ways I can produce a list of displayed layers?

 Thank you.

KokoLiu 

  • Cancel
  • skillUser
    skillUser over 11 years ago

    Hi KoKo,

    You can get a list of the layers using SKILL, for example:

    lcv = geGetEditCellView()
    => db:0x1a6dea12
    lcv~>lpps~>layerName
    => ("Metal1" "Metal2" "edgeLayer")
    hiGetCurrentWindow()->stopLevel = dbGetMaxHierDepth()-1 ;; I did Shift-F in the layout
    lcv~>lpps~>layerName
    => ("Nwell" "Pimp" "WellBody" "Metal1" "Nimp"
         "allGeoShare" "Cont" "text" "Oxide" "Poly"
         "Metal2" "edgeLayer")
    foreach(mapcar lpp lcv~>lpps list(lpp~>layerName lpp~>purpose))
    => (("Nwell" "drawing") ("Pimp" "drawing") 
           ("WellBody" "drawing") ("Metal1" "drawing") 
           ("Nimp" "drawing") ("allGeoShare" "GeoShare") 
           ("Cont" "drawing") ("text" "drawing") 
           ("Oxide" "drawing") ("Poly" "drawing")
           ("Metal2" "drawing") ("edgeLayer" "drawing"))
    

    Hopefully this is what you are looking for?

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • KokoLiu
    KokoLiu over 11 years ago

    Hi Lawrence,

     Thank you for your reply, but that wasn't what I am looking for. The skill code you provide will able to get a list of layers that are used in the cell. But I wish to get a list of layers that I set it as visible on the palette.

     Thanks,

    Koko 

      

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 11 years ago

     Hi Koko,

    Try this instead:

    lays = leGetValidLayerList(techGetTechFile(geGetEditCellView()))
    => (("Oxide" "pin") 
         ("Metal1" "drawing") 
         ("Via1" "drawing") 
         ("Metal2" "drawing") 
         ("Via2" "drawing")
         ("Metal3" "drawing")
         ...
         ("designFlow" "drawing4") 
         ("designFlow" "drawing5")
         ("designFlow" "drawing6") 
         ("designFlow" "drawing7") 
         ("designFlow" "drawing8") 
         ("designFlow" "drawing9") 
         ("Row" "drawing")
     )
    
    setof(lv lays leIsLayerVisible(lv))
    => (("Oxide" "pin") 
         ("Metal1" "drawing") 
         ("Via1" "drawing") 
         ("Metal2" "drawing") 
         ("Via2" "drawing")
         ("Metal3" "drawing") 
         ("Via3" "drawing") 
         ("Metal4" "drawing") 
         ("Via4" "drawing") 
         ("Metal5" "drawing")
         ("Via5" "drawing") 
         ("Metal6" "drawing") 
         ("Cont" "drawing")
         ("Cont" "pin") 
         ("Poly" "drawing")
         ("Nwell" "drawing") 
         ("Pwell" "drawing") 
         ("Oxide" "drawing") 
         ("Nburied" "drawing") 
         ("Nimp" "drawing")
         ("Pimp" "drawing") 
         ("Bondpad" "drawing") 
         ("text" "drawing")
     )
    

    This should be close enough to (if not exactly) what you are asking.

    Regards,

    Lawrence.

    • 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