How to get the value of a instance parameter in schematic by

J

jren

Guest
Hi everyone
May some one tell me the way to get the value of a parameter in
schematic by use of SKILL language?
I am a beginner, I do not know if my question is clear: for example,
there is a inductance in the schematic, I want to write SKILL code to
get the value of the the inductance, how can I realize it?

Actually, I have one more question. Does anyone know how to share the
parameter between a layout and a schematic in one cell? I mean, if I
change the value of the inductance in the layout, the schematic in the
same cell will automatically change the inductance value. And I do not
want to use layout XL.

Thanks!
 
jren, you can certainly write a piece of code to take a change from the
layout and push it back to the schematic, BUT, why don't you want to
use xl? This is what it was designed for.... assuming you have a good
reason....

take layout
make a list of instances and their properties
open schematic
do dbReplaceProp on all the instances

Notice a few caveats..
all your instances need one to one mapping
our instances need to have the same names
all our properties need to have the same names

In practice, these these limitations are quite troublesome (iterated
instances, m vs fingers, diff pair cells, etc). You can get around all
of them, but the code becomes complex and you are spending a lot of
time for this feature.... is this what you really want?

David Reynolds

jren wrote:
Hi everyone
May some one tell me the way to get the value of a parameter in
schematic by use of SKILL language?
I am a beginner, I do not know if my question is clear: for example,
there is a inductance in the schematic, I want to write SKILL code to
get the value of the the inductance, how can I realize it?

Actually, I have one more question. Does anyone know how to share the
parameter between a layout and a schematic in one cell? I mean, if I
change the value of the inductance in the layout, the schematic in the
same cell will automatically change the inductance value. And I do not
want to use layout XL.

Thanks!
 
Hi David
Thanks for your hint. I just want to find another way to connect the
layout and schematic. Actually, I just learnt about the cadence, and is
learning xl. I have some understanding of using SKILL to get layout,
but know little about using SKILL to draw schematic, maybe this
question is not good, which manual is best to learn to draw schematic
in SKILL?
Besides, sometimes, I can not open the "search" in Cadence, if often
says (connecting refused), is there any possible solution?
Thanks!

jren

DReynolds wrote:
jren, you can certainly write a piece of code to take a change from the
layout and push it back to the schematic, BUT, why don't you want to
use xl? This is what it was designed for.... assuming you have a good
reason....

take layout
make a list of instances and their properties
open schematic
do dbReplaceProp on all the instances

Notice a few caveats..
all your instances need one to one mapping
our instances need to have the same names
all our properties need to have the same names

In practice, these these limitations are quite troublesome (iterated
instances, m vs fingers, diff pair cells, etc). You can get around all
of them, but the code becomes complex and you are spending a lot of
time for this feature.... is this what you really want?

David Reynolds

jren wrote:
Hi everyone
May some one tell me the way to get the value of a parameter in
schematic by use of SKILL language?
I am a beginner, I do not know if my question is clear: for example,
there is a inductance in the schematic, I want to write SKILL code to
get the value of the the inductance, how can I realize it?

Actually, I have one more question. Does anyone know how to share the
parameter between a layout and a schematic in one cell? I mean, if I
change the value of the inductance in the layout, the schematic in the
same cell will automatically change the inductance value. And I do not
want to use layout XL.

Thanks!
 
Hi
can any one explain the use of dbReplaceProp as mentioned the David's
message ?
e.g. I draw a inductance in schematic by instance from rsfq.basic
library, the property shows that:
Library Name: rsfq.basic
CellName : ind2
View Name: symbol
Instance Name: L1
PartName: ind2
Model Type: LR
Value Name: *
Value: 1.07
Model: L1*XL.
dbReplaceProp contains (g_object t_name t_propType g_value)
if I want to replace the value of inductance here by the inductance in
layout in the same cell,
is the g_object the ddGetObj("library" "cell" "schematic") , and what
is the t_name?
Thanks!
jren wrote:
Hi David
Thanks for your hint. I just want to find another way to connect the
layout and schematic. Actually, I just learnt about the cadence, and is
learning xl. I have some understanding of using SKILL to get layout,
but know little about using SKILL to draw schematic, maybe this
question is not good, which manual is best to learn to draw schematic
in SKILL?
Besides, sometimes, I can not open the "search" in Cadence, if often
says (connecting refused), is there any possible solution?
Thanks!

