T
tattvamasi@gmail.com
Guest
All,
Using the following code to descend into the path
specified.
Used as : PVNdesPath("/I0/I1/I2"), where I0, I1,
I2 are instances in the hierarchy.
Output: Opens a new window of the final instance.
Problem:
Can we enhance this code to actually descend
recursively(in place) rather than open the last cell
in a new window? ( Just like schematic find does?)
Or is there a way that schematic find can be given
a hierarchy to find the instance?
I am unable to find any public functions that can
do descend using skill like schematic find does.
Please advice
procedure(PVNdesPath(path)
prog( (master nMaster pathList next)
master=geGetWindowCellView()
nMaster=nil
pathList=parseString(path "/")
foreach(instname pathList
next=dbFindAnyInstByName(master instname)~>master
nMaster=dbOpenCellViewByType(next~>libName
next~>cellName
"schematic")
master=nMaster
) ;foreach
geOpen(
?window hiOpenWindow()
?lib master~>libName
?cell master~>cellName
?view "schematic"
?viewType "schematic"
?mode "r"
)
); prog
) ;proc
Using the following code to descend into the path
specified.
Used as : PVNdesPath("/I0/I1/I2"), where I0, I1,
I2 are instances in the hierarchy.
Output: Opens a new window of the final instance.
Problem:
Can we enhance this code to actually descend
recursively(in place) rather than open the last cell
in a new window? ( Just like schematic find does?)
Or is there a way that schematic find can be given
a hierarchy to find the instance?
I am unable to find any public functions that can
do descend using skill like schematic find does.
Please advice
procedure(PVNdesPath(path)
prog( (master nMaster pathList next)
master=geGetWindowCellView()
nMaster=nil
pathList=parseString(path "/")
foreach(instname pathList
next=dbFindAnyInstByName(master instname)~>master
nMaster=dbOpenCellViewByType(next~>libName
next~>cellName
"schematic")
master=nMaster
) ;foreach
geOpen(
?window hiOpenWindow()
?lib master~>libName
?cell master~>cellName
?view "schematic"
?viewType "schematic"
?mode "r"
)
); prog
) ;proc