Home > Community > Forums > Custom IC SKILL > skill code to copy via2 on via1

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 skill code to copy via2 on via1 

Last post Fri, Mar 13 2009 1:00 AM by IC Layout. 4 replies.
Started by IC Layout 08 Mar 2009 03:57 AM. Topic has 4 replies and 2616 views
Page 1 of 1 (5 items)
Sort Posts:
  • Sun, Mar 8 2009 3:57 AM

    • IC Layout
    • Top 150 Contributor
    • Joined on Fri, Mar 6 2009
    • Hyderabad, Andhra Pradesh
    • Posts 53
    • Points 1,155
    skill code to copy via2 on via1 Reply

     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. 

    Filed under:
    • Post Points: 20
  • Mon, Mar 9 2009 4:19 AM

    Re: skill code to copy via2 on via1 Reply

    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.

    • Post Points: 20
  • Tue, Mar 10 2009 5:10 AM

    • IC Layout
    • Top 150 Contributor
    • Joined on Fri, Mar 6 2009
    • Hyderabad, Andhra Pradesh
    • Posts 53
    • Points 1,155
    Re: skill code to copy via2 on via1 Reply

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

    • Post Points: 20
  • Thu, Mar 12 2009 12:17 PM

    Re: skill code to copy via2 on via1 Reply

     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

    • Post Points: 20
  • Fri, Mar 13 2009 1:00 AM

    • IC Layout
    • Top 150 Contributor
    • Joined on Fri, Mar 6 2009
    • Hyderabad, Andhra Pradesh
    • Posts 53
    • Points 1,155
    Re: skill code to copy via2 on via1 Reply

     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 

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by IC Layout at 08 Mar 2009 03:57 AM. Topic has 4 replies.