Home > Community > Forums > Digital Implementation > How to report cells from window x1 y1 x2 y2

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to report cells from window x1 y1 x2 y2 

Last post Wed, Sep 26 2012 4:36 AM by BobD. 6 replies.
Started by gpremala 21 Sep 2012 07:08 AM. Topic has 6 replies and 2032 views
Page 1 of 1 (7 items)
Sort Posts:
  • Fri, Sep 21 2012 7:08 AM

    • gpremala
    • Not Ranked
    • Joined on Wed, Feb 29 2012
    • Ahmedabad, Gujarat
    • Posts 8
    • Points 215
    How to report cells from window x1 y1 x2 y2 Reply

    Hi All,

    I want write a script to get below things with dbGet commands.

    How do I give coordinates to dbGet command for the following. 

     

    1. 

    I want to get cell count from window x1 y1 x2 y2.

    it should report count for sequential, inverter, buffer, other combinational cells with cell name. 

     

    2.

     I want to get cell count from window x1 y1 x2 y2.

    it should report pattern (*AND*) cell count in particular area by giving coordinates. 

     

    Thanks,

    Gopi Premala 

    Filed under: , , ,
    • Post Points: 20
  • Fri, Sep 21 2012 7:28 AM

    • wally1
    • Top 50 Contributor
    • Joined on Mon, Aug 4 2008
    • Bellevue, WA
    • Posts 151
    • Points 2,940
    Re: How to report cells from window x1 y1 x2 y2 Reply

    Hi Gopi,

    I think the command "dbQuery -area {x1 y1 x2 y2} -objType inst" will help you here. It will return pointers to the instances in the specified area. You can then parse the list to get the cell types, etc.

    Brian

    • Post Points: 35
  • Fri, Sep 21 2012 7:34 AM

    • BobD
    • Top 25 Contributor
    • Joined on Fri, Jul 11 2008
    • Chelmsford, MA
    • Posts 247
    • Points 9,325
    Re: How to report cells from window x1 y1 x2 y2 Reply
    I was going to suggest dbQuery as well. For the breakdown by type, have a look at "userReportArea.tcl" in the gifts dir. It might provide a useful example for how to summarize cells by type: 
     
    Type            Count  Area(u^2)
    --------------------------------
    Standard Cell:   5906  133841.03
      Buffers:        193
      Inverters:      478
      Sequentials:    543
      Comb:          4692
    Block:              4  366346.56
    BlackBox:           0       0.00
    IO:                71  850700.00
    Area IO:            0       0.00
    Sum:             5981 1350887.59
    Total:           5981 1350887.59
    Die Density = (Standard Cell + Block + Black Box + IO Cell + Area IO Cell) / Die Area
    Die Density = 133841.0304 + 366346.562025 + 0 + 850700.0 + 0 / 1558322.095
    Die Density = 1350887.59243 / 1558322.095
    Die Density = 86.69%
    INFO: Die area was found to be rectangular:
      Die Area = (Width * Height)
      Die Area = (1255.375 * 1241.32)
      Die Area = 1558322.095 u^2
     
    Hope this helps,
    Bob 
    • Post Points: 5
  • Fri, Sep 21 2012 7:41 AM

    • gpremala
    • Not Ranked
    • Joined on Wed, Feb 29 2012
    • Ahmedabad, Gujarat
    • Posts 8
    • Points 215
    Re: How to report cells from window x1 y1 x2 y2 Reply

    Thank you Brian, for your quick reply.

     

    Here I want to fileter out cell (*AND*).

    How do I do with db command. 

    Thanks,

    Gopi Premala 

     

    • Post Points: 20
  • Fri, Sep 21 2012 8:22 AM

    • wally1
    • Top 50 Contributor
    • Joined on Mon, Aug 4 2008
    • Bellevue, WA
    • Posts 151
    • Points 2,940
    Re: How to report cells from window x1 y1 x2 y2 Reply

    Hi Gopi, Try the following:

         set instPtrs [dbQuery -area {x1 y1 x2 y2}

         set cellPtrs [dbGet -v -p $instPtrs.cell.name *AND*]

    The -v says omit objects that don't match *AND*. Use -p2 to return the inst pointers instead of the cell pointers.

    Brian

    • Post Points: 20
  • Tue, Sep 25 2012 11:27 PM

    • gpremala
    • Not Ranked
    • Joined on Wed, Feb 29 2012
    • Ahmedabad, Gujarat
    • Posts 8
    • Points 215
    Re: How to report cells from window x1 y1 x2 y2 Reply

    Hi Brian,

    Thank you for your help.

    Where can i find the documents for db commands and its info.

     

     Gopi Premala

    • Post Points: 20
  • Wed, Sep 26 2012 4:36 AM

    • BobD
    • Top 25 Contributor
    • Joined on Fri, Jul 11 2008
    • Chelmsford, MA
    • Posts 247
    • Points 9,325
    Re: How to report cells from window x1 y1 x2 y2 Reply

    Search for "dbGet" on support.cadence.com and the following is under "New or Changed Features":

    http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:DocumentViewer;src=wp;q=ProductInformation/Digital_IC_Design/ApplicationPackages/download/EDI11_DBTCL_slides.pdf 

    It covers dbGet, dbQuery and other related db access commands.

    Hope this helps,
    Bob 

    • Post Points: 5
Page 1 of 1 (7 items)
Sort Posts:
Started by gpremala at 21 Sep 2012 07:08 AM. Topic has 6 replies.