• 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. How to calculate area for a given schematic

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 143
  • Views 22001
  • 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

How to calculate area for a given schematic

IC Layout
IC Layout over 16 years ago

 Hello! Every body, I am using cadence IC514 version and a 90nm PDK kit called "gpdk090".
My intention is to calculate area for a given schematic.
I wrote a procedure called "area()" which will calculate area in the current level (means for transistors, capacitors and resistors only).
Now I need to call this procedure for every instance which is not a transistor,cap or a resistor.
I wrote something like this........................
foreach( inst geGetEditCellView()~>instances
    when( inst~>purpose == "cell"
        if( inst~>libName == "gpdk090" then
            area()
        else
            label:
            cv1=dbOpenCellViewByType(inst~>libName inst~>cellName "schematic")
            foreach( inst1 cv1~>instances
                when( inst1~>purpose == "cell"
                    if( inst1~>libName == "gpdk090" then
                        area()
                    else
                        goto label
        ]
Can some body guide me in this way...
                Thanks in Advance...    
                                                                Prabhakar. K

  • Cancel
Parents
  • IC Layout
    IC Layout over 16 years ago

     No, I would like to draw rects in a layout window....

    I got part of solution....drawing rects for transisitors/caps/resistors  which are in top level....

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

      totalArea = 0u
      top = geGetEditCellView()~>cellName

       procedure( PKsumArea(@optional (cv geGetEditCellView()))
           foreach(inst cv~>instances
                   if(inst~>libName == "gpdk090" && cv~>cellName == top then
                   totalArea = totalArea + area(inst)
                   fig1=dbCreateRect(rv list("Metal1" "drawing") list(0:0 sqrt(atof(cdfFormatFloatString(artMakeString(area(inst)) "p"))):sqrt(atof(cdfFormatFloatString(artMakeString(area(inst)) "p")))))
                   ;where ' rv ' is a opend layout window
                   println(inst~>cellName)
                   else
                   if(inst~>libName == "gpdk090" && cv~>cellName != top then
                   totalArea = totalArea + area(inst)
                   else
                   when(inst~>purpose == "cell"
                   master = dbOpenCellViewByType(inst~>libName inst~>cellName "schematic")
                   ;;for this particular 'master' I need to get/print area separately
                   when(master
                   println(master~>cellName)
                   PKsumArea(master)
                   )
           )
    )
    )
    )
    totalArea
    )
    PKsumArea()
    println(totalArea)
    println(cdfFormatFloatString(artMakeString(totalArea) "p"))

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

    ;;;You might be surprised why I again wrote the bad statement  atof(cdfFormatFloatString(artMakeString(area(inst)) "p")

    ;;;;But I find this is the way to draw rectangles
    ;;;;if I wrote like this "dbCreateRect(rv list("Metal1" "drawing") list(0:0 sqrt(area(inst)):sqrt(area(inst))))"
    ;;;;I am getting this error " *WARNING* Rectangle being created has no area "
    ;;;;Please notice this ....and let me know the right solution.......
    ;;;;One more thing is that I am not getting the area of individual blocks which are in toplevel schematic

    thanks & regards....

                               Prabhakar. K

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • IC Layout
    IC Layout over 16 years ago

     No, I would like to draw rects in a layout window....

    I got part of solution....drawing rects for transisitors/caps/resistors  which are in top level....

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

      totalArea = 0u
      top = geGetEditCellView()~>cellName

       procedure( PKsumArea(@optional (cv geGetEditCellView()))
           foreach(inst cv~>instances
                   if(inst~>libName == "gpdk090" && cv~>cellName == top then
                   totalArea = totalArea + area(inst)
                   fig1=dbCreateRect(rv list("Metal1" "drawing") list(0:0 sqrt(atof(cdfFormatFloatString(artMakeString(area(inst)) "p"))):sqrt(atof(cdfFormatFloatString(artMakeString(area(inst)) "p")))))
                   ;where ' rv ' is a opend layout window
                   println(inst~>cellName)
                   else
                   if(inst~>libName == "gpdk090" && cv~>cellName != top then
                   totalArea = totalArea + area(inst)
                   else
                   when(inst~>purpose == "cell"
                   master = dbOpenCellViewByType(inst~>libName inst~>cellName "schematic")
                   ;;for this particular 'master' I need to get/print area separately
                   when(master
                   println(master~>cellName)
                   PKsumArea(master)
                   )
           )
    )
    )
    )
    totalArea
    )
    PKsumArea()
    println(totalArea)
    println(cdfFormatFloatString(artMakeString(totalArea) "p"))

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

    ;;;You might be surprised why I again wrote the bad statement  atof(cdfFormatFloatString(artMakeString(area(inst)) "p")

    ;;;;But I find this is the way to draw rectangles
    ;;;;if I wrote like this "dbCreateRect(rv list("Metal1" "drawing") list(0:0 sqrt(area(inst)):sqrt(area(inst))))"
    ;;;;I am getting this error " *WARNING* Rectangle being created has no area "
    ;;;;Please notice this ....and let me know the right solution.......
    ;;;;One more thing is that I am not getting the area of individual blocks which are in toplevel schematic

    thanks & regards....

                               Prabhakar. K

     

    • 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