SKILL: How to change net name?

M

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


Min Ting wrote:
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
 
Hi,

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

Thanks,

Min

On Aug 14, 6:36 pm, "S. Badel" <stephane.ba...@REMOVETHISepfl.ch>
wrote:
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

Min Ting wrote:
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
 
Never mind! It works out great!

Thanks!

On Aug 17, 10:44 am, Min Ting <min.tingmin1...@gmail.com> wrote:
Hi,

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

Thanks,

Min

On Aug 14, 6:36 pm, "S. Badel" <stephane.ba...@REMOVETHISepfl.ch
wrote:

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

Min Ting wrote:
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
 

Welcome to EDABoard.com

Sponsor

Back
Top