• 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. Finding of polygons SKILL.

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 142
  • Views 10121
  • 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

Finding of polygons SKILL.

Serjik
Serjik over 8 years ago

Hello.

I've got a layout with containce polygons of certan layer, i need to find the coordinats of that polygons (center) and put them in to file.

Here is the cod, but the outpu file is empty.

myPort = outfile( "~/Desktop/pllist" )
foreach(polygon geGetEditCellView()~>polygons
if(polygon~>fig~>lpp=="metal1" then
fprintf(myPort "\t%L\n" centerBox(polygon~>shapes~>bBox(points)))
)
)
close( myPort)
sh( "gedit ~/Desktop/pllist &" )

Can you help me ?

Regards,

Sergey.

  • Cancel
Parents
  • Serjik
    Serjik over 8 years ago

    I have solved the problem, but in the other way. First of all i flat all cell by hierarchy, and then use your cod to find out the center. But on a big layout with a hierarchy level near 7 including pcells it doesnt work. After runing my script the ciw window does not respond. On the small layouts it works perfect. Can you help to find the solution ?

    Here is my cod:
    procedure( Myflat(libName cellName )
    let( (cv topInstList )
    if( ddGetObj( libName cellName "layout" ) then
    cv = dbOpenCellViewByType( libName cellName "layout" "maskLayout" "a")
    )
    topInstList = cv~>instances
    ;get a list of all instances in the cellview
    foreach(inst topInstList
    if(inst~>mosaic then
    leFlattenInst( inst~>mosaic 31 t nil nil )
    ;flatten the mosaic instance
    );if
    leFlattenInst( inst 31 t nil nil )
    );foreach
    );let
    );procedure

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Serjik
    Serjik over 8 years ago

    I have solved the problem, but in the other way. First of all i flat all cell by hierarchy, and then use your cod to find out the center. But on a big layout with a hierarchy level near 7 including pcells it doesnt work. After runing my script the ciw window does not respond. On the small layouts it works perfect. Can you help to find the solution ?

    Here is my cod:
    procedure( Myflat(libName cellName )
    let( (cv topInstList )
    if( ddGetObj( libName cellName "layout" ) then
    cv = dbOpenCellViewByType( libName cellName "layout" "maskLayout" "a")
    )
    topInstList = cv~>instances
    ;get a list of all instances in the cellview
    foreach(inst topInstList
    if(inst~>mosaic then
    leFlattenInst( inst~>mosaic 31 t nil nil )
    ;flatten the mosaic instance
    );if
    leFlattenInst( inst 31 t nil nil )
    );foreach
    );let
    );procedure

    • 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