• 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. Can't add pin db object to a figure group?

Stats

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

Can't add pin db object to a figure group?

MatthewLove
MatthewLove over 8 years ago

I'm generating a PCell and when I create the pin objects with leCreatePin(), I can't add the db object to my figure group.

I get the following error: *Error* dbAddFigToFigGroup: Invalid figure - db:0x1442af9b

As you can see, the function does return a db object so it's quite odd.

Any ideas?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Two problems here:

    1. leCreatePin is not a function that is safe to use in PCells - that's because it's an application specific function that is not in all executables. In the PCell documentation you'll find it tells you to only use core SKILL, db, dd, tech, cdf, rod and abe functions (I think that's all - there may be one or two others). You'll find that stream out (unless from virtual memory) will fail otherwise, as would other external interfaces that directly read the database
    2. leCreatePin returns a pin object, not a figure. You can only add figures to figGroups, and the pin object is an object that describes the pin - the link to the net, the terminal, the figures that make up the pin and so on. You'd need to add pin~>fig (or pin~>figs to be strictly correct) to the figGroup instead - although as I said, using leCreatePin is the wrong thing to do in a PCell.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MatthewLove
    MatthewLove over 8 years ago

    Thanks for the reply Andrew.

    That's fair enough, I forgot about that restriction on the PCells.

    I'll just place a label at the desired locations instead and get the user to place the pins manually at the top level.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    I'm not entirely sure how that would help - a pin within the pcell won't serve as a pin the level above anyway. It's also pretty easy to create pins without needing to use leCreatePin. Two simple ways:

    net=dbMakeNet(cv "yourTermName")
    pinFig=dbCreateRect(cv list("Metal1" "pin") list(0:0 0.1:0.1))
    pin=dbCreatePin(net pinFig)
    pin~>term~>direction="output"

    then pinFig is what you'd add to your figGroup.

    Or you could use the ROD function to make it in a single line:

    rodObj=rodCreateRect(?cvId cv ?origin 0:0 ?width 0.1 ?length 0.1 ?layer list("Metal1" "pin") ?termName "yourTermName" ?termIOType "output" ?pin t)

    You'd then add rodObj~>dbId to your figGroup

    Regards,

    Andrew.

    • 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