to delete a net in a schematic using SKILL

Discussion in 'Cadence' started by kamal, Sep 26, 2006.

  1. kamal

    kamal Guest

    Hi,

    I am trying to have a subroutine where i mention my lib/cell schematic
    view and a list of nets and it should iteratively delete those nets. I
    tried 2 approaches till now, but facing a problem with both:

    1. I opened the schematic using
    a) cvid = dbOpenCellViewByType (<all data>)
    b) k = "dbFindNetByName(cvid netname).
    c) dbDeleteObject(k)
    d)dbSave(k)
    e)dbClose(k)

    The problem is when i open that schematic i still see that net .

    2. I did a select;
    geOpen(?lib "mylib" ?cell "mycell" ?view "schematic" ?viewType
    "schematic" ?mode "a")
    cvId = dbOpenCellViewByType("mylib" "mycell" "schematic" "schematic"
    "a")
    foreach( netToBeDeleted netNameList

    schHiSelectByProperty("select")
    hiiSetCurrentForm('schSchSelectPropForm)
    schSchSelectPropForm->schSchSelPropNameCyclic->value = "netName"
    schSchSelectPropForm->schSchSelPropValueString->value = netToBeDeleted
    hiFormDone(schSchSelectPropForm)
    schHiDelete()
    );foreach
    dbSave(cvId)
    dbClose(cvId)

    Here when i am trying these lines one by one in my icfb , then it
    deletes those nets , but when i put this a procedure then it stops at
    the place where we need to click <OK> on the form and thus my whole
    effort of automation gets lost.

    Please help me out.

    Thanks & Regards,
    Kamal
     
    kamal, Sep 26, 2006
    #1
  2. For the first approach:

    Q: does the net still have a pin, which is not deleted?

    a) cvid = dbOpenCellViewByType (<all data>)
    b) k = "dbFindNetByName(cvid netname).
    c) dbDeleteObject(k)
    -> try
    *) schCheck( cvid )
    here, to extract the new created connectivity.
    d)dbSave(k)
    e)dbClose(k)


    Bernd
     
    Bernd Fischer, Sep 26, 2006
    #2
  3. kamal

    kamal Guest

    I resolved the issue, there is a property in the net object called
    "fig", which has info abt it being a label or line etc, i itercatively
    deletd the contents of fig and then deleted the base object of that net
    and it worked. :)-)

    by just deleting the net object and even after doing schCheck() , i was
    not able to delete the net .

    Thanks,
    Kamal
     
    kamal, Sep 27, 2006
    #3
  4. That's because schCheck() creates the nets based on the physical information
    (the wires) in the schematic. You need to remove the physical information
    (in fact, deleting just the wires associated with the net, and re-doing the
    schCheck would remove the net - you don't have to explicitly delete the
    net object because the schCheck will do that.

    Regards,

    Andrew.
     
    Andrew Beckett, Oct 2, 2006
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.