skill: property of instance in schematic

A

anil Kumar

Guest
Hello Skill Experts,

I wish to know how I can dump properties of all transistors
instantiated in a schematic to a file.
I have option for transistor where I can choose different VT . I wish
to dump value of the VT which is presently used in the schematic.

Regards,
Anil
 
hi Anil, how can you know which of the instances are transistors?
and what is the name of the property which holds the VT value?

Assume you have a function which returns TRUE if the given
instance is a transistor. A problem here is that there is no
way to tell if an instance is a transistor without knowing your
design flow and design libraries. And assume the name of the property
is "VT".
is VT a cdf parameter? Let's assume it is.

How do you want the output file to look? Do you only want the
values of VT in that file, or would you like additional information.
How
do you intend to look at the file later and know which instance
each VT corresponds to?

Then here is the sketch of a function which will dump the property
values
to a file. You may need to change the println line to output exactly
what you want to see.

By default the function will examine the current window cellview and
print some output for every instance which answers TRUE to the
function anil_is_transistor?

Hope this helps.

-jim

(defun anil_is_transistor? (d_inst)
... you fill in the code here....
)

(defun anil_dump_from_schematic ( @key (fileName "./anil.out")
(cv
(geGetEditCellView))

(propName 'VT))
(let ((port (outfile fileName)))
(foreach d_inst d_cv~>instances
(when (anil_is_transistor? d_inst)
(let ((cdf (cdfGetInstCDF d_inst)))
(println (list d_inst~>name d_inst~>cellName (get cdf
propName)->value port)))))
(close port)))


anil Kumar wrote:
Hello Skill Experts,

I wish to know how I can dump properties of all transistors
instantiated in a schematic to a file.
I have option for transistor where I can choose different VT . I wish
to dump value of the VT which is presently used in the schematic.

Regards,
Anil
 

Welcome to EDABoard.com

Sponsor

Back
Top