Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to extract location of cells using Soc Encounter?

Status
Not open for further replies.

ebrahimi.khoy

Member level 3
Joined
Dec 4, 2010
Messages
64
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,736
I am using SoC encounter for layout extraction. After I extracted the layout, I use defOut command to extract the location of different cells. The problem is that it return the left-buttom corner of the cells while I need the coordination of its center. Any suggestion?
 

You know the cell size, so you could calculate the centre coordinate.
 
You know the cell size, so you could calculate the centre coordinate.

Since I want this information for all cells, I should write a parser. The thing is that I thought maybe the tool has some configurations for this purpose.
 

You can do this sort of thing quite easily with a small tcl script: e.g.

Code:
set instances [ dbget top.insts ] 

foreach inst $instances {
    set box [ dbget $inst.box ]
    set coords [ string trim  $box "{}" ]
    set x0 [ lindex $coords 0 ]
    set y0 [ lindex $coords 1 ]
    set x1 [ lindex $coords 2 ]
    set y1 [ lindex $coords 3 ]
   
    set x_centre [ expr ($x0 + $x1)/2.0 ]
    set y_centre [ expr ($y0 + $y1)/2.0 ]
    puts " instance centre = ( $x_centre, $y_centre ) "
   
}


Maybe this is of some use to you...
sharted.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top