• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. binding a layout to schematic and putting pins in the l...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 17009
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

binding a layout to schematic and putting pins in the layout

Inas Mohammed
Inas Mohammed over 8 years ago

Hello,

I have a script which generates a layout transistor pattern.

Then i needed to bind this layout to a schematic in order to have it XL happy.

I searched in the older links here and i found these functions: lxSetConnRef & bndSetInstsBindingByName.

And i searched for them in the manuals to know how they are used, I found that i have to use "lxSetConnRef" first then use the second function. both functions have the condition to have the instances as leaf one, what does it mean??????

I tried that and it worked nicely with the transistor has only one multiplier, but it couldn't work with the other transistors which have more than one multiplier.

So can you please tell me:

1) what is meant by leaf instance?

2) How can i make it for transistors consisting of more than one multiplier?

About putting the pins in the layout, i thought about it like the following: i just made some brain storming with my self about that.

- determine the pins needed to be placed, and their layers (text and box)

- Identify every transistor will be connected to which pins.

- for a certain transistor, identify their Drains, sources, and gates will be connected to which pins and place them.

- check if this transistor if its a dummy so all their terminals will be set to vdd.

So please can you tell me what the followed procedures for placing the pins for a pattern using skill script, if you can give a simple sample code it will be nice

Thanks

Regards,

Inas

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Inas,

    A leaf instance simply means that this is not a hierarchical instance (on the schematic side, primarily). In other words, if you have a hierarchical design with an instance of a block called I1, you can't bind everything in that block in one go - you've got to go down to the individual components.

    For binding one to many (e.g. m-factor) devices, you can either use:

    bndAddInstsBindingByName(schCv "M1" layCv "I1")
    bndAddInstsBindingByName(schCv "M1" layCv "I2")
    bndAddInstsBindingByName(schCv "M1" layCv "I3")

    etc. You may get warnings until you've bound enough instances. You can also use bndSetInstsBindingByName for the first call, but only the first for a particular schematic instance.

    Or you could use bndSetObjectsBinding:

    bndSetObjectsBinding(schInstId list(layInstId1 layInstId2 layInstId3))

    i.e. you use the database id of the instances instead, and pass a list for the  layout side.

    I can't really write your  pin placement code for you, sorry.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Inas Mohammed
    Inas Mohammed over 8 years ago

    Thanks Andrew for your answer.

    About the pins placement, during my searching about how to place the pins, i found that once the schematic and layout becomes bounded the pins can be put easily on every instance in the layout depending on the connectivity, correct?

    I just need you help on guiding me how to achieve that, please.

    Thanks

    Regards,

    Inas

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    I have no idea what you mean. Why would you want to put pins on every instance?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Inas Mohammed
    Inas Mohammed over 8 years ago

    Ok 

    I have written a sample skill script to bind between certain schematic and layout.

    M7: is one multiplier.

    M6: 4 multipliers

    M9: 8 multipliers

    This script worked fine with M7 and i can highlight it in the layout when selected in the schematic. But when it works on M6 it gives an error telling that there is no M6.5 in the layout.

    From this error i deduced that i need to check for the value of idx after its incremented either it is equal to length of x or not. Can you please tell me how to do that?

    I need to check if idx=length(x) if yes still inside the inner loop, if no, exit the inner loop and go to the outer loop. Can you tell me how to write this part in the script please?

    Here it is:

    procedure(bind_inst(schCV layCV instList)
    let(( (idx 1) )
    lxSetConnRef( "current_mirrors_skill" "CM_UPPER" layCV "CELLVIEW" ?schLib "current_mirrors_skill" ?schCell "CM_UPPER"
    ?schView schCV )
    foreach(instName instList
         bndRemoveInstBindingByName(schCV instName)

            foreach(x setof(inst layCV->instances strncmp(inst->name instName 2) == 0)
                            bndAddInstsBindingByName(schCV instName layCV sprintf(nil "%s.%d" instName idx))
                                idx++
            )
         )
    ))

    bind_inst(dbOpenCellViewByType("current_mirrors_skill" "CM_UPPER" "schematic_trial")
    dbOpenCellViewByType("current_mirrors_skill" "CM_UPPER" "layout_skill3_xlclean") '("M7" "M6" "M9"))

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information