assign netname while using "dbCreatePath"

Guest
Hi,

Is it possible to assign net name for a path while drawing path using
dbCreatePath()
 
sudhasubramaniam@gmail.com writes:

Is it possible to assign net name for a path while drawing path using
dbCreatePath()
dbAddFigToNet() should do what you want.

Yours,

--
Jean-Marc
 
Hi Sudha,

The dbAddFigToNet() is documented in the The CadenceŽ Design Framework
II SKILL Functions Reference
UNIX> acroread $CDSHOME/doc/skdfref/skdfref.pdf

You could get a quick reference to this function from the Finder tool
as well, here is what it returns:

dbAddFigToNet(
d_figId
d_netId
)
=> t / nil

Assigns the given figure object to a specified net object. If the
figure is already associated with a different net, the figure will be
detached from that net before being assigned to the given net object.

Basically, you need to fetch the ID a a figure (i.e the id of the
created path) and the Id of a net you want to add the path into.
Simple as that !

Regards,
Riad.
 
Hi Sudha,
The dbAddFigToNet() is documented in the The CadenceŽ Design Framework
II SKILL Functions Reference
UNIX> acroread $CDSHOME/doc/skdfref/skdfref.pdf

You could get a quick reference to this function from the Finder tool
as well, here is what it returns:
dbAddFigToNet(
d_figId
d_netId
)
=> t / nil

Assigns the given figure object to a specified net object. If the
figure is already associated with a different net, the figure will be
detached from that net before being assigned to the given net object.

Basically, you need to fetch the ID a a figure (i.e the id of the
created path) and the Id of a net you want to add the path into.
Simple as that !

This is a quick example as requested to Jean-Marc:
;
myCv=geGetEditCellView()
myPath = dbCreatePath(myCv list("metal1" "drawing") list(0:0 0:2 2:2
2:0) 0.5 "extendExtend")
myNet = dbCreateNet(myCv "MYNET")
dbAddFigToNet(myPath myNet)
;

You could then check the path in question is added to the net either
by checking the connectivity information of the path (Edit Properties
GUI) or by skill using:
myNet~>figs.

Hope it is clear in your mind now !
Regards,
Riad.
 
Riad KACED wrote, on 03/12/09 22:32:
Hi Sudha,
The dbAddFigToNet() is documented in the The CadenceŽ Design Framework
II SKILL Functions Reference
UNIX> acroread $CDSHOME/doc/skdfref/skdfref.pdf

You could get a quick reference to this function from the Finder tool
as well, here is what it returns:
dbAddFigToNet(
d_figId
d_netId
)
=> t / nil

Assigns the given figure object to a specified net object. If the
figure is already associated with a different net, the figure will be
detached from that net before being assigned to the given net object.

Basically, you need to fetch the ID a a figure (i.e the id of the
created path) and the Id of a net you want to add the path into.
Simple as that !

This is a quick example as requested to Jean-Marc:
;
myCv=geGetEditCellView()
myPath = dbCreatePath(myCv list("metal1" "drawing") list(0:0 0:2 2:2
2:0) 0.5 "extendExtend")
myNet = dbCreateNet(myCv "MYNET")
dbAddFigToNet(myPath myNet)
;

You could then check the path in question is added to the net either
by checking the connectivity information of the path (Edit Properties
GUI) or by skill using:
myNet~>figs.

Hope it is clear in your mind now !
Regards,
Riad.
The other thing you could do is use rodCreatePath() which allows you to attach
the newly created path(s) to a specified net name as you create it.
rodCreatePath is essentially a higher level function, and can be used for
multi-part paths as well as single paths.

Regards,

Andrew.
 
On Mar 15, 5:06 pm, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
Riad KACED wrote, on 03/12/09 22:32:





Hi Sudha,
The dbAddFigToNet() is documented in the The CadenceŽ Design Framework
II SKILL Functions Reference
UNIX> acroread $CDSHOME/doc/skdfref/skdfref.pdf

You could get a quick reference to this function from the Finder tool
as well, here is what it returns:
dbAddFigToNet(
  d_figId
  d_netId
)
=> t / nil

Assigns the given figure object to a specified net object. If the
figure is already associated with a different net, the figure will be
detached from that net before being assigned to the given net object.

Basically, you need to fetch the ID a a figure (i.e the id of the
created path) and the Id of a net you want to add the path into.
Simple as that !

This is a quick example as requested to Jean-Marc:
;
myCv=geGetEditCellView()
myPath = dbCreatePath(myCv list("metal1" "drawing")  list(0:0 0:2 2:2
2:0) 0.5 "extendExtend")
myNet = dbCreateNet(myCv "MYNET")
dbAddFigToNet(myPath myNet)
;

You could then check the path in question is added to the net either
by checking the connectivity information of the path (Edit Properties
GUI) or by skill using:
 myNet~>figs.

Hope it is clear in your mind now !
Regards,
Riad.

The other thing you could do is use rodCreatePath() which allows you to attach
the newly created path(s) to a specified net name as you create it.
rodCreatePath is essentially a higher level function, and can be used for
multi-part paths as well as single paths.

Regards,

Andrew.- Hide quoted text -

- Show quoted text -
Hey Andrew,

I suppose that netnames can be assigned to the individual nets with
the ROD Connectivity Arguments. I have made use of rodCreatePath()
funtion. I need to add that functionality. Here is what I have done :

;; Create a shielded path
procedure( shield()
errset(
(let (cv layer purpose list_draw_layer tech width1 tfId)
cv= geGetEditCellView()
layer = car(leGetEntryLayer()) ;displays layer on LSW is taken
purpose = cadr(leGetEntryLayer()); displays drawing or pin on the
selected lsw
list_draw_layer =list(layer purpose)
tech = techGetTechFile(geGetWindowCellView()); rule deck file id is
stored in tech
width1 = techGetSpacingRule(tech "minWidth" layer) ; the minimum width
is stored in width1
rodCreatePath(
?name "shield"
?layer list( layer purpose )
?pts list(2:-15 2:-5 15:-5 15:-15)
?width .8
?justification "center"
?cvId cv
?offsetSubPath
list(
list(
?layer list( layer purpose )
?justification "left"
?sep 1
?width .4
) ;end of offset sublist1
list(
?layer list( layer purpose )
?justification "right"
?sep 1
?width .4
) ;end of offset sublist2
) ;end of offset list of lists
) ;end of rodCreatePath
) ; end of let
t
) ; end of errset
) ; end of procedure
 
Pranjal_Wipro wrote, on 03/16/09 05:55:
Hey Andrew,

I suppose that netnames can be assigned to the individual nets with
the ROD Connectivity Arguments. I have made use of rodCreatePath()
funtion. I need to add that functionality. Here is what I have done :

;; Create a shielded path
procedure( shield()
.... snipped
) ; end of procedure
Was there a question in there? I couldn't see one...

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top