• 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. A question about flattening instances upto stoplevel preseving...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13030
  • 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

A question about flattening instances upto stoplevel preseving vias?

IC Layout
IC Layout over 15 years ago

Hi! All, I am using cadence IC514 version .. & .. tsmcN65nm PDK ..

In this PDK all vias are of type instances..

I am trying to flatten the entire cellview by preserving VIAs .. But I am in vain ..

Here is the code which will give an idea about what I am trying to do with ...

*************************************************

procedure(FLATTEN_INST()
foreach(inst deGetCellView()~>instances
       if(inst~>mosaic then
               leFlattenInst(inst~>mosaic 31 t nil nil)
       else
       if(!leIsAnyContact(inst)
               leFlattenInst(inst 31 t nil nil)
       )
       )
   )
);flatten_inst
*************************************************
The procedure FLATTEN_INST() has to flatten all instances upto stoplevel preserving VIAs ..

k1='()
procedure(inst_box(cv1 layer1 layer2 @optional (layer3 '("prBoundary" "drawing")))
l1=leLayerAnd(cv1 layer1 layer2 layer3)
foreach(box l1
       l2=dbGetTrueOverlaps(cv1 box~>bBox)
       foreach(ele l2
               if(leIsAnyContact(ele) then
               if(nth(0 area(ele~>bBox)) <= nth(0 area(box~>bBox))/2 || nth(1 area(ele~>bBox)) <= nth(1 area(box~>bBox))/2 then
                       ;geAddHilightRectangle(h1 box~>bBox )
                       k1=cons(box~>bBox k1)
               )
               )
       )
dbDeleteObject(box)
)
k1
)

inst_box(deGetEditCellView() '("M1" "drawing") '("M2" "drawing"))
inst_box(deGetEditCellView() '("M2" "drawing") '("M3" "drawing"))
......
geResetCellView(deGetEditCellView())
 
*************************************************
Please, Can some one guide me to solve this issue ...
 
Thanks in Advance ...
 
Prabhakar. K -- Layout Engineer
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Prabhakar,

    It might help if you actually described what the problem was. I tried the FLATTEN_INST() function and it worked for me. I couldn't try inst_box() because it was missing the function area() (I could guess, but to be honest I decided not to bother because I couldn't be sure what you were expecting the code to do).

    Regards,

    Andrew.

    • 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