• 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. [PCell] How do I Create a Label through script/coding in...

Stats

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

[PCell] How do I Create a Label through script/coding in a pcell?

Socks and Shoes
Socks and Shoes over 2 years ago

I tried the common ROD-functions like rodCreateRect or rodCreatePolygon but did not manage to figure it out.

Thanks for your help and greetings

  • Cancel
Parents
  • p94todorov
    p94todorov over 2 years ago

    All you need should be a call to the dbCreateLabel API.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Socks and Shoes
    Socks and Shoes over 2 years ago in reply to p94todorov

    Hey, I already tried that and the label really does appear in the original Pcell. But when I try to place the Pcell in a layout, the Rectangle is there, but the label is not. So I thought, that you need a ROD-Function for that. Did I do something wrong here?


    pcDefinePCell(
        
        list(ddGetObj("ex") "Label_Test" "layout")
        (
            (Label t)

        )
        let( ()

        dbCreateLabel(dbOpenCellViewByType("ex" "Label_Test" "layout") list("MET1" "pin") 1:1 "MyLabel" "centerCenter" "R0" "stick" 0.3)

        )

        let( ()
            rodCreateRect(
                ?layer list("MET1" "drawing")
                ?bBox list( 0:0 1:1 )

            )
        )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Socks and Shoes
    Socks and Shoes over 2 years ago in reply to p94todorov

    Hey, I already tried that and the label really does appear in the original Pcell. But when I try to place the Pcell in a layout, the Rectangle is there, but the label is not. So I thought, that you need a ROD-Function for that. Did I do something wrong here?


    pcDefinePCell(
        
        list(ddGetObj("ex") "Label_Test" "layout")
        (
            (Label t)

        )
        let( ()

        dbCreateLabel(dbOpenCellViewByType("ex" "Label_Test" "layout") list("MET1" "pin") 1:1 "MyLabel" "centerCenter" "R0" "stick" 0.3)

        )

        let( ()
            rodCreateRect(
                ?layer list("MET1" "drawing")
                ?bBox list( 0:0 1:1 )

            )
        )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to Socks and Shoes

    You're creating the label in the wrong cellView. By re-opening the cellView with dbOpenCellViewByType, you're creating the label in the superMaster rather than the subMaster for this variant. Instead use pcCellView to specify the cellView for the current variant:

        dbCreateLabel(pcCellView list("MET1" "pin") 1:1 "MyLabel" "centerCenter" "R0" "stick" 0.3)

    I'm also not sure why you're surrounding each statement with an empty let? That's not necessary.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Socks and Shoes
    Socks and Shoes over 2 years ago in reply to Andrew Beckett

    Thank you so much Andrew! It works!

    • 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