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,
Hi MarbsA 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) ;procedureBest regardsQuek
In reply to Quek:
Thank you for the code sir,
but how can I run this code in CIW ?
In reply to marbs:
Hi MarbsPlease 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 -Wunix>icms -Wunix>virtuoso -Wunix>assura -Wunix>spectre -Wunix>ultrasim -Wunix>vcar -Wunix>qrc -versionunix>ncsim -versionunix>encounter -versionunix>eps -versionBest regardsQuek
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.