• 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 27382
  • 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
  • acom
    acom over 11 years ago

    Hi Andrew, when i used the above script, there are some errors about format. so i tried to do some small changes about it. Thanks so much for you.

    procedure(LAYareaSize()
      let(
        (object objType
        )
       
        object = geGetSelectedSet()
        objT = car(object~>objType)
        println("s1")
        printf("objT is %s.\n" objT)
       
        if( objT == "polygon"
              then
         LAYpolyarea(object)
              else
                if( objT == "rect"
              then
         LAYrectarea(object)
       else
         printf("wrong shape.\n")
                     );;;**if**
              );;;**polygon**
          
           );;;
            
    );;;**procedure**
     
      
     
    procedure(LAYpolyarea(object)
       let(
         (object crdList sum firstPt lastPt dx sum
         )
         object=geGetSelectedSet()
         crdList = object~>points
         printf("the crdList is %L." crdList)
         sum = 0
         firstPt = lastPt = caar(crdList)
         crdList = cdar(crdList)
         printf("the firstPt is %L \n." firstPt)
         printf("the crdList is %L.\n" crdList)
           
         (foreach crd crdList
            dx = difference((xCoord crd) (xCoord lastPt))
            sum = (plus sum (times dx (plus (yCoord crd)(yCoord lastPt))))
            lastPt = crd
         );;;**foreach**  
                  
         sum = (plus sum (times (difference (xCoord firstPt) (xCoord lastPt))(plus (yCoord firstPt)(yCoord lastPt))))
         area = (times 0.5 (abs sum))
         printf("this polygon's area is %f.\n" area)
       );;;*let*
     );;;*procedure(LAYpolyarea)**
     
     
          
     procedure(LAYrectarea(object)
        let(
          (object ll ur dx corners     
          )
           object=geGetSelectedSet()
           corners = object~>bBox
           ll = caar(corners)
           ur = car(cdar(corners))
           dx = (difference (xCoord ll) (xCoord ur))
           dy = (difference (yCoord ll) (yCoord ur))
           area = (abs (times dx dy))
           printf("this rect's area is %f.\n" area)
         );;;**let**
      );;;**procedure(LAYrectarea)**
         

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • acom
    acom over 11 years ago

    Hi Andrew, when i used the above script, there are some errors about format. so i tried to do some small changes about it. Thanks so much for you.

    procedure(LAYareaSize()
      let(
        (object objType
        )
       
        object = geGetSelectedSet()
        objT = car(object~>objType)
        println("s1")
        printf("objT is %s.\n" objT)
       
        if( objT == "polygon"
              then
         LAYpolyarea(object)
              else
                if( objT == "rect"
              then
         LAYrectarea(object)
       else
         printf("wrong shape.\n")
                     );;;**if**
              );;;**polygon**
          
           );;;
            
    );;;**procedure**
     
      
     
    procedure(LAYpolyarea(object)
       let(
         (object crdList sum firstPt lastPt dx sum
         )
         object=geGetSelectedSet()
         crdList = object~>points
         printf("the crdList is %L." crdList)
         sum = 0
         firstPt = lastPt = caar(crdList)
         crdList = cdar(crdList)
         printf("the firstPt is %L \n." firstPt)
         printf("the crdList is %L.\n" crdList)
           
         (foreach crd crdList
            dx = difference((xCoord crd) (xCoord lastPt))
            sum = (plus sum (times dx (plus (yCoord crd)(yCoord lastPt))))
            lastPt = crd
         );;;**foreach**  
                  
         sum = (plus sum (times (difference (xCoord firstPt) (xCoord lastPt))(plus (yCoord firstPt)(yCoord lastPt))))
         area = (times 0.5 (abs sum))
         printf("this polygon's area is %f.\n" area)
       );;;*let*
     );;;*procedure(LAYpolyarea)**
     
     
          
     procedure(LAYrectarea(object)
        let(
          (object ll ur dx corners     
          )
           object=geGetSelectedSet()
           corners = object~>bBox
           ll = caar(corners)
           ur = car(cdar(corners))
           dx = (difference (xCoord ll) (xCoord ur))
           dy = (difference (yCoord ll) (yCoord ur))
           area = (abs (times dx dy))
           printf("this rect's area is %f.\n" area)
         );;;**let**
      );;;**procedure(LAYrectarea)**
         

    • 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