SKILL: How to change net name?

Discussion in 'Cadence' started by Min Ting, Aug 14, 2009.

  1. Min Ting

    Min Ting Guest

    Hi all,

    I am wondering is there any command that I could use to change the net
    name of net in a schematic?
    The thing is, there are two conventions for substrate in my cell
    library, one is "sub!" the other one is "SUBC!", so I am trying to
    change all the "sub!" to "SUBC!"

    What I am trying now is:

    use dbFindNetByName( cv "sub!" ) to get the net object id

    and then use:

    schHiReplace(
    [ g_replaceAll ]
    [ t_propName ]
    [ t_condOp ]
    [ t_propValue ]
    [ t_newPropName ]
    [ t_newPropValue ] )

    to make the change, however, it is always complaining about the
    propName, I am wondering what do I suppose to specify for that field.
    Or is there any other commands would do the job?

    Thanks and regards,

    Min
     
    Min Ting, Aug 14, 2009
    #1
  2. Min Ting

    S. Badel Guest

    Hi Min,

    A clean way to do this, from a connectivity point of view, is to use dbMergeNet(oldNet
    dbMakeNet(newNet)). [Not 100% sure of the order of the arguments to dbMergeNet].

    But this will only change the connectivity in the database. If you want a working schematic, you
    should rather change the label(s) text, before schCheck()'ing your schematic cellview. You might
    also want to look for pins, if there is a possibility that pins exist on that net (which doesn't
    make too much sense for a global net, unless that net has a net expression).

    here's a starter, off the top of my head:

    setof(x cv~>shapes x~>objType==label && x~>theLabel=="sub!")~>theLabel = "SUBC!"
    dbSave(cv)
    schCheck(cv)


    Hope this helps.
    Stéphane
     
    S. Badel, Aug 15, 2009
    #2
  3. Min Ting

    Min Ting Guest

    Hi,

    I am wondering for the label, should I use "netName"?

    Thanks,

    Min

     
    Min Ting, Aug 17, 2009
    #3
  4. Min Ting

    Min Ting Guest

    Never mind! It works out great!

    Thanks!

     
    Min Ting, Aug 17, 2009
    #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.