• 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

     Hey Ted,

    Thanks for your reply, I edited my code like this:

    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")
        cellView~>instances~>instTerms~>term~>pins = subst(b_pin '(nil) cellView~>instances~>instTerms~>term~>pins) ;; update bulk pin db in cellview properties

         );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()

     but substitution command it's substitutiong the db for bulk to the nil value but when I try to retreve pin~>name then virtuoso is crashing.

    and 1 more thing I have noticed that before substiutiong the list is 

    (((db:0x16ddb39b) (db:0x16ddb39d db:0x16ddb39c) (db:0x16ddb39a) nil))

     

    after subst(b_pin '(nil) cellView~>instances~>instTerms~>term~>pins) the values are

     

    (((db:0x16ddb39b) (db:0x16ddb39d db:0x16ddb39c) (db:0x16ddb39a) . db:0x16dda11a))

     

    there is a '.' (dot) before last db , this might be the reason virtuoso is crashing ? if so how to remove that ?

    (((db:0x16ddb39b) (db:0x16ddb39d db:0x16ddb39c) (db:0x16ddb39a) . db:0x16dda11a))

     

    how can I set it with dbSetq? I am confused at the input values fro dbSetq

    thanks

     

     

     

     

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

     Hey Ted,

    Thanks for your reply, I edited my code like this:

    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")
        cellView~>instances~>instTerms~>term~>pins = subst(b_pin '(nil) cellView~>instances~>instTerms~>term~>pins) ;; update bulk pin db in cellview properties

         );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()

     but substitution command it's substitutiong the db for bulk to the nil value but when I try to retreve pin~>name then virtuoso is crashing.

    and 1 more thing I have noticed that before substiutiong the list is 

    (((db:0x16ddb39b) (db:0x16ddb39d db:0x16ddb39c) (db:0x16ddb39a) nil))

     

    after subst(b_pin '(nil) cellView~>instances~>instTerms~>term~>pins) the values are

     

    (((db:0x16ddb39b) (db:0x16ddb39d db:0x16ddb39c) (db:0x16ddb39a) . db:0x16dda11a))

     

    there is a '.' (dot) before last db , this might be the reason virtuoso is crashing ? if so how to remove that ?

    (((db:0x16ddb39b) (db:0x16ddb39d db:0x16ddb39c) (db:0x16ddb39a) . db:0x16dda11a))

     

    how can I set it with dbSetq? I am confused at the input values fro dbSetq

    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