## memory location
18 proc mem_pl_fnd { {filename memory_plc_lst.tcl} } {
19 set f [open $filename w]
20 foreach_in_collection tril [get_cells * -filter "ref_lib_cell_name =~ *mem
* && @is_black_box==true"] {
21
set mem_name [get_object_name $tril]
22
set x_loc [lindex [dbInstLoc [dbGetInstByName $mem_name]] 0]
23
set y_loc [lindex [dbInstLoc [dbGetInstByName $mem_name]] 1]
24
set ornt [string map {dbc ""} "[dbInstOrient [dbGetInstByName $mem_name]
]"]
25
puts $f "dbPlaceInst \[dbGetInstByName $mem_name\] ${x_loc} ${y_loc} ${o
rnt}"
26
puts $f "dbSetInstPlacementStatus \[dbGetInstByName $mem_name\] dbcFixed
"
27 }
28 close $f
29 }
30
31