• 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 get instance name in symbol

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 149
  • Views 18157
  • 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 get instance name in symbol

Sarvani
Sarvani over 13 years ago
Hi all,
If my schematic have AND,OR,NOT, AND,AND with I0, I1, I2,I3,I4 as instance names then I need to convert
I0 - AND0,
I1 -> OR1,
I2 -> NOT1,
I3 - AND2,
I4 - AND3,
Please let me know How can I get this? I need to convert this for all schematics. In my schematic I found "[@info1]" for getting instance labels.
 
Thank you,
venu
  • Cancel
  • dmay
    dmay over 13 years ago

    Venu,
    Your numbering seems a little inconsistent. I'm assuming your mean AND1, not AND0. Regardless, you can  start your indexing from 0 or 1 or whatever you choose. I would do something like the following (this is untested off the top of my head):

    indexTbl = makeTable("indexes" 1)
    foreach(inst geGetEditCellView()~>instances
        when(member(inst~>cellName list("AND" "OR" "NOT")
            inst~>name = sprintf(nil "%s%d" inst~>cellName indexTbl[inst~>cellName]
            indexTbl[inst~>cellName] = indexTbl[inst~>cellName]+1
        )
    )

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sarvani
    Sarvani over 13 years ago
    But I don't want to edit in schematic. I want to put some label in symbol Which generates like that. For example when I instantiate AND symbol in schematic then it comes with AND1(instance Name not cell name) instead of "I0". If I instantiate another AND then it will automatically comes with AND2(instance name)
     
    Thank you,
    venu
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Add a cellView property on the symbol called "instNamePrefix" and set it to "AND". Search in cdnshelp for "instNamePrefix" to find more details.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 13 years ago

    Your original post only spoke of "converting". It is important to be very clear in your posts. Andrew's solution should do what you need.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Sarvani
    Sarvani over 13 years ago

     Sorry Dmay. Previously I didn't know about symbols Editing tool. Thats why I got confussion in first post. And Thank you Andrew. I have set  instNamePrefix in symbol. It's working good. Thank you very much.

    Thank you,

    sarvani.venu

    • 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