• 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 Design
  3. How to use "config" or other methods to switch the cell...

Stats

  • Replies 4
  • Subscribers 124
  • Views 122
  • Members are here 0

How to use "config" or other methods to switch the cell's library during simulation

dogman4
dogman4 8 hours ago

Hi,friends

I have a lib1 cell1 that contains lib1 cell2. I would like to replace lib1 cell2 with lib2 cell2 during simulation without modifying lib1 cell1 itself—using config or another method(The symbol of lib1 cell2 and lib2 cell2 are identical).

Is there a way to accomplish this?

  • Sign in to reply
  • Cancel
  • Andrew Beckett
    Andrew Beckett 8 hours ago

    You can't do this with the hierarchy editor - in fact there isn't really a clean way (or even difficult way) to do this.

    Could you copy Lib2/cell2/schematic (assuming it's the schematic view you want) to Lib1/cell2/schematic_lib2 (say) and then use the hierarchy editor to pick the schematic_lib2 view?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dogman4
    dogman4 8 hours ago in reply to Andrew Beckett

    thanks,andrew

    sorry,I can't.

    Since I don't have permission to edit lib1, and lib1 is updated frequently, so it's not a good idea to copy lib1 to my own folder.

    is there any other way

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew Beckett
    Andrew Beckett 8 hours ago in reply to dogman4

    If you are running a single simulation in ADE only (no sweeps) then you could open the lib1/cell1 design readonly, and then do:

    cv=geGetEditCellView()
    newMaster=dbOpenCellViewByType("Lib2" "Cell2" "symbol")
    inst=dbFindAnyInstByName(cv "InstNameOfCell2") ; i.e. the instance name that you want to replace
    inst~>master=newMaster
    dbSetConnCurrent(cv)

    Then you should be able to netlist/simulate the modified design (it's modified only in memory). If you have sweeps, it's more of a problem because ADE normally does the netlisting in the background.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • dogman4
    dogman4 7 hours ago in reply to Andrew Beckett

    vrey thanks,andrew

    I'll try it in few days

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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