R
Robin
Guest
Hello,
I have a question, how do i select in SKILL a single instance from a
instance?
This is my situation:
I have a schematic with a instance I5<153:0> and this instance has 7
pins.
Connected to these pins are nets with "complex" net names.
Like
this :"<*4>(<*16>coladdr<4>,<*16>coladdr_<4>,<*16>coladdr<4>,<*10>coladdr_<4>".
I wanted to make a generic skill script that selects each iteration
(e.g. I5<15> and generate a via matrix to forsee the correct connects
at his pins in layout.
However I have difficulties finding the right attribute to get the
list of the iterations.
This is how far i got:
libName = "my_lib"
cellName = "my_cell"
targetInstanceName= "my_instname<153:0>"
cvId=dbOpenCellViewByType(libName cellName "schematic" "schematic"
"r");
instList=cvId~>instances;
n=length(instList);
targetPosition=0;
for( index 0 n
if(nth(index instList)~>name == targetInstanceName
then
targetPosition=index;
)
)
targetInstance=nth(targetPosition instList);
From here i wanted to make an array from the iterations as objects and
then see what the connections should be for each pin.
Thanks for your help,
Robin
I have a question, how do i select in SKILL a single instance from a
instance?
This is my situation:
I have a schematic with a instance I5<153:0> and this instance has 7
pins.
Connected to these pins are nets with "complex" net names.
Like
this :"<*4>(<*16>coladdr<4>,<*16>coladdr_<4>,<*16>coladdr<4>,<*10>coladdr_<4>".
I wanted to make a generic skill script that selects each iteration
(e.g. I5<15> and generate a via matrix to forsee the correct connects
at his pins in layout.
However I have difficulties finding the right attribute to get the
list of the iterations.
This is how far i got:
libName = "my_lib"
cellName = "my_cell"
targetInstanceName= "my_instname<153:0>"
cvId=dbOpenCellViewByType(libName cellName "schematic" "schematic"
"r");
instList=cvId~>instances;
n=length(instList);
targetPosition=0;
for( index 0 n
if(nth(index instList)~>name == targetInstanceName
then
targetPosition=index;
)
)
targetInstance=nth(targetPosition instList);
From here i wanted to make an array from the iterations as objects and
then see what the connections should be for each pin.
Thanks for your help,
Robin