• 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. How to instantiate a pcell in another pcell?

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 144
  • Views 18562
  • 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

How to instantiate a pcell in another pcell?

phenixgj
phenixgj over 15 years ago

 Assume I have alread a pcell library and I would like to create another pcell, which has an instant object of the first pcell.

Could anyone give me a simple example?

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    The problem is this line in the code:

    cellview = dbOpenCellViewByType("test" "Pcell_test" "layout" "maskLayout" "a")

    pcDefinePCell creates a parameterized cell within the test/Pcell_test/layout view, and the pcell code is responsible for building each subMaster. In your case you are overwriting the pcell within the pcell code, so it's bound to break.

    You should just use:

    cellview=pcCellView

    or better still just use pcCellView whereever you need the cellView to write to. The pcell code automatically has this variable set as the cellView you're building the subMaster in. There's no need to open anything in append mode - pcell subMasters are built in memory only.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    The problem is this line in the code:

    cellview = dbOpenCellViewByType("test" "Pcell_test" "layout" "maskLayout" "a")

    pcDefinePCell creates a parameterized cell within the test/Pcell_test/layout view, and the pcell code is responsible for building each subMaster. In your case you are overwriting the pcell within the pcell code, so it's bound to break.

    You should just use:

    cellview=pcCellView

    or better still just use pcCellView whereever you need the cellView to write to. The pcell code automatically has this variable set as the cellView you're building the subMaster in. There's no need to open anything in append mode - pcell subMasters are built in memory only.

    Regards,

    Andrew.

    • 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