• 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 Pcells for switching layers on and off for a artw...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 144
  • Views 13131
  • 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 Pcells for switching layers on and off for a artwork

skillforpcells
skillforpcells over 10 years ago

I am new to skill, can you please list the ways to write the skill file for switching the layers off and on for a given figure. Also to iterate the figure in a array pattern. 

Apart from writing the skill file, I also want to know about the procedure for reading the skill file to create a Pcell. Is there a way we can create a Menu and later define the callbacks.

  • Cancel
  • theopaone
    theopaone over 10 years ago

    A pcell is a cellView master that has a set of parameters assigned to it. The contents of a pcell are defined by the values of the parameters on the instance of the pcell.  You would have to have a parameter on your pcell to control what shapes are drawn. A figure, actually a shape, has a single layer. You would have to create a new shape on a different layer if that layer is turned on, either by copying the original shape or calculating a new one.

    Some requirements:

    How many parameters should I use, one or one for each optional layer? What would be the allowed values of the parameter? What should be the default value and action in the pcell?

    ;; This code is guaranteed not to work

    pcDefinePCell( list( ddGetObj(libName) cellName viewName viewType )
       ( (optionalLayers 'list () ) ; parameter to control optional layers - list of layer names
          ( rows 'int 1 ) ; Number of rows
          ( columns 'int 1 ) ; number of columns
          ( xPitch 'float .1 ) ; Pitch between columns
          ( yPitch 'float .2 ) ; Pitch between rows
        )

       figList = foreach( mapcar layer optionalLayers
                              dbCreatePolygon( pcCellView layer shapePoints ) )

     ;; To copy to an array pattern, the first set is already created so start from 2
      xStep = yStep = 0.0

       for( x 2 columns
         xStep = xStep + xPitch
         yStep = 0.0
         for( y 2 rows
              yStep = yStep + yPitch
              foreach( fig figList dbCopyFig( fig pcCellView list( xStep:yStep "R0") ) )
         )  ; fory

       ) ; for x

    )

    That is an example of how it can be done.

    I don't understand your second request. If you create the pcell definition and load it into the CIW, you will have a pcell. You can create a CDF to go along with the pcell which would give you the option of having choices and callbacks.

     

    Ted

    • 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