Netname expansion, any cadence public function?

R

Rajeswaran M

Guest
Is there any function which can give the list of nets from Bus.

For Eg.,

getAllSubNames("TEST<4:7>,A,B,C<1,2,6>,D<8>")
=> list("TEST<4>" "TEST<5>" "TEST<6>" "TEST<7>" "A" "B" "C<1>" "C<2>"
"C<6>" "D<8>")

Its possible to get it from member instance properties, if we need to
process instance properties. But a generic function is needed as I need
to process user input. A custom skill routine can be written. But it
will be great to use a supported function which would be robust enough
to match how schematic editor will read the bus data.
 
dbProduceMemName() will do the trick. This assumes you are using a newer
version.

Rajeswaran M wrote:
Is there any function which can give the list of nets from Bus.

For Eg.,

getAllSubNames("TEST<4:7>,A,B,C<1,2,6>,D<8>")
=> list("TEST<4>" "TEST<5>" "TEST<6>" "TEST<7>" "A" "B" "C<1>" "C<2>"
"C<6>" "D<8>")

Its possible to get it from member instance properties, if we need to
process instance properties. But a generic function is needed as I need
to process user input. A custom skill routine can be written. But it
will be great to use a supported function which would be robust enough
to match how schematic editor will read the bus data.
 
dbGetMemName() only gives you 1 member of the expanded name so you still
need to go through some type of loop to get the whole expanded name.
dbGetNameNumBit() will give you the length of the expanded name. Im not
sure how long dbProduceMemName has been around but if Andrew says it's
been there for a long time then I quite sure it has. Thanks Andrew.
I've always cheated and used an undocumented function
(nliExpandTerminalName) but this topic forced me to find a documented
one. I'l be updating code to use this now.

Andrew Beckett wrote:

It's been possible to do this forever - I've always used dbGetMemName().
dbProduceMemName seems to have been there since at least 4.4.1 - but I didn't
read the manual to find out the difference (I'm sure you can do that ;-> )

Andrew.

On Sun, 05 Mar 2006 15:50:53 GMT, Dominic DuVarney
srlayoutdesigner-NOSPAM@yahoo.com> wrote:


dbProduceMemName() will do the trick. This assumes you are using a newer
version.

Rajeswaran M wrote:

Is there any function which can give the list of nets from Bus.

For Eg.,

getAllSubNames("TEST<4:7>,A,B,C<1,2,6>,D<8>")
=> list("TEST<4>" "TEST<5>" "TEST<6>" "TEST<7>" "A" "B" "C<1>" "C<2>"
"C<6>" "D<8>")

Its possible to get it from member instance properties, if we need to
process instance properties. But a generic function is needed as I need
to process user input. A custom skill routine can be written. But it
will be great to use a supported function which would be robust enough
to match how schematic editor will read the bus data.
 

Welcome to EDABoard.com

Sponsor

Back
Top