• 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. Reading PCell Properties/Parameters using SKILL

Stats

  • Locked Locked
  • Replies 12
  • Subscribers 145
  • Views 7253
  • 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

Reading PCell Properties/Parameters using SKILL

frasheed
frasheed over 11 years ago

 Hello All,

I have a PCell that has nfet layout and I am writing a SKILL code to open the layout and label the Gate, Drain, Source and Bulk in layout. For that I need to read the parameters that where is the Gate, Drain and Sourcein layout. I tried some commands like :

pcGetParameters , pcGetParamLabelDefn, pcGetParamLabels, pcGetParamLayers but all of them are given me "Nil". Can anyone help me what's wrong ? Is it because the PCell doesn't have any properties ?

or is there any better way for labeling ?

Thanks

P.S: I didn't created that PCell and I am very beginner to SKILL.

 

  • Cancel
Parents
  • skillUser
    skillUser over 11 years ago

    Hi,

    I'm still a bit confused - in one sentence you say that the PCell instantiates an nfet, and then in another you say that the nfet cell is a PCell (and both of these could be true, since a PCell can contain an instance of another PCell...).

    Never mind though, it should not matter too much.  Your code might look something like this:

    procedure(CCFaddInstPinLabels(@optional (cellView geGetEditCellView()))
    let( (transform pinCenter)
      foreach( inst cellView~>instances
        transform=inst~>transform
        foreach( instTerm inst~>instTerms
          foreach( pin instTerm~>term~>pins
            pinCenter=centerBox(pin~>fig~>bBox)
            dbCreateLabel(cellView list("text" "drawing")
              dbTransformPoint(pinCenter transform)
              strcat("n" instTerm~>name)
              "centerCenter"
              "R0" "stick"
    	  0.0625
            ); dbCreateLabel
          ); foreach pin
        ); foreach instance terminal
      ); foreach instance
    );let
    ); procedure CCFaddInstPinLabels
    

    Hopefully this is close to what you want?  It creates a label "n<terminalName>" on the center of each pin figure of the instances in the current cellview when you invoke CCFaddInstPinLabels() in the CIW.

    Regards,

    Lawrence.

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

    Hi,

    I'm still a bit confused - in one sentence you say that the PCell instantiates an nfet, and then in another you say that the nfet cell is a PCell (and both of these could be true, since a PCell can contain an instance of another PCell...).

    Never mind though, it should not matter too much.  Your code might look something like this:

    procedure(CCFaddInstPinLabels(@optional (cellView geGetEditCellView()))
    let( (transform pinCenter)
      foreach( inst cellView~>instances
        transform=inst~>transform
        foreach( instTerm inst~>instTerms
          foreach( pin instTerm~>term~>pins
            pinCenter=centerBox(pin~>fig~>bBox)
            dbCreateLabel(cellView list("text" "drawing")
              dbTransformPoint(pinCenter transform)
              strcat("n" instTerm~>name)
              "centerCenter"
              "R0" "stick"
    	  0.0625
            ); dbCreateLabel
          ); foreach pin
        ); foreach instance terminal
      ); foreach instance
    );let
    ); procedure CCFaddInstPinLabels
    

    Hopefully this is close to what you want?  It creates a label "n<terminalName>" on the center of each pin figure of the instances in the current cellview when you invoke CCFaddInstPinLabels() in the CIW.

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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