• 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. swap instances given instance name.

Stats

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

swap instances given instance name.

marbs
marbs over 15 years ago

Hi all,

I would like to ask, how to swap instances in layout,

given the instance's name.  For example,  I would like to

swap the instances |M34  to |M335, how to do that in SKILL ?  

 

Thanks in advance,

Marbs

  • Cancel
  • Quek
    Quek over 15 years ago

    Hi Marbs

    A simple way to do it would be as follows:

    CCSswapInst("|M34" "|M335")

     procedure( CCSswapInst(inst1 inst2)
       let( (cv id1 id2 temp)
          cv=geGetWindowCellView()
          id1=dbFindAnyInstByName(cv inst1)
          id2=dbFindAnyInstByName(cv inst2)
          if( id1 && id2 then
             temp=id1~>xy
             id1~>xy=id2~>xy
             id2~>xy=temp
             printf("%s and %s have been swapped\n" inst1 inst2)
          else
             printf("Instances not found\n")
          ) ;if
       ) ;let
    ) ;procedure


    Best regards
    Quek

    swapinst.il
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marbs
    marbs over 15 years ago

    Thank you for the code sir,

    but how can I run this code in CIW ?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 15 years ago

    Hi Marbs

    Please load it in ciw using:

    load "swapinst.il"

    After loading it, enter the following in ciw:

    CCSswapInst("|M123" "|M456")

    By the way, when posting a question, it would be great if you can state the specific version of software which you are using so that we can come up with the best solution for you. : )  Tool versions can be obtained using commands such as:

    unix>icfb -W
    unix>icms -W
    unix>virtuoso -W
    unix>assura -W
    unix>spectre -W
    unix>ultrasim -W
    unix>vcar -W
    unix>qrc -version
    unix>ncsim -version
    unix>encounter -version
    unix>eps -version

    Best regards
    Quek

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

    Also, in Layout XL there is Edit->Other->Swap Components. In IC613 it is Edit->Advanced->Swap Components (again, in VLS XL).

    So it's a built-in capability if you want to do it interactively.

    Regards,

    Andrew.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marbs
    marbs over 15 years ago
    Thank you very much sir,
    I am now able to run the skill code you have given.
     
    Sorry for my late reply because I am very busy for the last week.  I will follow your instruction about posting a question next time.
     
    Regards,
    Marbs
    • 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