Home > Community > Forums > Custom IC SKILL > how to delete selected explicit pin

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 delete selected explicit pin 

Last post Thu, Jun 4 2009 7:15 AM by skillUser. 1 replies.
Started by SUBBHAREDDY 04 Jun 2009 07:06 AM. Topic has 1 replies and 1010 views
Page 1 of 1 (2 items)
Sort Posts:
  • Thu, Jun 4 2009 7:06 AM

    how to delete selected explicit pin Reply

    Hi

    In schematic i had declared explict pin separately say(VDD),and coresponding net say (VDD)  is connected to design.

    I am able to select and delete  the pin selected,but not able to delete its corresponding net at a time.

    My requirement is,however they defined explicit pins,i want to replace VDD pin with other explicit pin.

    Could you pls write a code for this?

    Code  i had written is :

     cv=dbOpenCellViewByType("CMOS045_IO_DEVKIT_OD25_7M4X0Y2Z" "TEST" "schematic" nil "a")

    name1="VDD"

    netdb=car(setof(x cv~>instances (x~>pin~>term~>name == name1 )))

    x_cord = car(netdb~>xy)
    y_cord = cadr(netdb~>xy)

    dbDeleteObject(netdb)

    Pls let me know ?

    Thanks and regards

    Subbhareddy

     

    • Post Points: 20
  • Thu, Jun 4 2009 7:15 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,587
    • Points 15,915
    Re: how to delete selected explicit pin Reply

    Hi Subbhareddy,

    Your code deletes the physical pin instance, but does not delete the term or net object.  You should be able to use the dbFindNetByName() and dbFindTermByName() SKILL functions to get the database objects corresponding to the net and term objects respectivley, and then delete these using dbDeleteObject as you did for the pin.  You might want to check if there are any instTerm objects on the net before deleting it.

    Hopefully this is what you need.

    Regards,

    Lawrence.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by SUBBHAREDDY at 04 Jun 2009 07:06 AM. Topic has 1 replies.