Home > Community > Forums > Custom IC SKILL > How to use the dbReplaceProp()?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to use the dbReplaceProp()? 

Last post Tue, Jun 13 2006 1:00 PM by archive. 4 replies.
Started by archive 13 Jun 2006 01:00 PM. Topic has 4 replies and 2663 views
Page 1 of 1 (5 items)
Sort Posts:
  • Tue, Jun 13 2006 1:00 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    How to use the dbReplaceProp()? Reply

    Hi
    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!




    Originally posted in cdnusers.org by jren
    • Post Points: 0
  • Tue, Jun 13 2006 2:43 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How to use the dbReplaceProp()? Reply

    g_object would be the database Id of the instance. So for example, if it were selected, it would
    be car(geGetSelSet()) .

    t_name is the name of the property - hard to know what the property is actually called, because the chances are it is a CDF property. You can find the current properties on the instance by doing:

    car(geGetSelSet())~>prop~>name

    If you'd used ddGetObj("library" "cell" "schematic") as the value of the g_object argument, you'd have ended up setting a cellview meta-data property (the properties that show up when you do Edit Properties from the library manager, with the cellView selected (right mouse button over the view name).

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
  • Wed, Jun 14 2006 11:30 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How to use the dbReplaceProp()? Reply

    Thanks!!
    I have a new question:
    Is there any way to get the schematic property dbId without openint the window?

    jren


    Originally posted in cdnusers.org by jren
    • Post Points: 0
  • Thu, Jun 15 2006 1:36 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How to use the dbReplaceProp()? Reply

    jren,

    Of course. You can access a cellView by using:

    cv=dbOpenCellViewByType("mylib" "mycell" "myView" "" "a")

    (the "a" stands for append mode - ifyou omit the last couple of arguments, it will open in read mode). See the documentation for more details.

    Then you can access all the instances using:

    cv~>instances

    Or you can find a named instance by name by using:

    inst=dbFindAnyInstByName(cv "I23")

    It sounds as if you could really benefit from attending a SKILL class. You can find details of these on the main Cadence web site - there is an "Education" link onthe front page.

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
  • Thu, Jun 15 2006 7:31 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: How to use the dbReplaceProp()? Reply

    Andrew
    Thanks a lot! Actually, I started learning the SKILL and Cadence just a month ago, but now i have task from advisor about XL and the database thing, so there are many things I am confused with. Thanks again.

    jren


    Originally posted in cdnusers.org by jren
    • Post Points: 0
Page 1 of 1 (5 items)
Sort Posts:
Started by archive at 13 Jun 2006 01:00 PM. Topic has 4 replies.