• 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
  • skillUser
    skillUser over 15 years ago
    Hi,

    The documentation is a good place to start for this, for example it contains this section:

     
    Creating Instances within Pcells

    It is often useful to create instances of other cells within a pcell. You can also create pcell instances within a pcell. For example, inside your pcell code, you can create the following:

        Get the cellview ID of the cell to add as an instance:

        cellId = dbOpenCellViewByType( gt_lib t_cellName lt_viewName)

        Create an instance of this cell:

        inst = dbCreateInst( d_cellView d_master nil l_point t_orient 1)

        If the instance is a pcell, use

        inst = dbCreateParamInst(
                    d_cellView d_master nil l_point t_orient 1
                         list(
                             list( param1Name "float" 10.)
                             list( param2Name "string" "some string" )

                         ) ; close list

        ) ; close dbCreateParamInst

     Another function, in addition to dbCreateParamInst() is dbCreateParamInstByMasterName().

    Hopefully the above information will help to get you started.  By the way, it often helps if you give information about which version you are using, since new functions are often added to the newer releases, and approaches to some topics change (e.g. things are often done differently in the OpenAccess database than they are under the CDB database) . The above was taken from the IC613 version but I think in this case it is the same as the IC5141 documentation (and the approach is the same too).

    Regards,

    Lawrence.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillUser
    skillUser over 15 years ago
    Hi,

    The documentation is a good place to start for this, for example it contains this section:

     
    Creating Instances within Pcells

    It is often useful to create instances of other cells within a pcell. You can also create pcell instances within a pcell. For example, inside your pcell code, you can create the following:

        Get the cellview ID of the cell to add as an instance:

        cellId = dbOpenCellViewByType( gt_lib t_cellName lt_viewName)

        Create an instance of this cell:

        inst = dbCreateInst( d_cellView d_master nil l_point t_orient 1)

        If the instance is a pcell, use

        inst = dbCreateParamInst(
                    d_cellView d_master nil l_point t_orient 1
                         list(
                             list( param1Name "float" 10.)
                             list( param2Name "string" "some string" )

                         ) ; close list

        ) ; close dbCreateParamInst

     Another function, in addition to dbCreateParamInst() is dbCreateParamInstByMasterName().

    Hopefully the above information will help to get you started.  By the way, it often helps if you give information about which version you are using, since new functions are often added to the newer releases, and approaches to some topics change (e.g. things are often done differently in the OpenAccess database than they are under the CDB database) . The above was taken from the IC613 version but I think in this case it is the same as the IC5141 documentation (and the approach is the same too).

    Regards,

    Lawrence.
    • 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