skill: property of instance in schematic

Discussion in 'Cadence' started by anil Kumar, Aug 28, 2006.

  1. anil Kumar

    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
     
    anil Kumar, Aug 28, 2006
    #1
  2. anil Kumar

    Jimka Guest

    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)))
     
    Jimka, Aug 28, 2006
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.