• 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 Design
  3. Script Skill: copy layers in the layout view

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 15572
  • 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

Script Skill: copy layers in the layout view

tahm
tahm over 9 years ago

Hi,

When I flatten my PCell, and when I show the properties of some layers ( with Q) I have in the title of the window of properties " Edit Rectangle Pin Properties" and the layer in "Diff" "Drawing": so the layer is in Pin. I don't want those layers in "Rectangle Pin Properties " , I just want it in "Rectangle properties" only and because I need to use my PCell without flattening it : I need a script skill that search in my layout view the layers in Rectangle Pin "properties", make a copy of those layers in the same positions with only Rectangle (without Pin ) Property and in the same layer (Drawing) ( for example I want where there is A rectangle Pin with layer in Diff drw, A rectangle with layer in Diff drw)

By hoping to have been clear, thank you,

Mohammed,

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Hi Mohammed,

    I'm running out of patience here. You are asking questions where you are talking about flattening pcells, then say you don't want to flatten the pcells. Your questions are very unclear and I cannot see what you're trying to do or why you need to do this. For a start, there is no physical reason why having a shape which is both a pin and a non-pin in the same place on the same layer-purpose is needed. If you had got something as a pin that you didn't want as a pin, then you could solve that by not preserving the pins during the flatten (but now you say you don't want to flatten the pin).

    As my final word on this thread, if you want to covert pin figures into non-pin figures, then do this:

    foreach(shape cv~>shapes when(shape~>pin dbDeleteObject(shape~>pin)))
    foreach(term cv~>terminals unless(term~>pins dbDeleteObject(term)))

    If you're trying to propagate shapes from the pins on an instance to the top level (I am wondering if this is what you're trying to do - although I can't see why you would need to do this), then you could do:

    inst=car(geGetSelSet()) ; select the instance you want to propagate the pins from
    foreach(term inst~>master~>terminals
      foreach(pin term~>pins
        foreach(fig pin~>figs
          dbCopyFig(fig inst~>cellView inst~>transform)
        )
      )
    )

    Anyway, enough of guesses as to what on earth you're doing. Good luck, as this is my final word on this as I can't expend more time trying to interpret what you're asking.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Hi Mohammed,

    I'm running out of patience here. You are asking questions where you are talking about flattening pcells, then say you don't want to flatten the pcells. Your questions are very unclear and I cannot see what you're trying to do or why you need to do this. For a start, there is no physical reason why having a shape which is both a pin and a non-pin in the same place on the same layer-purpose is needed. If you had got something as a pin that you didn't want as a pin, then you could solve that by not preserving the pins during the flatten (but now you say you don't want to flatten the pin).

    As my final word on this thread, if you want to covert pin figures into non-pin figures, then do this:

    foreach(shape cv~>shapes when(shape~>pin dbDeleteObject(shape~>pin)))
    foreach(term cv~>terminals unless(term~>pins dbDeleteObject(term)))

    If you're trying to propagate shapes from the pins on an instance to the top level (I am wondering if this is what you're trying to do - although I can't see why you would need to do this), then you could do:

    inst=car(geGetSelSet()) ; select the instance you want to propagate the pins from
    foreach(term inst~>master~>terminals
      foreach(pin term~>pins
        foreach(fig pin~>figs
          dbCopyFig(fig inst~>cellView inst~>transform)
        )
      )
    )

    Anyway, enough of guesses as to what on earth you're doing. Good luck, as this is my final word on this as I can't expend more time trying to interpret what you're asking.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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