• 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. skill code to copy via2 on via1

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 14092
  • 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

skill code to copy via2 on via1

IC Layout
IC Layout over 16 years ago

 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. 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    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).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • IC Layout
    IC Layout over 16 years ago

     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.e
    I 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..........

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Austin CAD Guy
    Austin CAD Guy over 16 years ago

     Process each selected via and use the dbCreateInst or dbCreateParamInst to place the new via:

     For 5141:

    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.

     Ted

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • IC Layout
    IC Layout over 16 years ago

     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......

    Prabhakar. K 

    • 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