• 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. Replace instances in a schematic by other instances

Stats

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

Replace instances in a schematic by other instances

StephanWeber
StephanWeber 6 months ago

Hi,

I have a schematic open in Schematic entry, and want e.g. to replace all instances of nmos_3/symbol of tsmc18rf lib to nmos/symbol of bhvLib. No need for property mappings here.

Is there a simple skill code for this?

Alternatively, I can specify the schematic to be used via lib/cell/view. Then having a target schematic as output would be best.

Bye Stephan

  • Cancel
  • Andrew Beckett
    Andrew Beckett 6 months ago

    Do you need SKILL? Use Edit->Replace and search for "master" and search for "tsmc18rf nmos_3 symbol" and replace with the new master "bhvLib nmos symbol".

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser 6 months ago

    Hi Stephan,

    something like this perhaps?

    foreach(ih geGetEditCellView()~>instHeaders
      when(ih~>libName=="tsmc18rf" && ih~>cellName=="nmos_3"
        dbSetInstHeaderMasterName(ih "bhvLib" "nmos" ih~>viewName)
      )
    )


    Best regards,
    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephanWeber
    StephanWeber 6 months ago in reply to skillUser

    Will try it!

    The idea is indeed to extend it for maybe 10 types of cells.

    Bye Stephan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephanWeber
    StephanWeber 6 months ago in reply to StephanWeber

    Hi,

    I open my schematic, and put this into CIW:

    foreach(ih geGetEditCellView()~>instHeaders
         when(ih~>libName=="devices_symbols_hv" && ih~>cellName=="pdomos50"
        dbSetInstHeaderMasterName(ih "bhvLib" “pmos_spectre" ih~>viewName)   ) )

    But nothing happens. So I need to press Control-C. Can you see a mistake?

    It would be also good to have a mapping from multiple target cells to a single final cell, e.g. we have different resistor types but I want to map to an (almost) ideal resistor.

    Bye Stephan

    • 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