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.

Command for finding the coordinates of a macro in Encounter

Status
Not open for further replies.

tweethy

Junior Member level 2
Joined
Feb 6, 2012
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,406
Is there any command in Encounter to get the coordinates of a macro?..I am writing a script in which i need the coordinates of all the macros.
 

You can use this scripts.

######################################
# Script to Dump the Macro Locations
######################################

set fid [open macro_locations.tcl w]

dbForEachCellInst [dbgTopCell] inst {
set cellName [dbInstCellName $inst]
if [dbIsCellBlock $cellName] {
selectInst [dbInstName $inst]
set obj [dbInstName $inst]
#puts $cellName
set loc [dbInstLoc $inst]
set x [dbDBUToMicrons [dbLocX $loc]]
set y [dbDBUToMicrons [dbLocY $loc]]
set orient [dbInstOrient $inst]
regsub dbc $orient {} orient
if {[dbIsInstPreplaced $inst]} {
puts $fid "placeInstance $obj $x $y $orient -fixed"
puts "placeInstance $obj $x $y $orient -fixed"
} else {
puts $fid "placeInstance $obj $x $y $orient -fixed"
puts "placeInstance $obj $x $y $orient -fixed"
}
}
}
close $fid
 

select all the macros and then reportSelected will give u coordinates, orientation and other info. Grep for instance name and its location co ordinates.

As yada VLSI script does the work, and i recommend you gain expertise over the db commands of Encounter. It will help when the database is huge.
 

As yada VLSI script does the work, and i recommend you gain expertise over the db commands of Encounter. It will help when the database is huge.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top