• 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
  • frasheed
    frasheed over 11 years ago

     Hi Lawrence,

    I had the instance terminal name for bulk but no pin for that so I modified your code and created the pin for bulk and assigned to bulk. Now your code is like :

     procedure(CCFaddInstPinLabels(@optional (cellView geGetEditCellView()))
    let( (transform pinCenter)
      foreach( inst cellView~>instances
        transform=inst~>transform
        foreach( instTerm inst~>instTerms
        if(instTerm~>name == "b"
        then
            tf=techGetTechFile(cellView)
        viaDef=techFindViaDefByName(tf "RXNWCAM1")
        b_db = dbCreateVia(cellView viaDef 0.2:0.4 "R0")
        b_pin = dbCreatePin(instTerm~>net b_db "b")
        instTerm = b_pin
         );if
          foreach( pin instTerm~>term~>pins
          pinCenter=centerBox(pin~>fig~>bBox)
          dbCreateLabel(cellView list("M1" "label")
              if(pin~>name == "b"
              then
              dbTransformPoint(pinCenter list(0:0 "R0")) ;No transformation for Bulk
              else
              dbTransformPoint(pinCenter transform)
              );if
              strcat("n" instTerm~>name)
              "centerCenter"
              "R0" "stick"
          0.0625
            ); dbCreateLabel
          ); foreach pin
        ); foreach instance terminal
      ); foreach instance
    );let
    ); procedure CCFaddInstPinLabels

    CCFaddInstPinLabels()

    I have a two queries regarding this code . In your dbCreateLabel(cellView list("text" "drawing") it creates label on text layer and pupose is drawing, I want label on the respective layer, like if drain is on M1 then label should be on M1 and the gate is on M2 then Lable should be in M2, any command to read the pin layer?

    and in dbCreateVia(cellView viaDef 0.2:0.4 "R0"), I used the fixed co-ordinates for via, but I want to use the co-ordinates of pcell instance and I want to place via near pcell ?

    will inst~>transform will help ?

    Thanks

     

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

     Hi Lawrence,

    I had the instance terminal name for bulk but no pin for that so I modified your code and created the pin for bulk and assigned to bulk. Now your code is like :

     procedure(CCFaddInstPinLabels(@optional (cellView geGetEditCellView()))
    let( (transform pinCenter)
      foreach( inst cellView~>instances
        transform=inst~>transform
        foreach( instTerm inst~>instTerms
        if(instTerm~>name == "b"
        then
            tf=techGetTechFile(cellView)
        viaDef=techFindViaDefByName(tf "RXNWCAM1")
        b_db = dbCreateVia(cellView viaDef 0.2:0.4 "R0")
        b_pin = dbCreatePin(instTerm~>net b_db "b")
        instTerm = b_pin
         );if
          foreach( pin instTerm~>term~>pins
          pinCenter=centerBox(pin~>fig~>bBox)
          dbCreateLabel(cellView list("M1" "label")
              if(pin~>name == "b"
              then
              dbTransformPoint(pinCenter list(0:0 "R0")) ;No transformation for Bulk
              else
              dbTransformPoint(pinCenter transform)
              );if
              strcat("n" instTerm~>name)
              "centerCenter"
              "R0" "stick"
          0.0625
            ); dbCreateLabel
          ); foreach pin
        ); foreach instance terminal
      ); foreach instance
    );let
    ); procedure CCFaddInstPinLabels

    CCFaddInstPinLabels()

    I have a two queries regarding this code . In your dbCreateLabel(cellView list("text" "drawing") it creates label on text layer and pupose is drawing, I want label on the respective layer, like if drain is on M1 then label should be on M1 and the gate is on M2 then Lable should be in M2, any command to read the pin layer?

    and in dbCreateVia(cellView viaDef 0.2:0.4 "R0"), I used the fixed co-ordinates for via, but I want to use the co-ordinates of pcell instance and I want to place via near pcell ?

    will inst~>transform will help ?

    Thanks

     

    • 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