jren

DReynolds wrote:
jren, you can certainly write a piece of code to take a change from the
layout and push it back to the schematic, BUT, why don't you want to
use xl? This is what it was designed for.... assuming you have a good
reason....

take layout
make a list of instances and their properties
open schematic
do dbReplaceProp on all the instances

Notice a few caveats..
all your instances need one to one mapping
our instances need to have the same names
all our properties need to have the same names

In practice, these these limitations are quite troublesome (iterated
instances, m vs fingers, diff pair cells, etc). You can get around all
of them, but the code becomes complex and you are spending a lot of
time for this feature.... is this what you really want?

David Reynolds

jren wrote:
Hi everyone
May some one tell me the way to get the value of a parameter in
schematic by use of SKILL language?
I am a beginner, I do not know if my question is clear: for example,
there is a inductance in the schematic, I want to write SKILL code to
get the value of the the inductance, how can I realize it?

Actually, I have one more question. Does anyone know how to share the
parameter between a layout and a schematic in one cell? I mean, if I
change the value of the inductance in the layout, the schematic in the
same cell will automatically change the inductance value. And I do not
want to use layout XL.

Thanks!
 
jren,
here is an example of the useage. You need to know the name of the
property and the type
dbReplaceProp(newInst "w" "string" inst~>w)


David


jren wrote:
Hi
can any one explain the use of dbReplaceProp as mentioned the David's
message ?
e.g. I draw a inductance in schematic by instance from rsfq.basic
library, the property shows that:
Library Name: rsfq.basic
CellName : ind2
View Name: symbol
Instance Name: L1
PartName: ind2
Model Type: LR
Value Name: *
Value: 1.07
Model: L1*XL.
dbReplaceProp contains (g_object t_name t_propType g_value)
if I want to replace the value of inductance here by the inductance in
layout in the same cell,
is the g_object the ddGetObj("library" "cell" "schematic") , and what
is the t_name?
Thanks!
jren wrote:
Hi David
Thanks for your hint. I just want to find another way to connect the
layout and schematic. Actually, I just learnt about the cadence, and is
learning xl. I have some understanding of using SKILL to get layout,
but know little about using SKILL to draw schematic, maybe this
question is not good, which manual is best to learn to draw schematic
in SKILL?
Besides, sometimes, I can not open the "search" in Cadence, if often
says (connecting refused), is there any possible solution?
Thanks!

jren

DReynolds wrote:
jren, you can certainly write a piece of code to take a change from the
layout and push it back to the schematic, BUT, why don't you want to
use xl? This is what it was designed for.... assuming you have a good
reason....

take layout
make a list of instances and their properties
open schematic
do dbReplaceProp on all the instances

Notice a few caveats..
all your instances need one to one mapping
our instances need to have the same names
all our properties need to have the same names

In practice, these these limitations are quite troublesome (iterated
instances, m vs fingers, diff pair cells, etc). You can get around all
of them, but the code becomes complex and you are spending a lot of
time for this feature.... is this what you really want?

David Reynolds

jren wrote:
Hi everyone
May some one tell me the way to get the value of a parameter in
schematic by use of SKILL language?
I am a beginner, I do not know if my question is clear: for example,
there is a inductance in the schematic, I want to write SKILL code to
get the value of the the inductance, how can I realize it?

Actually, I have one more question. Does anyone know how to share the
parameter between a layout and a schematic in one cell? I mean, if I
change the value of the inductance in the layout, the schematic in the
same cell will automatically change the inductance value. And I do not
want to use layout XL.

Thanks!
 
Hi David
Thanks!
However, I met new problems: when I run the codes of dbReplaceProp(),
it says "property can not be attached to a non-hierarchical property".
is the reason that I get the schematic instance from rsfq.basic
library, so it is non-hierarchical? is there any solution?

