• 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. Extract the number of the top most metal layer of a cell...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 14334
  • 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

Extract the number of the top most metal layer of a cell using SKILL

maheshwaran
maheshwaran over 6 years ago

Hello,

I am fairly new to custom design and SKILL. I have a requirement to extract the number of the top most metal stack for processing for e.g. if a cell a total metal stacks uptill M14 I need to know that the cell's highest metal stack is M14 along with the cell name, If a cell has upto M12 my output should be M12 with the cell name. Is there way in SKILL to do that? if yes, Could anyone help me? 

Thanks,

Mahesh

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    Just threw this together:

    /* abGetHighestLayer.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Jun 17, 2019 
    Modified   
    By         
    
    Find the highest layer of a certain type (defaults to metal) in
    the design.
    
    abGetHighestLayer() => "Metal4"
    
    abGetHighestLayer(?acrossHierarchy t) => "Metal6"
    
    ***************************************************
    
    SCCS Info: @(#) abGetHighestLayer.il 06/17/19.21:05:07 1.1
    
    */
    
    /*********************************************************************
    *                                                                    *
    * abGetHighestLayer(@key (cv geGetEditCellView()) (function "metal") *
    *                          acrossHierarchy)                          *
    *                                                                    *
    * Find the topmost layer with the given function (defaults to metal) *
    * in the given cellView (defaults to current), optionally looking at *
    *                  all in the hierarchy if needed.                   *
    *                                                                    *
    *********************************************************************/
    
    procedure(abGetHighestLayer(@key (cv geGetEditCellView()) (function "metal") 
            acrossHierarchy)
        let((tf topToBottom usedLayers)
            ;----------------------------------------------------------------
            ; Figure out the order of the layers matching the given function
            ; and put it in reverse order
            ;----------------------------------------------------------------
    	tf=techGetTechFile(cv)
            topToBottom=reverse(
                mapcar('car 
                    setof(layerFunc techGetLayerFunctions(tf) cadr(layerFunc)==function)
                )
            )
            ;----------------------------------------------------------------
            ; Now collect all the layers used in the design. If ?acrossHierarchy t
            ; was provided, then include those in lower level cellViews (if opened)
            ;----------------------------------------------------------------
            usedLayers=makeTable('usedLayers nil)
            foreach(lpp cv~>lpps
                when(acrossHierarchy || !zerop(lpp~>nShapes)
                    usedLayers[lpp~>layerName]=t
                )
            )
            ;----------------------------------------------------------------
            ; Find the first top to bottom layer that's in the design
            ;----------------------------------------------------------------
            car(exists(layer topToBottom usedLayers[layer]))
        )
    )
    
    • 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