• 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. Area calculation from layout in cadence 6.1.4

Stats

  • Locked Locked
  • Replies 14
  • Subscribers 128
  • Views 27397
  • 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

Area calculation from layout in cadence 6.1.4

kpkp
kpkp over 13 years ago

Hi all,

I have generated a layout in cadence virtuoso layout editor...but dont knw how to calculate the area of layout? please anybody can help me?
Thanx in advance...

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

    In addition, I'm not sure it's quite what you want anyway, because the shapes in the mark net information (copied to another cellView) could be on multiple layers. You probably don't really need to use CCSflattenedArea at all because the data is already flat - you might be better off doing this (with the window which contains the mark net copied shapes in as the current window):

    cv=geGetEditCellView()
    newShapes=dbLayerOr(cv list("y0" "drawing") cv~>shapes)
    area=0.0
    foreach(shape newShapes
      area=area+ABarea(shape)
      dbDeleteObject(shape)
    )
    printf("Total area is %g\n" area)

    (note, this is completely untested, but I think it should work). The dbLayerOr is producing a merged representation of all the shapes onto a temporary output layer, and then the code iterates over all the new shapes adding up the areas by calling ABarea on each shape. Since the y0 shapes are just working shapes, it deletes them as it works through them all.

    Regards,

    Andrew

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

    In addition, I'm not sure it's quite what you want anyway, because the shapes in the mark net information (copied to another cellView) could be on multiple layers. You probably don't really need to use CCSflattenedArea at all because the data is already flat - you might be better off doing this (with the window which contains the mark net copied shapes in as the current window):

    cv=geGetEditCellView()
    newShapes=dbLayerOr(cv list("y0" "drawing") cv~>shapes)
    area=0.0
    foreach(shape newShapes
      area=area+ABarea(shape)
      dbDeleteObject(shape)
    )
    printf("Total area is %g\n" area)

    (note, this is completely untested, but I think it should work). The dbLayerOr is producing a merged representation of all the shapes onto a temporary output layer, and then the code iterates over all the new shapes adding up the areas by calling ABarea on each shape. Since the y0 shapes are just working shapes, it deletes them as it works through them all.

    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