 |
|
| Computers Forum Index » Computer - Cadence » Finding "count" component value in schematic.... |
|
Page 1 of 1 |
|
| Author |
Message |
| PolyPusher... |
Posted: Fri Oct 16, 2009 2:03 pm |
|
|
|
Guest
|
Hi,
I am trying to get the value of count for each instance in schematic
and am having limited luck.
geGetSelectedSet(geGetEditCellView())~>prop~>name
Will give a list of all the properties for an instance in schematic.
geGetSelectedSet(geGetEditCellView())~>prop~>value
Will return a list with all the values.
To make it simple, can someone scribble some skill to print out:
I45.1
I45.2
I46.1
.......
Where I45 shows a count of 2 and I46 shows a count of one in
Schematic.
Thank you for any and all help in advance,
PolyPusher |
|
|
| Back to top |
|
|
|
| PolyPusher... |
Posted: Mon Oct 19, 2009 12:27 pm |
|
|
|
Guest
|
On Oct 19, 3:56 am, Andrew Beckett <andr... at (no spam) DcEaLdEeTnEcTe.HcIoSm>
wrote:
Quote: PolyPusher wrote, on 10/16/09 15:03:
Hi,
I am trying to get the value of count for each instance in schematic
and am having limited luck.
geGetSelectedSet(geGetEditCellView())~>prop~>name
Will give a list of all the properties for an instance in schematic.
geGetSelectedSet(geGetEditCellView())~>prop~>value
Will return a list with all the values.
To make it simple, can someone scribble some skill to print out:
I45.1
I45.2
I46.1
......
Where I45 shows a count of 2 and I46 shows a count of one in
Schematic.
Thank you for any and all help in advance,
PolyPusher
Hi PolyPusher,
Not entirely sure I get what you want (I can't quite see what the ~>prop~>name
has got to do with this).
In your example, it lists I45.1 and I45.2 - so I really don't know:
a) what you're counting?
b) what you're trying to output?
If it's the count of user defined properties on each instance, it would be:
cv=geGetEditCellView()
foreach(inst cv
printf("%s.%d\n" inst~>name length(inst~>prop))
)
but this is a wild guess...
Regards,
Andrew.- Hide quoted text -
- Show quoted text -
Andrew,
I am sorry I didn't explain my need very well. I am trying to access
the "count" of a component used in schematic. For, example:
If I select a pfet with a count of two and start Edit Object
Properties there is:
Model Name
Count
Width(finger)
Length
Number of fingers
Number of slices......
I want to have the "count" returned to me, basically.
Thank you for your help,
PolyPusher |
|
|
| Back to top |
|
|
|
| PolyPusher... |
Posted: Mon Oct 19, 2009 12:46 pm |
|
|
|
Guest
|
On Oct 19, 3:56 am, Andrew Beckett <andr... at (no spam) DcEaLdEeTnEcTe.HcIoSm>
wrote:
Quote: PolyPusher wrote, on 10/16/09 15:03:
Hi,
I am trying to get the value of count for each instance in schematic
and am having limited luck.
geGetSelectedSet(geGetEditCellView())~>prop~>name
Will give a list of all the properties for an instance in schematic.
geGetSelectedSet(geGetEditCellView())~>prop~>value
Will return a list with all the values.
To make it simple, can someone scribble some skill to print out:
I45.1
I45.2
I46.1
......
Where I45 shows a count of 2 and I46 shows a count of one in
Schematic.
Thank you for any and all help in advance,
PolyPusher
Hi PolyPusher,
Not entirely sure I get what you want (I can't quite see what the ~>prop~>name
has got to do with this).
In your example, it lists I45.1 and I45.2 - so I really don't know:
a) what you're counting?
b) what you're trying to output?
If it's the count of user defined properties on each instance, it would be:
cv=geGetEditCellView()
foreach(inst cv
printf("%s.%d\n" inst~>name length(inst~>prop))
)
but this is a wild guess...
Regards,
Andrew.- Hide quoted text -
- Show quoted text -
Andrew,
I am sorry I didn't explain my need very well. I am trying to
access
the "count" of a component used in schematic. For, example:
If I select a pfet with a count of two and start Edit Object
Properties there is:
Model Name
Count ;the count will show a number "2" here.
Width(finger)
Length
Number of fingers
Number of slices......
I want the output to be, let us assume the instance is I45.
I45.1
I45.2
This seems silly, but is part of a bigger script idea....
I need to know how to access the "count", not the number of defined
properties.
Thank you for your help,
PolyPusher
Andrew,
That was close to what I wanted. |
|
|
| Back to top |
|
|
|
| Andrew Beckett... |
Posted: Mon Oct 19, 2009 12:56 pm |
|
|
|
Guest
|
PolyPusher wrote, on 10/16/09 15:03:
Quote: Hi,
I am trying to get the value of count for each instance in schematic
and am having limited luck.
geGetSelectedSet(geGetEditCellView())~>prop~>name
Will give a list of all the properties for an instance in schematic.
geGetSelectedSet(geGetEditCellView())~>prop~>value
Will return a list with all the values.
To make it simple, can someone scribble some skill to print out:
I45.1
I45.2
I46.1
......
Where I45 shows a count of 2 and I46 shows a count of one in
Schematic.
Thank you for any and all help in advance,
PolyPusher
Hi PolyPusher,
Not entirely sure I get what you want (I can't quite see what the ~>prop~>name
has got to do with this).
In your example, it lists I45.1 and I45.2 - so I really don't know:
a) what you're counting?
b) what you're trying to output?
If it's the count of user defined properties on each instance, it would be:
cv=geGetEditCellView()
foreach(inst cv
printf("%s.%d\n" inst~>name length(inst~>prop))
)
but this is a wild guess...
Regards,
Andrew. |
|
|
| Back to top |
|
|
|
| PolyPusher... |
Posted: Mon Oct 19, 2009 1:44 pm |
|
|
|
Guest
|
On Oct 19, 8:00 am, Andrew Beckett <andr... at (no spam) DcEaLdEeTnEcTe.HcIoSm>
wrote:
Quote: PolyPusher wrote, on 10/19/09 13:27:
I am sorry I didn't explain my need very well. I am trying to access
the "count" of a component used in schematic. For, example:
If I select a pfet with a count of two and start Edit Object
Properties there is:
Model Name
Count
Width(finger)
Length
Number of fingers
Number of slices......
I want to have the "count" returned to me, basically.
Thank you for your help,
PolyPusher
So "Count" is a property on the transistor? If so, you should be able to do:
cv=geGetEditCellView()
foreach(inst cv~>instances
; pick the right property name - look in the CDF, or at inst~>prop~>name
; to see what it is called
count=inst~>Count
when(numberp(count)
printf("%s.%d\n" inst~>name count)
)
)
Regards,
Andrew.- Hide quoted text -
- Show quoted text -
cv=geGetEditCellView()
foreach(inst cv~>instances
; pick the right property name - look in the CDF, or at
inst~>prop~>name
; to see what it is called
Count=inst~>count
when(numberp(Count)
printf("%s.%d\n" inst~>name Count)
)
)
Andrew,
I reposted the solution that you gave. You had inst~>Count instead of
inst~>count, I think you wanted the
variable to be capitalized, Count. I know, you were just testing to
me ;-)
Thank you very much, you are too kind and patient.
PolyPusher. |
|
|
| Back to top |
|
|
|
| Andrew Beckett... |
Posted: Mon Oct 19, 2009 5:00 pm |
|
|
|
Guest
|
PolyPusher wrote, on 10/19/09 13:27:
Quote:
I am sorry I didn't explain my need very well. I am trying to access
the "count" of a component used in schematic. For, example:
If I select a pfet with a count of two and start Edit Object
Properties there is:
Model Name
Count
Width(finger)
Length
Number of fingers
Number of slices......
I want to have the "count" returned to me, basically.
Thank you for your help,
PolyPusher
So "Count" is a property on the transistor? If so, you should be able to do:
cv=geGetEditCellView()
foreach(inst cv~>instances
; pick the right property name - look in the CDF, or at inst~>prop~>name
; to see what it is called
count=inst~>Count
when(numberp(count)
printf("%s.%d\n" inst~>name count)
)
)
Regards,
Andrew. |
|
|
| Back to top |
|
|
|
| Andrew Beckett... |
Posted: Fri Oct 23, 2009 2:18 am |
|
|
|
Guest
|
PolyPusher wrote, on 10/19/09 14:44:
Quote:
- Show quoted text -
cv=geGetEditCellView()
foreach(inst cv~>instances
; pick the right property name - look in the CDF, or at
inst~>prop~>name
; to see what it is called
Count=inst~>count
when(numberp(Count)
printf("%s.%d\n" inst~>name Count)
)
)
Andrew,
I reposted the solution that you gave. You had inst~>Count instead of
inst~>count, I think you wanted the
variable to be capitalized, Count. I know, you were just testing to
me ;-)
Thank you very much, you are too kind and patient.
PolyPusher.
Actually I had no way of knowing what the property was actually called, because
this is specific to your devices, rather than a general property that all
devices have. In a previous post in this thread, you said the Edit Object
Properties form referred to it as "Count" - so I guessed the property might be
called "Count". But it could have been "matilda" for all I knew - the prompt
doesn't need to match the property name. The fact that it was "count" rather
than "Count" only you would be able to find out.
Whether the variable name has the C in upper or lowercase is completely
irrelevant - it makes absolutely no difference (provided you're consistent, of
course).
So that was why I put the comment in there "pick the right property name - look
in the CDF...".
Regards,
Andrew. |
|
|
| Back to top |
|
|
|
|
|
All times are GMT
The time now is Sun Nov 29, 2009 8:00 am
|
|