jren
DReynolds wrote:
jren,
here is an example of the useage. You need to know the name of the
property and the type
dbReplaceProp(newInst "w" "string" inst~>w)


David


jren wrote:
Hi
can any one explain the use of dbReplaceProp as mentioned the David's
message ?
e.g. I draw a inductance in schematic by instance from rsfq.basic
library, the property shows that:
Library Name: rsfq.basic
CellName : ind2
View Name: symbol
Instance Name: L1
PartName: ind2
Model Type: LR
Value Name: *
Value: 1.07
Model: L1*XL.
dbReplaceProp contains (g_object t_name t_propType g_value)
if I want to replace the value of inductance here by the inductance in
layout in the same cell,
is the g_object the ddGetObj("library" "cell" "schematic") , and what
is the t_name?
Thanks!
jren wrote:
Hi David
Thanks for your hint. I just want to find another way to connect the
layout and schematic. Actually, I just learnt about the cadence, and is
learning xl. I have some understanding of using SKILL to get layout,
but know little about using SKILL to draw schematic, maybe this
question is not good, which manual is best to learn to draw schematic
in SKILL?
Besides, sometimes, I can not open the "search" in Cadence, if often
says (connecting refused), is there any possible solution?
Thanks!

jren

DReynolds wrote:
jren, you can certainly write a piece of code to take a change from the
layout and push it back to the schematic, BUT, why don't you want to
use xl? This is what it was designed for.... assuming you have a good
reason....

take layout
make a list of instances and their properties
open schematic
do dbReplaceProp on all the instances

Notice a few caveats..
all your instances need one to one mapping
our instances need to have the same names
all our properties need to have the same names

In practice, these these limitations are quite troublesome (iterated
instances, m vs fingers, diff pair cells, etc). You can get around all
of them, but the code becomes complex and you are spending a lot of
time for this feature.... is this what you really want?

David Reynolds

jren wrote:
Hi everyone
May some one tell me the way to get the value of a parameter in
schematic by use of SKILL language?
I am a beginner, I do not know if my question is clear: for example,
there is a inductance in the schematic, I want to write SKILL code to
get the value of the the inductance, how can I realize it?

Actually, I have one more question. Does anyone know how to share the
parameter between a layout and a schematic in one cell? I mean, if I
change the value of the inductance in the layout, the schematic in the
same cell will automatically change the inductance value. And I do not
want to use layout XL.

Thanks!
 
I think we'd need to understand the context in which you're using it. This seems
a bit of a strange error, and I can't imagine what would be causing it.

Can you post the complete code?

Andrew.

On 14 Jun 2006 11:29:17 -0700, "jren" <ddsweet@gmail.com> wrote:

Hi David
Thanks!
However, I met new problems: when I run the codes of dbReplaceProp(),
it says "property can not be attached to a non-hierarchical property".
is the reason that I get the schematic instance from rsfq.basic
library, so it is non-hierarchical? is there any solution?

jren
DReynolds wrote:
jren,
here is an example of the useage. You need to know the name of the
property and the type
dbReplaceProp(newInst "w" "string" inst~>w)


David

--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.
 
Hi
I just fixed it, I think at first I gave the wrong inst Id. Anyway,
thanks a lot for your help.:)

jren
Andrew Beckett wrote:
I think we'd need to understand the context in which you're using it. This seems
a bit of a strange error, and I can't imagine what would be causing it.

Can you post the complete code?

Andrew.

On 14 Jun 2006 11:29:17 -0700, "jren" <ddsweet@gmail.com> wrote:

Hi David
Thanks!
However, I met new problems: when I run the codes of dbReplaceProp(),
it says "property can not be attached to a non-hierarchical property".
is the reason that I get the schematic instance from rsfq.basic
library, so it is non-hierarchical? is there any solution?

jren
DReynolds wrote:
jren,
here is an example of the useage. You need to know the name of the
property and the type
dbReplaceProp(newInst "w" "string" inst~>w)


David

--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.
 

Welcome to EDABoard.com

Sponsor

Back
Top