Home > Community > Forums > Custom IC SKILL > How to change via level with skill in IC6

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: *

 How to change via level with skill in IC6 

Last post Fri, Jan 18 2013 4:23 AM by Andrew Beckett. 30 replies.
Started by Eric L14 26 May 2011 12:57 AM. Topic has 30 replies and 9406 views
Page 1 of 3 (31 items) 1 2 3 Next >
Sort Posts:
  • Thu, May 26 2011 12:57 AM

    • Eric L14
    • Top 500 Contributor
    • Joined on Thu, May 26 2011
    • Posts 20
    • Points 280
    How to change via level with skill in IC6 Reply

     In IC6, I have a bindkey which change via level (via1 to via2) . Main part of the code is:

    ; Current selected via
    viaToBeChanged=car(geGetSelSet())

    ; new via identifier
    newVia=dbOpenCellViewByType( technName viaName "layout" nil "r")
    if( newVia then
      viaToBeChanged~>master=newVia
    )

    Do you know how doing the same thing in IC6 ?

    Thanks in advance

    Eric

    • Post Points: 20
  • Thu, May 26 2011 7:52 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,604
    • Points 16,180
    Re: How to change via level with skill in IC6 Reply

    Hi Eric,

    I've not really played with this, but I think that you can find the via definition using something like techFindViaDefByName() and then use that as one of the arguments to the dbCreateVia() function. In IC 6.1.x vias are objects in the database, whereas in IC51 ad earlier vias are instances, so they do need to be treated differently in IC61x.

    Hope this helps.

    Lawrence.

    • Post Points: 35
  • Thu, May 26 2011 8:50 AM

    Re: How to change via level with skill in IC6 Reply

     There are two types of vias in IC6, customVias which have cellViews and stdVias which do not have cellViews. My current tech file only has stdVias so I cannot include anything about customVias.

     As Lawrence implied, with IC6, if you want to put in a new via in place of the old, not modify the parameters on an existing one, you have to replace the via by creating a new via instanceusing dbCreateVia and delete the old.

    Ted

    • Post Points: 20
  • Fri, May 27 2011 2:05 AM

    • Eric L14
    • Top 500 Contributor
    • Joined on Thu, May 26 2011
    • Posts 20
    • Points 280
    Re: How to change via level with skill in IC6 Reply

    Thanks for your replies.

    OK for creating a new via which is stdVia. dbCreateVia has some argmuments. There is no problem for me to get l_point and t_orient from the original via. But I don't know how to get l_paramList. Is there a function to get those parameters ?

    Eric

    • Post Points: 20
  • Fri, May 27 2011 10:19 AM

    Re: How to change via level with skill in IC6 Reply

     The non default parameter values are stored on the via header for that instance:

    instId~>viaHeader~>overrideParams

    The default parameter values have to be  extracted from the viaDef

    instId~>viaHeader~>viaDef~>params

     

    Ted

    • Post Points: 20
  • Mon, May 30 2011 10:52 PM

    • Eric L14
    • Top 500 Contributor
    • Joined on Thu, May 26 2011
    • Posts 20
    • Points 280
    Re: How to change via level with skill in IC6 Reply

    Ted,

    Thanks for your help. It works fine 

    Regards

    Eric

    • Post Points: 5
  • Wed, Jul 6 2011 3:29 PM

    • kpai
    • Not Ranked
    • Joined on Tue, Jul 21 2009
    • Posts 13
    • Points 215
    Re: How to change via level with skill in IC6 Reply

    Hi Lawrence,

    Based on what you mentioned the differenct between IC6.1.x vias are objects and IC51 are instance.   In this case, is a script in IC51 use  'leIsContact' to check if the via being selected and exist, what should I use accordingly in IC6.1.x?

     Thanks,

    Kathy

    • Post Points: 20
  • Wed, Jul 6 2011 9:01 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,604
    • Points 16,180
    Re: How to change via level with skill in IC6 Reply

    Hi Kathy,

    there is a function dbIsCellViewStdViaMaster() that may help, but there may be another way to approach the problem. In IC61x you can access the vias from the cellview database object, as well as the viaHeaders and viaMasters (and viaVariants) - perhaps you can come from one of these and check to see if the object in question matches?

    Hope this helps.

    Lawrence.

    • Post Points: 20
  • Thu, Jul 7 2011 1:46 AM

    Re: How to change via level with skill in IC6 Reply

    Kathy,

    In IC5141 vias were just instances, and it determined which instances were vias based on them being defined in the tech file as a via. So the leIsContact function could be passed an instance, and then it checked to see if it was one of the registered vias.

    In IC61 (because it's OpenAccess), vias are separate objects. So it's very easy to tell if a via is a via:

    inst~>objType=="stdVia" || inst~>objType=="customVia"

    or

    member(inst~>objType '("stdVia" "customVia"))

    take your pick!

    Regards,

    Andrew.

    • Post Points: 5
  • Thu, Jul 7 2011 4:05 PM

    • kpai
    • Not Ranked
    • Joined on Tue, Jul 21 2009
    • Posts 13
    • Points 215
    Re: How to change via level with skill in IC6 Reply

    Thanks Lawrence and Andrew for your prompt reply!

    I can find out my via is "stdVia".    Now, how can I found out this particular "stdVia" with it's col and row number?

    Thanks,

    Kathy

    • Post Points: 20
  • Fri, Jul 8 2011 2:45 AM

    Re: How to change via level with skill in IC6 Reply

    Kathy,

    inst~>viaHeader~>?? 

    You can see there's a viaDefName attribute, an overrideParams attribute (which is an assoc list of things like cutRows, cutColumns). The original (default) parameters are at inst~>viaHeader~>viaDef~>params - but they're just a simple list. So, for example:

    paramNames='("cutLayer" "cutWidth" "cutHeight" "cutRows" "cutColumns"

    "cutSpacing" "layer1Enc" "layer2Enc" "layer1Offset" "layer2Offset"

    "originOffset" "imp1Enc" "imp2Enc" ;"cutPattern"

    )

    mapcar('list paramNames inst~>viaHeader~>viaDef~>params)

    (("cutLayer" "Via1")
        ("cutWidth" 0.14)
        ("cutHeight" 0.14)
        ("cutRows" 1)
        ("cutColumns" 1)
        ("cutSpacing"
        (0.2 0.2)
        )
        ("layer1Enc"
        (0.06 0.06)
        )
        ("layer2Enc"
        (0.06 0.06)
        )
        ("layer1Offset"
        (0.0 0.0)
        )
        ("layer2Offset"
        (0.0 0.0)
        )
        ("originOffset"
        (0.0 0.0)
        )
        ("imp1Enc" nil)
        ("imp2Enc" nil)
    )

    So if you had this:

    default=mapcar('list paramNames inst~>viaHeader~>viaDef~>params)
    override=inst~>viaHeader~>overrideParams

    cadr(assoc("cutRows" override)) => 2
    cadr(assoc("cutRows" default)) => 1

    Hope that helps!

    Andrew.

     

    • Post Points: 20
  • Fri, Jul 8 2011 10:47 AM

    • kpai
    • Not Ranked
    • Joined on Tue, Jul 21 2009
    • Posts 13
    • Points 215
    Re: How to change via level with skill in IC6 Reply

    Thanks Andrew!    It works like a charm now.

    -Kathy =)

    • Post Points: 5
  • Thu, Jun 14 2012 4:18 AM

    • Gurup
    • Not Ranked
    • Joined on Thu, May 17 2012
    • Posts 12
    • Points 195
    Re: How to change via level with skill in IC6 Reply

    Hi Andrew,

      Is there anyway to change the existing via rows or column, by using viadefs parameter

    Filed under:
    • Post Points: 20
  • Thu, Jun 14 2012 6:38 AM

    Re: How to change via level with skill in IC6 Reply

    No. You can't do that (it doesn't make sense either).

    You can change the rows and columns of an existing via instance by using:

    viaInst~>cutRows=4
    viaInst~>cutColumns=6

    or you could use dbReplaceProp() or dbReplacePropList() to change them in one go.

    You'll find that you'll get a different viaHeader if you do this - it will bind that via to a different header.

    Andrew.

    • Post Points: 35
  • Mon, Jun 18 2012 10:46 PM

    • Gurup
    • Not Ranked
    • Joined on Thu, May 17 2012
    • Posts 12
    • Points 195
    Re: How to change via level with skill in IC6 Reply

    Thanks Andrew,I will try this.

    can you tell me what is difference between the objects and instances.

    Filed under:
    • Post Points: 20
Page 1 of 3 (31 items) 1 2 3 Next >
Sort Posts:
Started by Eric L14 at 26 May 2011 12:57 AM. Topic has 30 replies.