Guest
All,
I am trying to be able to select objects in schematic from SKILL. I
want to be able to select Instances, Cellnames, Instance Terms, nets
and pins. With the help of Riad and some work on my own I have the
code I need for Instances, nets and pins. The code is below.
I need code for Cellnames and Instance Terms.
Thank you in advance for any help,
Eric
procedure(instSel()
cv=geGetEditCellView()
geSelectFig(dbFindAnyInstByName(cv "I23"))
)
instSel()
;======================procedure to select net "vbias"...replace
"vbias" with variable....
procedure(sigSel()
cv=geGetEditCellView()
vbiasNetId=dbFindNetByName(cv "vbias");gets dataid for Vbias as to get
the and select figs attached.
vbiasFigs=vbiasNetId~>figs
foreach( fig vbiasFigs
geSelectFig(fig)
);foreach
EFVbias="vbias";gets vias connected to vbias
when(cv
foreach( inst cv~>instances
EFInstance=inst~>name
foreach( instTerm inst~>instTerms
Net=instTerm~>net~>name
Term=instTerm~>name
if(Term == "pdd" && Net == EFVbias
then geSelectFig(dbFindAnyInstByName(cv EFInstance))
);if
);foreach
);foreach
);when
);proc
sigSel()
;======================gives top level pin for the schematic
procedure( EFSelectPinFigs()
let( (cv pinName matchPins term)
cv = hiGetCurrentWindow()~>cellView
pinName = "D";variable for pinname------------------<<<<<<<<<<<
geDeselectAll()
foreach( term cv~>terminals
when( (term~>name == pinName)
matchPins = append(matchPins term~>pins)
); when
); foreach
foreach( pin matchPins
when( pin && pin~>fig
geSelectFig(pin~>fig)
); when
); foreach
t
); let
); proc
EFSelectPinFigs()
I am trying to be able to select objects in schematic from SKILL. I
want to be able to select Instances, Cellnames, Instance Terms, nets
and pins. With the help of Riad and some work on my own I have the
code I need for Instances, nets and pins. The code is below.
I need code for Cellnames and Instance Terms.
Thank you in advance for any help,
Eric
procedure(instSel()
cv=geGetEditCellView()
geSelectFig(dbFindAnyInstByName(cv "I23"))
)
instSel()
;======================procedure to select net "vbias"...replace
"vbias" with variable....
procedure(sigSel()
cv=geGetEditCellView()
vbiasNetId=dbFindNetByName(cv "vbias");gets dataid for Vbias as to get
the and select figs attached.
vbiasFigs=vbiasNetId~>figs
foreach( fig vbiasFigs
geSelectFig(fig)
);foreach
EFVbias="vbias";gets vias connected to vbias
when(cv
foreach( inst cv~>instances
EFInstance=inst~>name
foreach( instTerm inst~>instTerms
Net=instTerm~>net~>name
Term=instTerm~>name
if(Term == "pdd" && Net == EFVbias
then geSelectFig(dbFindAnyInstByName(cv EFInstance))
);if
);foreach
);foreach
);when
);proc
sigSel()
;======================gives top level pin for the schematic
procedure( EFSelectPinFigs()
let( (cv pinName matchPins term)
cv = hiGetCurrentWindow()~>cellView
pinName = "D";variable for pinname------------------<<<<<<<<<<<
geDeselectAll()
foreach( term cv~>terminals
when( (term~>name == pinName)
matchPins = append(matchPins term~>pins)
); when
); foreach
foreach( pin matchPins
when( pin && pin~>fig
geSelectFig(pin~>fig)
); when
); foreach
t
); let
); proc
EFSelectPinFigs()