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

Discussion in 'Cadence' started by jren, Jun 8, 2006.

  1. jren

    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, Jun 8, 2006
    #1
  2. jren

    DReynolds Guest

    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
     
    DReynolds, Jun 9, 2006
    #2
  3. jren

    jren Guest

    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
     
    jren, Jun 9, 2006
    #3
  4. jren

    jren Guest

    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, Jun 13, 2006
    #4
  5. jren

    DReynolds Guest

    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
     
    DReynolds, Jun 13, 2006
    #5
  6. jren

    jren Guest

    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, Jun 14, 2006
    #6
  7. 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.
     
    Andrew Beckett, Jun 16, 2006
    #7
  8. jren

    jren Guest

    Hi
    I just fixed it, I think at first I gave the wrong inst Id. Anyway,
    thanks a lot for your help.:)

    jren
     
    jren, Jun 16, 2006
    #8
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.