Hello, Everybody! I have just started my career in Analog Layout Design. I am working for AMD in Hyderabad.
I need a skill code for copying via2 on via1 at selected places.
It's not that clear to me precisely what you want... also, which version of the tools are you talking about (Vias are somewhat different in IC61, since OA has them as first-class objects).
In reply to Andrew Beckett:
I am very happy for your quick response .........I am using IC514 version of cadence.We have been provided by a PDK kit. We instantiating everything from this 'gpdk90' kit library.My question is - suppose if I have stacked via(1 or 2)s at differnt places . How can I place another via(2 or 3) at same location by pressing a key or with a skill code.I know one possible solution.......i.eI have selected the vias where I want to copy another vias. I pressed copy command..and in CIW window I have entered like this (0:0) enter(0:0)And in layout Window I have pressed 'q'(property form) and I changed them into another vias there by copying one via onto another via at same location.....But I am looking for a better solution fo this..........
In reply to IC Layout:
Process each selected via and use the dbCreateInst or dbCreateParamInst to place the new via:
cv = deGetCellView()via2Id = dbOpenCellViewByType( libName "via2" "layout" )foreach( inst geGetSelectedSet() when( inst~>objType == "inst" && inst~>cellName == "via1" newVia = dbCreateInst(cv via2Id nil inst~>xy inst~>orient) ))
You may have to calculate the parameter values based on the via1 size.You would have to add the instTerm for the newVia if you need it connected to the net as via1, look up dbCreateInstTerm
For IC6.1, the objects are vias and not instances, they get added directly to the net:
via2Id = techFindViaDefByName( techId "via2")cv = deGetCellView()foreach( via geGetSelectedSet() when(via_>objType == "stdVia" || via~>objType == "customVia" && via~>viaHeader>viaDefName == "via1" newVia = dbCreateVia( cvId via2Id via~>origin via~>orient) when( via~>net dbAddFigToNet( newVia via~>net ) ) )
Again, you will have to calculate the via parameters values for the via size.
In reply to Austin CAD Guy:
Thank U very much.. Mr.Austin..Your code is working.....
I have added two more statements to fullfill my intention.......
cv = deGetCellView()via2Id = dbOpenCellViewByType( libName "M3_M2c" "layout" )foreach( inst geGetSelectedSet() when( inst~>objType == "inst" && inst~>cellName == "M2_M1c" newVia = dbCreateInst(cv via2Id nil inst~>xy inst~>orient)
newVia ~>rows = inst~>rows
newVia~>columns = inst~>columns
Once again. Thank U very much......